1
0
Fork 0
alistair23-linux/drivers/net/ethernet/intel/e1000e
Chen Yu 96d98372b5 e1000e: Do not wake up the system via WOL if device wakeup is disabled
commit 6bf6be1127 upstream.

Currently the system will be woken up via WOL(Wake On LAN) even if the
device wakeup ability has been disabled via sysfs:
 cat /sys/devices/pci0000:00/0000:00:1f.6/power/wakeup
 disabled

The system should not be woken up if the user has explicitly
disabled the wake up ability for this device.

This patch clears the WOL ability of this network device if the
user has disabled the wake up ability in sysfs.

Fixes: bc7f75fa97 ("[E1000E]: New pci-express e1000 driver")
Reported-by: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Chen Yu <yu.c.chen@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-06-24 17:50:52 +02:00
..
80003es2lan.c e1000e: Reduce boot time by tightening sleep ranges 2019-06-28 15:59:52 -07:00
80003es2lan.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
82571.c e1000e: Reduce boot time by tightening sleep ranges 2019-06-28 15:59:52 -07:00
82571.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
Makefile net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
defines.h e1000e: PCIm function state support 2019-06-28 16:00:28 -07:00
e1000.h e1000e: Relax condition to trigger reset for ME workaround 2020-06-22 09:31:18 +02:00
ethtool.c ethernet: Delete unnecessary checks before the macro call “dev_kfree_skb” 2019-08-22 16:22:04 -07:00
hw.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
ich8lan.c e1000e: add workaround for possible stalled packet 2019-07-24 13:55:09 -07:00
ich8lan.h e1000e: add workaround for possible stalled packet 2019-07-24 13:55:09 -07:00
mac.c e1000e: Reduce boot time by tightening sleep ranges 2019-06-28 15:59:52 -07:00
mac.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
manage.c net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
manage.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
netdev.c e1000e: Do not wake up the system via WOL if device wakeup is disabled 2020-06-24 17:50:52 +02:00
nvm.c e1000e: Reduce boot time by tightening sleep ranges 2019-06-28 15:59:52 -07:00
nvm.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
param.c net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
phy.c net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
phy.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
ptp.c e1000e: extend PTP gettime function to read system clock 2018-11-09 19:43:51 -08:00
regs.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00