]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: phy: clear EEE runtime state in PHY_HALTED/PHY_ERROR
authorOleksij Rempel <o.rempel@pengutronix.de>
Fri, 12 Sep 2025 13:20:00 +0000 (15:20 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 15 Sep 2025 23:16:03 +0000 (16:16 -0700)
commit0915cb22452723407ca9606b7e5cc3fe6ce767d5
tree097be26e6222e92710538e71798836b34393f474
parentb7df2e7eaef7c5402d47553b2cc82f92b301ecb4
net: phy: clear EEE runtime state in PHY_HALTED/PHY_ERROR

Clear EEE runtime flags when the PHY transitions to HALTED or ERROR
and the state machine drops the link. This avoids stale EEE state being
reported via ethtool after the PHY is stopped or hits an error.

This change intentionally only clears software runtime flags and avoids
MDIO accesses in HALTED/ERROR. A follow-up patch will address other
link state variables.

Suggested-by: Russell King (Oracle) <linux@armlinux.org.uk>
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/20250912132000.1598234-1-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phy.c