]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Dec 2025 11:45:12 +0000 (12:45 +0100)
commitf18cc90244b9d37490d63c5e6bc1567f4fe3f7eb
tree581dd5c1c89a74e21a5fbf42af49879424808616
parentf60168e62fd3b42bd2f23c464bb4a64b6629548f
net: sh_eth: Disable WoL if system can not suspend

[ Upstream commit 9c02ea544ac35a9def5827d30594406947ccd81a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/renesas/sh_eth.c