igb: Workaround for igb i210 firmware issue

am: 15ffc931ee

Change-Id: I3fcf7415f2b74a48f35cd2ebcd63ee1ac8a71840
This commit is contained in:
Chris J Arges
2017-03-22 12:02:17 +00:00
committed by android-build-merger

View File

@@ -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;