aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/e1000e/defines.h2
-rw-r--r--drivers/net/e1000e/phy.c5
2 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/e1000e/defines.h b/drivers/net/e1000e/defines.h
index 8890c97e1120..4329ec34b178 100644
--- a/drivers/net/e1000e/defines.h
+++ b/drivers/net/e1000e/defines.h
@@ -575,6 +575,8 @@
575#define PHY_1000T_STATUS 0x0A /* 1000Base-T Status Reg */ 575#define PHY_1000T_STATUS 0x0A /* 1000Base-T Status Reg */
576#define PHY_EXT_STATUS 0x0F /* Extended Status Reg */ 576#define PHY_EXT_STATUS 0x0F /* Extended Status Reg */
577 577
578#define PHY_CONTROL_LB 0x4000 /* PHY Loopback bit */
579
578/* NVM Control */ 580/* NVM Control */
579#define E1000_EECD_SK 0x00000001 /* NVM Clock */ 581#define E1000_EECD_SK 0x00000001 /* NVM Clock */
580#define E1000_EECD_CS 0x00000002 /* NVM Chip Select */ 582#define E1000_EECD_CS 0x00000002 /* NVM Chip Select */
diff --git a/drivers/net/e1000e/phy.c b/drivers/net/e1000e/phy.c
index e23459cf3d0e..d8453946bff8 100644
--- a/drivers/net/e1000e/phy.c
+++ b/drivers/net/e1000e/phy.c
@@ -2737,6 +2737,11 @@ s32 e1000_link_stall_workaround_hv(struct e1000_hw *hw)
2737 if (hw->phy.type != e1000_phy_82578) 2737 if (hw->phy.type != e1000_phy_82578)
2738 goto out; 2738 goto out;
2739 2739
2740 /* Do not apply workaround if in PHY loopback bit 14 set */
2741 hw->phy.ops.read_phy_reg(hw, PHY_CONTROL, &data);
2742 if (data & PHY_CONTROL_LB)
2743 goto out;
2744
2740 /* check if link is up and at 1Gbps */ 2745 /* check if link is up and at 1Gbps */
2741 ret_val = hw->phy.ops.read_phy_reg(hw, BM_CS_STATUS, &data); 2746 ret_val = hw->phy.ops.read_phy_reg(hw, BM_CS_STATUS, &data);
2742 if (ret_val) 2747 if (ret_val)