]> www.infradead.org Git - users/hch/misc.git/commit
net: phy: c45: improve handling of disabled EEE modes in generic ethtool functions
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 12 Feb 2025 20:01:42 +0000 (21:01 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 15 Feb 2025 03:46:12 +0000 (19:46 -0800)
commit0025fa45253c266eb3424d0f21e240c8c420894a
tree6e126ff40705b4dab7cba0ce165dd19cad1c8490
parentc2ddb619fa8d535af968965181656c20a6de3f81
net: phy: c45: improve handling of disabled EEE modes in generic ethtool functions

Currently disabled EEE modes are shown as supported in ethtool.
Change this by filtering them out when populating data->supported
in genphy_c45_ethtool_get_eee.
Disabled EEE modes are silently filtered out by genphy_c45_write_eee_adv.
This is planned to be removed, therefore ensure in
genphy_c45_ethtool_set_eee that disabled EEE modes are removed from the
user space provided EEE advertisement. For now keep the current behavior
to do this silently.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://patch.msgid.link/5187c86d-9a5a-482c-974f-cc103ce9738c@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phy-c45.c