]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: cadence: macb: add ethtool EEE support
authorNicolai Buchwitz <nb@tipi-net.de>
Wed, 4 Mar 2026 10:54:30 +0000 (11:54 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 6 Mar 2026 02:56:48 +0000 (18:56 -0800)
commit61332b78761cb1638e2bf29273050cf009fbbc0e
treed84c36de29159231df6677314998b1187bdb0cf1
parent0cc425f18f59f992c61c1802331d25ce689ff5d1
net: cadence: macb: add ethtool EEE support

Implement get_eee and set_eee ethtool ops for GEM as simple passthroughs
to phylink_ethtool_get_eee() and phylink_ethtool_set_eee().

No MACB_CAPS_EEE guard is needed: phylink returns -EOPNOTSUPP from both
ops when mac_supports_eee is false, which is the case when
lpi_capabilities and lpi_interfaces are not populated. Those fields are
only set when MACB_CAPS_EEE is present (previous patch), so phylink
already handles the unsupported case correctly.

Reviewed-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
Reviewed-by: Théo Lebrun <theo.lebrun@bootlin.com>
Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
Link: https://patch.msgid.link/20260304105432.631186-4-nb@tipi-net.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cadence/macb_main.c