[openwrt/openwrt] ramips: mtk_eth_soc: wait longer after FE core reset to settle
LEDE Commits
lede-commits at lists.infradead.org
Fri Jan 5 14:36:04 PST 2024
hauke pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/289515e003d1b0b0c9d3f2650aff53e0962d0cea
commit 289515e003d1b0b0c9d3f2650aff53e0962d0cea
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 78b17605d2..dab8a173f7 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