mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] net: cpsw: increase a delay before reading the ALIVE register
@ 2023-06-09  9:02 yegorslists
  2023-06-12  6:28 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: yegorslists @ 2023-06-09  9:02 UTC (permalink / raw)
  To: barebox

From: Yegor Yefremov <yegorslists@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@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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-12  6:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-09  9:02 [PATCH] net: cpsw: increase a delay before reading the ALIVE register yegorslists
2023-06-12  6:28 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox