diff options
author | Nicolas Ferre <nicolas.ferre@microchip.com> | 2020-07-10 14:46:45 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-10 14:29:38 -0700 |
commit | 6c8f85cac98a4c6b767c4c4f6af7283724c32b47 (patch) | |
tree | 6d134feb3286bd4131a0876627f9a1bc5bf680fd /tools/lib/lockdep | |
parent | 64febc5e56c9a748162f206dcc5be1a44436087a (diff) | |
download | linux-6c8f85cac98a4c6b767c4c4f6af7283724c32b47.tar.gz linux-6c8f85cac98a4c6b767c4c4f6af7283724c32b47.tar.bz2 linux-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 <claudiu.beznea@microchip.com>
Cc: Harini Katakam <harini.katakam@xilinx.com>
Cc: Sergio Prado <sergio.prado@e-labworks.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/lib/lockdep')
0 files changed, 0 insertions, 0 deletions