igb: reset PHY after recovering from PHY power down
authorKoki Sanagi <sanagi.koki@jp.fujitsu.com>
Wed, 4 Jan 2012 20:23:38 +0000 (20:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Jan 2012 18:12:04 +0000 (13:12 -0500)
commita95a07445ee97a2fef65befafbadcc30ca1bd145
tree54472ddd4c18242b1e030ab260f92ca2b6a60e65
parent749ab2cd127046df79084b6b9165b23491b1db5f
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>
drivers/net/ethernet/intel/igb/igb_main.c