aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_minisocks.c
diff options
context:
space:
mode:
authorGuo-Fu Tseng <cooldavid@cooldavid.org>2016-03-05 08:11:56 +0800
committerDavid S. Miller <davem@davemloft.net>2016-03-07 15:39:45 -0500
commit81422e672f8181d7ad1ee6c60c723aac649f538f (patch)
treee77edbbdb9fb1dd4b0cbea06145946d3b30cd30a /net/ipv4/tcp_minisocks.c
parentjme: Do not enable NIC WoL functions on S0 (diff)
downloadlinux-dev-81422e672f8181d7ad1ee6c60c723aac649f538f.tar.xz
linux-dev-81422e672f8181d7ad1ee6c60c723aac649f538f.zip
jme: Fix device PM wakeup API usage
According to Documentation/power/devices.txt The driver should not use device_set_wakeup_enable() which is the policy for user to decide. Using device_init_wakeup() to initialize dev->power.should_wakeup and dev->power.can_wakeup on driver initialization. And use device_may_wakeup() on suspend to decide if WoL function should be enabled on NIC. Reported-by: Diego Viola <diego.viola@gmail.com> Signed-off-by: Guo-Fu Tseng <cooldavid@cooldavid.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_minisocks.c')
0 files changed, 0 insertions, 0 deletions