Skip to contentSkip to conversation

net: e1000: Increase autoneg timeout to 8 seconds

PATCH New Stefan Roese 2 participants 2 messages Aug 11, 2015 – Aug 12, 2015 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: e1000: Increase autoneg timeout to 8 seconds

The current 4.5 timeout for the autonegotiation are not enough to complete it on my platform. Using the Intel E1000 PCIe card in the Marvell db-mv784mp-gp eval board. So lets increase the timeout to 8 seconds.

Cc Joe Hershberger <[email protected]>
Cc Simon Glass <[email protected]>
---
 drivers/net/e1000.c | 2 +-
 drivers/net/e1000.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/e1000.c +1 -1
index 96e6bb0..bbc19e6 100644
@@ -4004,7 +4004,7 @@ e1000_wait_autoneg(struct e1000_hw *hw)
 	DEBUGFUNC();
 	DEBUGOUT("Waiting for Auto-Neg to complete.\n");
 
-	/* We will wait for autoneg to complete or 4.5 seconds to expire. */
+	/* We will wait for autoneg to complete or timeout to expire. */
 	for (i = PHY_AUTO_NEG_TIME; i > 0; i--) {
 		/* Read the MII Status Register and wait for Auto-Neg
 		 * Complete bit to be set.
drivers/net/e1000.h +1 -1
index f3b77b1..7463a8d 100644
@@ -2460,7 +2460,7 @@ struct e1000_hw {
 #define MII_CR_SPEED_100		0x2000
 #define MII_CR_SPEED_10		0x0000
 #define E1000_PHY_ADDRESS		0x01
-#define PHY_AUTO_NEG_TIME		45	/* 4.5 Seconds */
+#define PHY_AUTO_NEG_TIME		80	/* 8.0 Seconds */
 #define PHY_FORCE_TIME			20	/* 2.0 Seconds */
 #define PHY_REVISION_MASK		0xFFFFFFF0
 #define DEVICE_SPEED_MASK		0x00000300	/* Device Ctrl Reg Speed Mask */
Signature · 1 line
2.4.8
#1 lore raw

PATCH 1/1 net: e1000: Increase autoneg timeout to 8 seconds

Hi Stefan,

Quoted 8 lines · Stefan Roese

The current 4.5 timeout for the autonegotiation are not enough to complete it on my platform. Using the Intel E1000 PCIe card in the Marvell db-mv784mp-gp eval board. So lets increase the timeout to 8 seconds.

Cc Joe Hershberger <[email protected]>
Cc Simon Glass <[email protected]>

Applied to u-boot-net, thanks!
-Joe