net: phy: Keep track of EEE configuration
authorAndrew Lunn <andrew@lunn.ch>
Sat, 2 Mar 2024 19:53:02 +0000 (20:53 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 6 Mar 2024 03:21:17 +0000 (19:21 -0800)
commitfe0d4fd9285e5013b4bafbd3338847235b805a1c
tree03e86644e4467e020360cdf784eb1dff45182a33
parente3b6876ab85061e7de198f023a0c2bfc7478b420
net: phy: Keep track of EEE configuration

Have phylib keep track of the EEE configuration. This simplifies the
MAC drivers, in that they don't need to store it.

Future patches to phylib will also make use of this information to
further simplify the MAC drivers.

Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Link: https://lore.kernel.org/r/20240302195306.3207716-4-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phy.c
include/linux/phy.h