[Intel-wired-lan] [PATCH 1/2] e1000e: Do not wake up the system via WOL if device wakeup is disabled

Brown, Aaron F aaron.f.brown at intel.com
Mon Jun 15 18:51:27 UTC 2020


> From: Chen Yu <yu.c.chen at intel.com>
> Sent: Thursday, May 21, 2020 10:59 AM
> To: Kirsher, Jeffrey T <jeffrey.t.kirsher at intel.com>; David S. Miller
> <davem at davemloft.net>; Jakub Kicinski <kuba at kernel.org>; Kok, Auke-jan H
> <auke-jan.h.kok at intel.com>; Jeff Garzik <jeff at garzik.org>
> Cc: intel-wired-lan at lists.osuosl.org; netdev at vger.kernel.org; linux-
> kernel at vger.kernel.org; Brown, Len <len.brown at intel.com>; Rafael J. Wysocki
> <rjw at rjwysocki.net>; Shevchenko, Andriy <andriy.shevchenko at intel.com>;
> Neftin, Sasha <sasha.neftin at intel.com>; Lifshits, Vitaly
> <vitaly.lifshits at intel.com>; Chen, Yu C <yu.c.chen at intel.com>;
> Stable at vger.kernel.org
> Subject: [PATCH 1/2] 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: bc7f75fa9788 ("[E1000E]: New pci-express e1000 driver")
> Reported-by: Rafael J. Wysocki <rafael.j.wysocki at intel.com>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko at linux.intel.com>
> Cc: <Stable at vger.kernel.org>
> Signed-off-by: Chen Yu <yu.c.chen at intel.com>
> ---
>  drivers/net/ethernet/intel/e1000e/netdev.c | 14 ++++++++++----
>  1 file changed, 10 insertions(+), 4 deletions(-)
> 
Tested-by: Aaron Brown <aaron.f.brown at intel.com>




More information about the Intel-wired-lan mailing list