igb: increase delay for copper link setup

Previous thread: igb: set num_rx/tx_queues to 0 when queues are freed by Linux Kernel Mailing List on Thursday, April 2, 2009 - 10:06 pm. (1 message)

Next thread: Neterion: New driver: Main entry points by Linux Kernel Mailing List on Thursday, April 2, 2009 - 10:05 pm. (1 message)
From: Linux Kernel Mailing List
Date: Thursday, April 2, 2009 - 10:06 pm

Gitweb:     http://git.kernel.org/linus/a6a605691f666482a261d69da7e0cef7048a434b
Commit:     a6a605691f666482a261d69da7e0cef7048a434b
Parent:     d1a8c9e1c8a49afccc85dfeccd731ccbec52e724
Author:     Alexander Duyck <alexander.h.duyck@intel.com>
AuthorDate: Tue Mar 31 20:38:38 2009 +0000
Committer:  David S. Miller <davem@davemloft.net>
CommitDate: Thu Apr 2 00:59:07 2009 -0700

    igb: increase delay for copper link setup
    
    Increase the delay for copper phy init from 15ms to 100ms.  This is to
    address issues seen in which ethtool -t was failing in some cases on 82576
    based adapters.
    
    Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
    Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
---
 drivers/net/igb/e1000_phy.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/net/igb/e1000_phy.c b/drivers/net/igb/e1000_phy.c
index de2d486..f50fac2 100644
--- a/drivers/net/igb/e1000_phy.c
+++ b/drivers/net/igb/e1000_phy.c
@@ -448,8 +448,11 @@ s32 igb_copper_link_setup_igp(struct e1000_hw *hw)
 		goto out;
 	}
 
-	/* Wait 15ms for MAC to configure PHY from NVM settings. */
-	msleep(15);
+	/*
+	 * Wait 100ms for MAC to configure PHY from NVM settings, to avoid
+	 * timeout issues when LFS is enabled.
+	 */
+	msleep(100);
 
 	/*
 	 * The NVM settings will configure LPLU in D3 for
--

Previous thread: igb: set num_rx/tx_queues to 0 when queues are freed by Linux Kernel Mailing List on Thursday, April 2, 2009 - 10:06 pm. (1 message)

Next thread: Neterion: New driver: Main entry points by Linux Kernel Mailing List on Thursday, April 2, 2009 - 10:05 pm. (1 message)