Skip to content

Realtek RTL822x PHY rework to c45 and SerDes interface switching

Marek Behún netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15net: phy: fail early with error code if indirect MMD access failsdrivers/net/phy/phy-core.c+40 -121 reply
2/15net: phy: export indirect MMD register accessorsdrivers/net/phy/phy-core.c include/linux/phy.h+18 -61 reply
3/15net: phy: realtek: rework MMD register access methodsdrivers/net/phy/realtek.c+45 -662 replies
4/15net: phy: realtek: fill .read_mmd and .write_mmd methods for all rtl822x PHYsdrivers/net/phy/realtek.c+8 -01 reply
5/15net: mdio: add 2.5g and 5g related PMA speed constantsinclude/uapi/linux/mdio.h+2 -01 reply
6/15net: phy: realtek: use generic MDIO constantsdrivers/net/phy/realtek.c+13 -171 reply
7/15net: phy: realtek: set is_c45 and fill in c45 IDs in PHY probe for rtl822x PHYsdrivers/net/phy/realtek.c+18 -00 replies
8/15net: phy: realtek: use generic clause 45 feature reading for rtl822x PHYsdrivers/net/phy/realtek.c+0 -240 replies
9/15net: phy: realtek: read standard MMD register for rtlgen speed capabilitydrivers/net/phy/realtek.c+1 -50 replies
10/15net: phy: realtek: use generic c45 AN config with 1000baseT vendor extension for rtl822xdrivers/net/phy/realtek.c+20 -130 replies
11/15net: phy: realtek: use generic c45 status reading with 1000baseT vendor extension for rtl822xdrivers/net/phy/realtek.c+8 -200 replies
12/15net: phy: realtek: use generic c45 suspend/resume for rtl822xdrivers/net/phy/realtek.c+24 -120 replies
13/15net: phy: realtek: drop .read_page and .write_page for rtl822x seriesdrivers/net/phy/realtek.c+0 -122 replies
14/15net: phy: realtek: configure SerDes mode for rtl822x PHYsdrivers/net/phy/realtek.c+95 -20 replies
15/15net: sfp: add quirk for another multigig RollBall transceiverdrivers/net/phy/sfp.c+1 -00 replies

Reviews trailers per patch

6 of 15 patches have a Reviewed-by or Acked-by.

PatchRussell King (Oracle)
1/15R-b
2/15R-b
3/15R-b
4/15R-b
5/15R-b
6/15R-b
7/15
8/15
9/15
10/15
11/15
12/15
13/15
14/15
15/15

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 00/15] Realtek RTL822x PHY rework to c45 and SerDes interface switching

Hi,

this series reworks the realtek PHY driver's support for rtl822x 2.5G transceivers:

- First I change the driver so that the high level driver methods only use clause 45 register accesses (the only clause 22 accesses are left when accessing c45 registers indirectly, if the MDIO bus does not support clause 45 accesses).
The driver starts using the genphy_c45_* methods.

At this point the driver is ready to be used on a MDIO bus capable of only clause 45 accesses, but will still work on clause 22 only MDIO bus.

- I then add support for SerDes mode switching between 2500base-x and sgmii, based on autonegotiated copper speed.

All this is done so that we can support another 2.5G copper SFP module, which is enabled by the last patch.

Marek

Alexander Couzens (1):
net: phy: realtek: configure SerDes mode for rtl822x PHYs

Marek Behún (14):
net: phy: fail early with error code if indirect MMD access fails
net: phy: export indirect MMD register accessors
net: phy: realtek: rework MMD register access methods
net: phy: realtek: fill .read_mmd and .write_mmd methods for all
rtl822x PHYs
net: mdio: add 2.5g and 5g related PMA speed constants
net: phy: realtek: use generic MDIO constants
net: phy: realtek: set is_c45 and fill in c45 IDs in PHY probe for
rtl822x PHYs
net: phy: realtek: use generic clause 45 feature reading for rtl822x
PHYs
net: phy: realtek: read standard MMD register for rtlgen speed
capability
net: phy: realtek: use generic c45 AN config with 1000baseT vendor
extension for rtl822x
net: phy: realtek: use generic c45 status reading with 1000baseT
vendor extension for rtl822x
net: phy: realtek: use generic c45 suspend/resume for rtl822x
net: phy: realtek: drop .read_page and .write_page for rtl822x series
net: sfp: add quirk for another multigig RollBall transceiver

 drivers/net/phy/phy-core.c |  54 ++++--
 drivers/net/phy/realtek.c  | 343 ++++++++++++++++++++++---------------
 drivers/net/phy/sfp.c      |   1 +
 include/linux/phy.h        |  10 ++
 include/uapi/linux/mdio.h  |   2 +
 5 files changed, 257 insertions(+), 153 deletions(-)
Signature · 1 line
2.41.0