]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: WoL fixes, part 2.
authorBruno Prémont <bonbons@linux-vserver.org>
Thu, 9 Oct 2008 00:06:25 +0000 (17:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Oct 2008 00:06:25 +0000 (17:06 -0700)
commit8e7a0da9e38c59c819a0c7116457f8d974e3c822
tree9fbf2798cf2ab0e80830c7c40070b1d91294281a
parentb83d0c643051f99999568bf8ada56632559d1196
r8169: WoL fixes, part 2.

Since recent kernel (2.6.26 or 2.6.27) the PCI wakeup functions are
influenced by generic device ability and configuration when enabling
PCI-device triggered wake-up.

This patch causes WoL setting to enable/disable device's wish to
be permitted to wake-up the host when changing WoL options and
also during device probing.

Without this patch one has write 'enabled' to
  /sys/bus/pci/devices/0000:02:08.0/power/wakeup

Signed-off-by: Bruno Prémont <bonbons@linux-vserver.org>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/r8169.c