net: phy: realtek: various improvements for 2.5GE PHYs
Status from this message: This series was applied to netdev/net-next.git (main)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest5 patches 4 repliesApplied 5/5
- v14 patches 3 repliesSuperseded
Patches in v2 All 5 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | net: phy: realtek: fix whitespace in struct phy_driver initializersdrivers/ | +73 | 1 reply | Applied |
| 2/5 | net: phy: realtek: implement configuring in-band andrivers/ | +67 | 0 replies | Applied |
| 3/5 | net: phy: move mmd_phy_read and mmd_phy_write to phylib.hdrivers/ drivers/ | +5 | 1 reply | Applied |
| 4/5 | net: phy: realtek: use paged access for MDIO_MMD_VEND2 in C22 modedrivers/ | +88 | 1 reply | Applied |
| 5/5 | net: phy: realtek: get rid of magic number in rtlgen_read_status()drivers/ | +2 | 1 reply | Applied |
Reviews trailers per patch
4 of 5 patches have a Reviewed-by or Acked-by.
| Patch | Maxime Chevallier | Andrew Lunn |
|---|---|---|
| 1/5 | R-b | |
| 2/5 | ||
| 3/5 | R-b | |
| 4/5 | R-b | |
| 5/5 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next v2 0/5] net: phy: realtek: various improvements for 2.5GE PHYs
This series improves the RealTek PHY driver, mostly for 2.5GE PHYs. It implements configuring SGMII and 2500Base-X in-band auto-negotiation and improves using the PHYs in Clause-22-only mode.
Note that the rtl822x_serdes_write() function introduced by this series is going to be reused to configure polarities of SerDes RX and TX lanes once series "PHY polarity inversion via generic device tree properties" has been applied.
Access to other registers on MDIO_MMD_VEND2 is important for more than just configuring autonegotiation, it is also used to setup ALDPS or to disable the PHY responding to the MDIO broadcast address 0. Both will be implemented by follow-up patches.
The address translation function for registers on MDIO_MMD_VEND2 into paged registers can potentially also be used to describe other paged access in a more consistent way, but that mostly makes sense on PHYs which also support Clause-45, so this series doesn't convert all the existing paged access on RealTek's 1GE PHYs which do not support Clause-45.
---
Changes since initial submission:
- use mmd_phy_read and mmd_phy_write
- fix return value in on error (oldpage vs. ret)
- fix wrong parameter name (reg vs. mmdreg)
Daniel Golle (5):
net: phy: realtek: fix whitespace in struct phy_driver initializers
net: phy: realtek: implement configuring in-band an
net: phy: move mmd_phy_read and mmd_phy_write to phylib.h
net: phy: realtek: use paged access for MDIO_MMD_VEND2 in C22 mode
net: phy: realtek: get rid of magic number in rtlgen_read_status()
drivers/net/phy/phylib-internal.h | 6 - drivers/net/phy/phylib.h | 5 + drivers/net/phy/realtek/realtek_main.c | 307 ++++++++++++++++++------- 3 files changed, 235 insertions(+), 83 deletions(-)
Signature · 1 line
2.52.0