[openwrt/openwrt] ramips: mtk_eth_soc: wait longer after FE core reset to settle
LEDE Commits
lede-commits at lists.infradead.org
Sat Jan 6 07:30:31 PST 2024
hauke pushed a commit to openwrt/openwrt.git, branch openwrt-22.03:
https://git.openwrt.org/8b4b924b85e024c45592b582587dbbddbf432721
commit 8b4b924b85e024c45592b582587dbbddbf432721
Author: Maxim Anisimov <maxim.anisimov.ua at gmail.com>
AuthorDate: Sun Dec 10 16:27:32 2023 +0100
ramips: mtk_eth_soc: wait longer after FE core reset to settle
Enabling the FE core too early causes the system to hang during boot
uncondtionally, after the reset is released. Increate it to 1-1.2ms
range.
Fixes: 60fadae62b64 ("ramips: ethernet: ralink: move reset of the esw into the esw instead of fe")
Signed-off-by: Maxim Anisimov <maxim.anisimov.ua at gmail.com>
[Split previous commit, provide rationale]
Signed-off-by: Lech Perczak <lech.perczak at gmail.com>
(cherry picked from commit 7eb0458c1f7e4f681b16d2721cfc3fcb69774c95)
Signed-off-by: Lech Perczak <lech.perczak at gmail.com>
---
target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c
index 38369d6752..35e324fbf8 100644
--- a/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c
+++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c
@@ -149,7 +149,7 @@ void fe_reset_fe(struct fe_priv *priv)
reset_control_assert(priv->resets);
usleep_range(60, 120);
reset_control_deassert(priv->resets);
- usleep_range(60, 120);
+ usleep_range(1000, 1200);
}
static inline void fe_int_disable(u32 mask)
More information about the lede-commits
mailing list