]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: phy: add support for disabling PHY-autonomous EEE
authorNicolai Buchwitz <nb@tipi-net.de>
Mon, 6 Apr 2026 07:13:07 +0000 (09:13 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sun, 12 Apr 2026 18:33:23 +0000 (11:33 -0700)
commit7ef629b458018ed01dcab6cbdc644ef26b0d0d83
tree63bc5a9116cf9bd8be3898dc127acfc371c164eb
parent200df94709118d58f2ee3b398e63b2b03ac9b4d6
net: phy: add support for disabling PHY-autonomous EEE

Some PHYs (e.g. Broadcom BCM54xx, Realtek RTL8211F) implement
autonomous EEE where the PHY manages LPI signaling without forwarding
it to the MAC. This conflicts with MAC drivers that implement their own
LPI control.

Add a .disable_autonomous_eee callback to struct phy_driver and call it
from phy_support_eee(). When a MAC driver indicates it supports EEE via
phy_support_eee(), the PHY's autonomous EEE is automatically disabled so
the MAC can manage LPI entry/exit.

Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
Link: https://patch.msgid.link/20260406-devel-autonomous-eee-v1-1-b335e7143711@tipi-net.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phy_device.c
include/linux/phy.h