]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: Avoid setting power.can_wakeup for devices that cannot wake up
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 10 Feb 2011 06:53:09 +0000 (06:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Feb 2011 19:38:43 +0000 (11:38 -0800)
commit9b6469a12a9257995a8ac6fd923e50c934714ccc
tree07a008217363f2e89d13341a91a19984bb8be309
parent0391277f826f708f150b062cd0fe44205e7ff0ec
tg3: Avoid setting power.can_wakeup for devices that cannot wake up

The tg3 driver uses device_init_wakeup() in such a way that the
device's power.can_wakeup flag may be set even though the PCI
subsystem cleared it before, in which case the device cannot wake
up the system from sleep states.  Modify the driver to only change
the power.can_wakeup flag if the device is not capable of generating
wakeup signals.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c