ixgbe: Check link wants report current link state
authorEmil Tantilov <emil.s.tantilov@intel.com>
Wed, 16 Feb 2011 01:38:08 +0000 (01:38 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 3 Mar 2011 11:04:05 +0000 (03:04 -0800)
commit48de36c5656113ce6cfe4207da2f90f46917e53d
tree7978a5577a2856684cf3c2c2119b1156e3ace916
parent76d97dd4c44c6847029ae9021fe0d880cad90d33
ixgbe: Check link wants report current link state

Currently check link reports the link state as down, if at any time
the link had previously gone down since the last time the LINKS
register was read.  This does not accurately reflect the function of
the check link call, which should be to return the CURRENT link
state. Code now reads the LINKS registers twice, once to clear the
previous and again to get the current value.

Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Stephen Ko <stephen.s.ko@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ixgbe/ixgbe_common.c