[PATCH] net: cpsw: increase a delay before reading the ALIVE register
yegorslists at googlemail.com
yegorslists at googlemail.com
Fri Jun 9 02:02:17 PDT 2023
From: Yegor Yefremov <yegorslists at googlemail.com>
At leasr am335x, the delay is not enough to reliably detect all PHYs.
Hence, increase the timeout.
Tested with the followings PHYs:
- MotorComm YT8511
- Atheros AT8035
- CPlus IP101A
Signed-off-by: Yegor Yefremov <yegorslists at googlemail.com>
---
drivers/net/cpsw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/cpsw.c b/drivers/net/cpsw.c
index 0449240f98..fdf6ff1e8e 100644
--- a/drivers/net/cpsw.c
+++ b/drivers/net/cpsw.c
@@ -620,7 +620,7 @@ static int cpsw_mdio_probe(struct device *dev)
* silicon. Since the effect of (b) was found to be largely
* negligible, we keep things simple here.
*/
- udelay(1000);
+ udelay(2000);
start = get_time_ns();
while (1) {
--
2.34.1
More information about the barebox
mailing list