]> git.ipfire.org Git - thirdparty/linux.git/commit
net: sh_eth: Disable WoL if system can not suspend
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Tue, 9 Sep 2025 08:58:49 +0000 (10:58 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 11 Sep 2025 00:58:35 +0000 (17:58 -0700)
commit9c02ea544ac35a9def5827d30594406947ccd81a
tree735d55c9979c26a2778c7be3aabaeb59b699c55b
parent38611e5adae32e2546636ba930807f89c04061a1
net: sh_eth: Disable WoL if system can not suspend

The MAC can't facilitate WoL if the system can't go to sleep. Gate the
WoL support callbacks in ethtool at compile time using CONFIG_PM_SLEEP.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20250909085849.3808169-1-niklas.soderlund+renesas@ragnatech.se
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/renesas/sh_eth.c