[PATCH] fixup! net: dsa: mv88e6xxx: Wait for EEPROM done after HW reset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---

Looks like I forgot to change my debugging timeout value as well as
finish a comment. Sorry about that.

 drivers/net/phy/mv88e6xxx/global1.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/net/phy/mv88e6xxx/global1.c b/drivers/net/phy/mv88e6xxx/global1.c
index 2331195fb3..218f877de3 100644
--- a/drivers/net/phy/mv88e6xxx/global1.c
+++ b/drivers/net/phy/mv88e6xxx/global1.c
@@ -24,7 +24,7 @@ static int mv88e6xxx_g1_read(struct mv88e6xxx_chip *chip, int reg, u16 *val)
 void mv88e6xxx_g1_wait_eeprom_done(struct mv88e6xxx_chip *chip)
 {
 	const uint64_t start   = get_time_ns();
-	const uint64_t timeout = 20 * SECOND;
+	const uint64_t timeout = SECOND;
 	u16 val;
 	int err;
 
@@ -38,7 +38,9 @@ void mv88e6xxx_g1_wait_eeprom_done(struct mv88e6xxx_chip *chip)
 			return;
 		}
 
-		if (val != 0xFFFF && /* switch will return 0xffff it it */
+		if (val != 0xFFFF && /* switch will return 0xffff until
+				      * EEPROM is loaded
+				      */
 		    val & BIT(MV88E6XXX_G1_STS_IRQ_EEPROM_DONE))
 			return;
 
-- 
2.21.0


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux