5a08b9dddf37034d8555c428a83d477c03532d01
[openwrt/staging/xback.git] /
1 From f8fb8dbd158c585be7574faf92db7d614b6722ff Mon Sep 17 00:00:00 2001
2 From: Lorenzo Bianconi <lorenzo@kernel.org>
3 Date: Tue, 25 Jul 2023 01:52:27 +0100
4 Subject: [PATCH 100/250] net: ethernet: mtk_eth_soc: increase MAX_DEVS to 3
5
6 This is a preliminary patch to add MT7988 SoC support since it runs 3
7 macs instead of 2.
8
9 Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
10 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
11 Link: https://lore.kernel.org/r/3563e5fab367e7d79a7f1296fabaa5c20f202d7a.1690246066.git.daniel@makrotopia.org
12 Signed-off-by: Jakub Kicinski <kuba@kernel.org>
13 ---
14 drivers/net/ethernet/mediatek/mtk_eth_soc.h | 4 ++--
15 1 file changed, 2 insertions(+), 2 deletions(-)
16
17 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.h
18 +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.h
19 @@ -1040,8 +1040,8 @@ struct mtk_soc_data {
20
21 #define MTK_DMA_MONITOR_TIMEOUT msecs_to_jiffies(1000)
22
23 -/* currently no SoC has more than 2 macs */
24 -#define MTK_MAX_DEVS 2
25 +/* currently no SoC has more than 3 macs */
26 +#define MTK_MAX_DEVS 3
27
28 /* struct mtk_eth - This is the main datasructure for holding the state
29 * of the driver