Commit 6bf6be1
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: bc7f75f ("[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>1 parent b8ad540 commit 6bf6be1
1 file changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6611 | 6611 | | |
6612 | 6612 | | |
6613 | 6613 | | |
6614 | | - | |
6615 | | - | |
6616 | | - | |
| 6614 | + | |
6617 | 6615 | | |
6618 | 6616 | | |
| 6617 | + | |
| 6618 | + | |
| 6619 | + | |
| 6620 | + | |
| 6621 | + | |
| 6622 | + | |
| 6623 | + | |
| 6624 | + | |
6619 | 6625 | | |
6620 | 6626 | | |
6621 | 6627 | | |
| |||
6672 | 6678 | | |
6673 | 6679 | | |
6674 | 6680 | | |
6675 | | - | |
| 6681 | + | |
6676 | 6682 | | |
6677 | 6683 | | |
6678 | 6684 | | |
| |||
0 commit comments