]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Fix 1G link WoL
authorDon Skidmore <donald.c.skidmore@intel.com>
Thu, 28 Feb 2013 08:08:44 +0000 (08:08 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 18 Apr 2013 05:15:14 +0000 (22:15 -0700)
commitaf6e43217a3c283afef7265b910156905dfabd1f
treed974b78b8e7987e755aeaba8f78ab7cdee6bd8a9
parentd13cf31a0ed98820db0458fd208a4dd370c04168
ixgbe: Fix 1G link WoL

We reset during the shutdown path which will reset AUTOC register.  This
would change LMS to 10G.  If we were currently linked at 1G we will lose
link, which is a bad thing if we wanted WoL to work.  For the fix I needed
to know if WoL is supported so I created a new bool in the ixgbe_hw struct.
If this is set we will not allow the reset to change the current LMS value
in AUTOC.

Signed-off-by: Don Skidmore <donald.c.skidmore@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
drivers/net/ethernet/intel/ixgbe/ixgbe_type.h