net: dsa: mt7530: add support for in-band link status
authorDaniel Golle <daniel@makrotopia.org>
Wed, 21 Sep 2022 00:23:14 +0000 (01:23 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Sep 2022 10:58:37 +0000 (11:58 +0100)
commite19de30d20809af3221ef8a2648b8a8a52e02d90
treeeb100bd7c85c5e4f10c7f74629c7aa5164568d80
parent793cc3c78e828d26723433c590cd90d20fc91011
net: dsa: mt7530: add support for in-band link status

Read link status from SGMII PCS for in-band managed 2500Base-X and
1000Base-X connection on a MAC port of the MT7531. This is needed to
get the SFP cage working which is connected to SGMII interface of
port 5 of the MT7531 switch IC on the Bananapi BPi-R3 board.
While at it also handle an_complete for both the autoneg and the
non-autoneg codepath.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mt7530.c
drivers/net/dsa/mt7530.h