ixgbe: fix for link failure on SFP+ DA cables
authorDon Skidmore <donald.c.skidmore@intel.com>
Fri, 3 Dec 2010 13:23:30 +0000 (13:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Dec 2010 21:18:50 +0000 (13:18 -0800)
commita7f5a5fcd9f13afd3471a0de8c1fdaa8f989497c
treef209c677d351b228dd6be42d50b21d814abb933d
parent8917a3c0b7d1557548f50bfe3f0e18e0354e38f6
ixgbe: fix for link failure on SFP+ DA cables

This patch helps prevent FW/SW semaphore collision from leading
to link establishment failure.  The collision might mess up the
PHY registers so we reset the PHY.  However there are SFI/KR areas
in the PHY that are not reset with a Reset_AN so we need to change
LMS to reset it.  Also wait until AN state machine is AN_GOOD

Signed-off-by: Don Skidmore <donald.c.skidmore@intel.com>
Tested-by: Stephen Ko <stephen.s.ko@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe_82599.c
drivers/net/ixgbe/ixgbe_type.h