[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y43FGyItmu/0Rxst@cinnabar.sosdg.org>
Date: Mon, 5 Dec 2022 18:16:59 +0800
From: qiyong@...dg.org
To: qiangqing.zhang@....com
Cc: netdev@...r.kernel.org, yong.qi@...oft.com.cn
Subject: fec_restart fix
fec_restart fix. fec would not recevie packets without this fix. Tested with s32v234.
diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c
index 659331fca40a..e5c8c15bfa04 100644
--- a/drivers/net/ethernet/freescale/fec_main.c
+++ b/drivers/net/ethernet/freescale/fec_main.c
@@ -1005,6 +1005,7 @@ fec_restart(struct net_device *ndev)
* instead of reset MAC itself.
*/
if (fep->quirks & FEC_QUIRK_HAS_MULTI_QUEUES ||
+ (fep->quirks & FEC_QUIRK_HAS_AVB) ||
((fep->quirks & FEC_QUIRK_NO_HARD_RESET) && fep->link)) {
writel(0, fep->hwp + FEC_ECNTRL);
} else {
Powered by blists - more mailing lists