]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: Fix failure to enable WoL by default when possible
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 28 Apr 2011 11:02:15 +0000 (11:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 May 2011 22:44:17 +0000 (15:44 -0700)
commit0f0225f1ce725eea5e625c1033e1e64f50cd185e
treecd88b86a5b7b7c9c16f6fbdefd03b9d5310b41c6
parent8c97f3977a57e4070248b32838f0ed062fb35095
tg3: Fix failure to enable WoL by default when possible

tg3 is supposed to enable WoL by default on adapters which support
that, but it fails to do so unless the adapter's
/sys/devices/.../power/wakeup file contains 'enabled' during the
initialization of the adapter.  Fix that by making tg3 use
device_set_wakeup_enable() to enable wakeup automatically whenever
WoL should be enabled by default.

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