net: sfp: add support for a couple of copper multi-rate modules
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Sat, 20 May 2023 10:18:30 +0000 (11:18 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 23 May 2023 02:07:29 +0000 (19:07 -0700)
commit5859a99b52254be356d3cca2e40f7f371ef24b0a
tree0179d4a9b9fd17f14114b2df7c25414211816f2b
parentd49b9b07725f5dfa3344dc3eed59b8ccc0a0ddbc
net: sfp: add support for a couple of copper multi-rate modules

Add support for the Fiberstore SFP-10G-T and Walsun HXSX-ATRC-1
modules. Internally, the PCB silkscreen has what seems to be a part
number of WT_502. Fiberstore use v2.2 whereas Walsun use v2.6.

These modules contain a Marvell AQrate AQR113C PHY, accessible through
I2C 0x51 using the "rollball" protocol. In both cases, the PHY is
programmed to use 10GBASE-R with pause-mode rate adaption.

Unlike the other rollball modules, these only need a four second delay
before we can talk to the PHY.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/E1q0JfS-006Dqc-8t@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/sfp.c