net: ethernet: Rework EEE
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest9 patches 10 repliesIn review
- v124 patches 24 repliesSuperseded
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | net: phy-c45: Fix genphy_c45_ethtool_set_eee descriptiondrivers/ | +6 | 2 replies | |
| 2/9 | net: add helpers for EEE configurationinclude/ | +38 | 1 reply | |
| 3/9 | net: phy: Add phydev->enable_tx_lpi to simplify adjust link callbacksdrivers/ include/ | +9 | 0 replies | |
| 4/9 | net: phy: Add helper to set EEE Clock stop enable bitdrivers/ include/ | +21 | 0 replies | |
| 5/9 | net: phy: Keep track of EEE configurationdrivers/ include/ | +7 | 3 replies | |
| 6/9 | net: phy: Immediately call adjust_link if only tx_lpi_enabled changesdrivers/ drivers/ | +30 | 0 replies | |
| 7/9 | net: phy: Add phy_support_eee() indicating MAC support EEEdrivers/ include/ | +20 | 3 replies | |
| 8/9 | net: fec: Move fec_enet_eee_mode_set() and helper earlierdrivers/ | +40 | 1 reply | |
| 9/9 | net: fec: Fixup EEEdrivers/ | +5 | 0 replies |
Reviews trailers per patch
4 of 9 patches have a Reviewed-by or Acked-by.
| Patch | Florian Fainelli | Russell King (Oracle) |
|---|---|---|
| 1/9 | ||
| 2/9 | R-b | |
| 3/9 | R-b | |
| 4/9 | ||
| 5/9 | R-b | R-b |
| 6/9 | ||
| 7/9 | ||
| 8/9 | R-b | |
| 9/9 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 net-next 0/9] net: ethernet: Rework EEE
Most MAC drivers get EEE wrong. The API to the PHY is not very obvious, which is probably why. Rework the API, pushing most of the EEE handling into phylib core, leaving the MAC drivers to just enable/disable support for EEE in there change_link call back.
MAC drivers are now expect to indicate to phylib if they support EEE. This will allow future patches to configure the PHY to advertise no EEE link modes when EEE is not supported. The information could also be used to enable SmartEEE if the PHY supports it.
With these changes, the uAPI configuration eee_enable becomes a global on/off. tx-lpi must also be enabled before EEE is enabled. This fits the discussion here:
https://lore.kernel.org/netdev/[email protected]/T/
This patchset puts in place all the infrastructure, and converts one MAC driver to the new API. Following patchsets will convert other MAC drivers, extend support into phylink, and when all MAC drivers are converted to the new scheme, clean up some unneeded code.
v4
--
Only convert one MAC driver
Drop all phylink code
Conform to the uAPI discision.
v3
--
Rework phylink code to add a new callback.
Rework function to indicate clock should be stopped during LPI
Andrew Lunn (8):
net: phy-c45: Fix genphy_c45_ethtool_set_eee description
net: phy: Add phydev->enable_tx_lpi to simplify adjust link callbacks
net: phy: Add helper to set EEE Clock stop enable bit
net: phy: Keep track of EEE configuration
net: phy: Immediately call adjust_link if only tx_lpi_enabled changes
net: phy: Add phy_support_eee() indicating MAC support EEE
net: fec: Move fec_enet_eee_mode_set() and helper earlier
net: fec: Fixup EEE
Russell King (1):
net: add helpers for EEE configuration
drivers/net/ethernet/freescale/fec_main.c | 88 ++++++++++------------- drivers/net/phy/phy-c45.c | 20 ++++-- drivers/net/phy/phy.c | 53 +++++++++++++- drivers/net/phy/phy_device.c | 18 +++++ include/linux/phy.h | 9 ++- include/net/eee.h | 38 ++++++++++ 6 files changed, 165 insertions(+), 61 deletions(-) create mode 100644 include/net/eee.h
Signature · 1 line
2.40.1