[PATCH net v1 0/2] Fix ethtool --show-eee for stmmac

Choong Yong Liang posted 2 patches 1 year, 1 month ago
.../net/ethernet/stmicro/stmmac/stmmac_main.c |  4 ++++
drivers/net/phy/phy_device.c                  | 24 +++++++++++++++++++
include/linux/phy.h                           |  2 ++
3 files changed, 30 insertions(+)
[PATCH net v1 0/2] Fix ethtool --show-eee for stmmac
Posted by Choong Yong Liang 1 year, 1 month ago
This fix ensures that 'ethtool --show-eee' displays the correct
status for stmmac.

Choong Yong Liang (2):
  net: phy: Introduce phy_update_eee() to update eee_cfg values
  net: stmmac: update eee_cfg after mac link up/down

 .../net/ethernet/stmicro/stmmac/stmmac_main.c |  4 ++++
 drivers/net/phy/phy_device.c                  | 24 +++++++++++++++++++
 include/linux/phy.h                           |  2 ++
 3 files changed, 30 insertions(+)

-- 
2.34.1
Re: [PATCH net v1 0/2] Fix ethtool --show-eee for stmmac
Posted by Russell King (Oracle) 1 year, 1 month ago
On Tue, Nov 12, 2024 at 03:24:45PM +0800, Choong Yong Liang wrote:
> This fix ensures that 'ethtool --show-eee' displays the correct
> status for stmmac.

What do you think is wrong? It seems stmmac is manipulating eee_enabled
depending on something. This is wrong. eee_enabled is a _user_
_configuration_ bit, not a status bit. If the user sets eee_enabled to
a particular state, then the user expects it to stay that way and not
be manipulated by the driver.

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!