mirror of https://gitee.com/openkylin/linux.git
igb: reset PHY after recovering from PHY power down
According to 82576_Datasheet.pdf, PHY setting is lost after PHY power down. So resetting PHY is needed when recovering from PHY power down to set a default setting to PHY register. Owing to this lack, NIC doesn't link up in some rare situation. Signed-off-by: Koki Sanagi <sanagi.koki@jp.fujitsu.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
749ab2cd12
commit
a95a07445e
|
@ -1507,6 +1507,7 @@ void igb_power_up_link(struct igb_adapter *adapter)
|
|||
igb_power_up_phy_copper(&adapter->hw);
|
||||
else
|
||||
igb_power_up_serdes_link_82575(&adapter->hw);
|
||||
igb_reset_phy(&adapter->hw);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue