750-v6.5-06-net-ethernet-mtk_eth_soc-increase-MAX_DEVS-to-3.patch 1.1 KB

1234567891011121314151617181920212223242526272829
  1. From f8fb8dbd158c585be7574faf92db7d614b6722ff Mon Sep 17 00:00:00 2001
  2. From: Lorenzo Bianconi <[email protected]>
  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. This is a preliminary patch to add MT7988 SoC support since it runs 3
  6. macs instead of 2.
  7. Signed-off-by: Lorenzo Bianconi <[email protected]>
  8. Signed-off-by: Daniel Golle <[email protected]>
  9. Link: https://lore.kernel.org/r/3563e5fab367e7d79a7f1296fabaa5c20f202d7a.1690246066.git.daniel@makrotopia.org
  10. Signed-off-by: Jakub Kicinski <[email protected]>
  11. ---
  12. drivers/net/ethernet/mediatek/mtk_eth_soc.h | 4 ++--
  13. 1 file changed, 2 insertions(+), 2 deletions(-)
  14. --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.h
  15. +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.h
  16. @@ -1043,8 +1043,8 @@ struct mtk_soc_data {
  17. #define MTK_DMA_MONITOR_TIMEOUT msecs_to_jiffies(1000)
  18. -/* currently no SoC has more than 2 macs */
  19. -#define MTK_MAX_DEVS 2
  20. +/* currently no SoC has more than 3 macs */
  21. +#define MTK_MAX_DEVS 3
  22. /* struct mtk_eth - This is the main datasructure for holding the state
  23. * of the driver