[PATCH net-next v2 0/4] net: phy: EEE fixes

From: Oleksij Rempel
Date: Tue Feb 21 2023 - 00:03:54 EST


changes v2:
- restore previous ethtool set logic for the case where advertisements
are not provided by user space.
- use ethtool_convert_legacy_u32_to_link_mode() where possible
- genphy_c45_an_config_eee_aneg(): move adv initialization in to the if
scope.

Different EEE related fixes.

Oleksij Rempel (4):
net: phy: c45: use "supported_eee" instead of supported for access
validation
net: phy: c45: add genphy_c45_an_config_eee_aneg() function
net: phy: do not force EEE support
net: phy: c45: genphy_c45_ethtool_set_eee: validate EEE link modes

drivers/net/phy/phy-c45.c | 55 ++++++++++++++++++++++++++++--------
drivers/net/phy/phy_device.c | 21 +++++++++++++-
include/linux/phy.h | 6 ++++
3 files changed, 69 insertions(+), 13 deletions(-)

--
2.30.2