]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: check EEPROM for WOL support for X540 and above
authorEmil Tantilov <emil.s.tantilov@intel.com>
Thu, 21 Apr 2016 18:37:12 +0000 (11:37 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 4 May 2016 07:24:29 +0000 (00:24 -0700)
commit1daec863b44b2d16799862da42b350e69a6ad7e5
tree3ca3799d567439300cc0c4e60a37e2c4a350af1a
parent7dfa044905208c6d6714e03d51f6f99810f22096
ixgbe: check EEPROM for WOL support for X540 and above

This change aims to simplify the logic we use to determine WOL
support by reading the EEPROM bits for MACs X540 and newer.

Also some cleanups in ixgbe_wol_supported() - changed return type to
bool and removed redundant return variable by simply using return after
the checks.

Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe.h
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c