diff mbox

Bug with 'igb: Remove GS40G specific defines/functions'

Message ID CO2PR0801MB647BD797B2A8B5A7C9E93ECAEAA0@CO2PR0801MB647.namprd08.prod.outlook.com
State Not Applicable
Headers show

Commit Message

Chris Arges Oct. 27, 2016, 1:44 a.m. UTC
Jochen,

Not sure if you had time to look at this, do you thing the patch I sent previously is on the right path?

I'm happy to submit a formal patch to the list.

Thanks,

--chris
diff mbox

Patch

diff --git a/drivers/net/ethernet/intel/igb/e1000_phy.c b/drivers/net/ethernet/intel/igb/e1000_phy.c
index 5b54254..6d42dfe 100644
--- a/drivers/net/ethernet/intel/igb/e1000_phy.c
+++ b/drivers/net/ethernet/intel/igb/e1000_phy.c
@@ -77,6 +77,10 @@  s32 igb_get_phy_id(struct e1000_hw *hw)
        s32 ret_val = 0;
        u16 phy_id;

+       /* ensure phy page selection to fix misconfigured i210 */
+       if (hw->mac.type == e1000_i210)
+               phy->ops.write_reg(hw, I347AT4_PAGE_SELECT, 0);
+
        ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id);
        if (ret_val)
                goto out;