]> git.baikalelectronics.ru Git - kernel.git/commit
e1000e: Do not wake up the system via WOL if device wakeup is disabled
authorChen Yu <yu.c.chen@intel.com>
Thu, 21 May 2020 17:59:00 +0000 (01:59 +0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 16 Jun 2020 22:35:48 +0000 (15:35 -0700)
commit014369d8e3f46fcead9211b3e4bcc6f1dd923082
tree4802878412dcdbe2bc4d354f66b0751f67192cd8
parent36827f36176ab30f4526da60cc0c149fa30488be
e1000e: Do not wake up the system via WOL if device wakeup is disabled

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: 3f32e81cc0ea ("[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>
drivers/net/ethernet/intel/e1000e/netdev.c