From: Koki Sanagi Date: Wed, 4 Jan 2012 20:23:38 +0000 (+0000) Subject: igb: reset PHY after recovering from PHY power down X-Git-Tag: v3.12-rc1~4160^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a95a07445ee97a2fef65befafbadcc30ca1bd145;p=kernel%2Fkernel-generic.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 Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c index fac71e2..01e5e89 100644 --- a/drivers/net/ethernet/intel/igb/igb_main.c +++ b/drivers/net/ethernet/intel/igb/igb_main.c @@ -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); } /**