Backport of commit 5f3eed6fe0e36e4b56c8dd9160241a868ee0de2a

Two recent patches to cleanup the reset[1] and initial PHY configuration[2]
code paths for ICH/PCH devices inadvertently left out a 10msec delay and
device ID check respectively which are necessary for the 82566DC (device id
0x104b) to be configured properly, otherwise it will not get link.

[1] commit e98cac447cc1cc418dff1d610a5c79c4f2bdec7f
[2] commit 3f0c16e84438d657d29446f85fe375794a93f159


Signed-off-by: Josh Mahonin <[email protected]>
---
 drivers/net/e1000e/ich8lan.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/net/e1000e/ich8lan.c b/drivers/net/e1000e/ich8lan.c
index b2507d9..af71730 100644
--- a/drivers/net/e1000e/ich8lan.c
+++ b/drivers/net/e1000e/ich8lan.c
@@ -836,6 +836,7 @@ static s32 e1000_sw_lcd_config_ich8lan(struct e1000_hw *hw)
      * configuration data out of the NVM manually.
      */
     if ((adapter->pdev->device == E1000_DEV_ID_ICH8_IGP_M_AMT) ||
+        (adapter->pdev->device == E1000_DEV_ID_ICH8_IGP_C) ||
         (adapter->pdev->device == E1000_DEV_ID_ICH8_IGP_M) ||
         (hw->mac.type == e1000_pchlan))
         sw_cfg_mask = E1000_FEXTNVM_SW_CONFIG_ICH8M;
@@ -1264,6 +1265,9 @@ static s32 e1000_post_phy_reset_ich8lan(struct e1000_hw *hw)
     if (e1000_check_reset_block(hw))
         goto out;

+    /* Allow time for h/w to get to quiescent state after reset */
+    msleep(10);
+
     /* Perform any necessary post-reset workarounds */
     switch (hw->mac.type) {
     case e1000_pchlan:
--
1.7.1

_______________________________________________
stable mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/stable

Reply via email to