Commit e91b1db
jme: Fix device PM wakeup API usage
commit 81422e672f8181d7ad1ee6c60c723aac649f538f upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 1b06e99 commit e91b1db
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1931 | 1931 | | |
1932 | 1932 | | |
1933 | 1933 | | |
1934 | | - | |
| 1934 | + | |
1935 | 1935 | | |
1936 | 1936 | | |
1937 | 1937 | | |
| |||
2652 | 2652 | | |
2653 | 2653 | | |
2654 | 2654 | | |
2655 | | - | |
2656 | | - | |
2657 | 2655 | | |
2658 | 2656 | | |
2659 | 2657 | | |
| |||
3178 | 3176 | | |
3179 | 3177 | | |
3180 | 3178 | | |
3181 | | - | |
| 3179 | + | |
3182 | 3180 | | |
3183 | 3181 | | |
3184 | 3182 | | |
| |||
0 commit comments