net: sfp: add support for multigig RollBall transceivers
authorMarek Behún <kabel@kernel.org>
Fri, 30 Sep 2022 14:21:10 +0000 (16:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Oct 2022 10:08:33 +0000 (11:08 +0100)
commit324e88cbe3b7be03af67828469cedb52c8610bd1
tree1a6162e4cdd6ab0820ad9936e12accec51147117
parent09bbedac72d5a9267088c15d1a71c8c3a8fb47e7
net: sfp: add support for multigig RollBall transceivers

This adds support for multigig copper SFP modules from RollBall/Hilink.
These modules have a specific way to access clause 45 registers of the
internal PHY.

We also need to wait at least 22 seconds after deasserting TX disable
before accessing the PHY. The code waits for 25 seconds just to be sure.

Signed-off-by: Marek Behún <kabel@kernel.org>
Reviewed-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/sfp.c