aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorNicolas Ferre <[email protected]>2020-07-10 12:46:45 +0000
committerDavid S. Miller <[email protected]>2020-07-10 21:29:38 +0000
commit6c8f85cac98a4c6b767c4c4f6af7283724c32b47 (patch)
tree6d134feb3286bd4131a0876627f9a1bc5bf680fd /lib/debugobjects.c
parentnet: macb: fix macb_suspend() by removing call to netif_carrier_off() (diff)
downloadkernel-6c8f85cac98a4c6b767c4c4f6af7283724c32b47.tar.gz
kernel-6c8f85cac98a4c6b767c4c4f6af7283724c32b47.zip
net: macb: fix call to pm_runtime in the suspend/resume functions
The calls to pm_runtime_force_suspend/resume() functions are only relevant if the device is not configured to act as a WoL wakeup source. Add the device_may_wakeup() test before calling them. Fixes: 3e2a5e153906 ("net: macb: add wake-on-lan support via magic packet") Cc: Claudiu Beznea <[email protected]> Cc: Harini Katakam <[email protected]> Cc: Sergio Prado <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: Nicolas Ferre <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions