net: lan966x: Add QUSGMII support for lan966x
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Wed, 17 Aug 2022 12:32:55 +0000 (14:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Aug 2022 12:46:26 +0000 (13:46 +0100)
commitac0167fb9961ea929e17fad2d703cc1a14dfb7a9
tree56ec6f6086e8e2d8b1c7f2431bce3e3b0e21b4ab
parentc04ade27cb7b952b6b9b9a0efa0a6129cc63f2ae
net: lan966x: Add QUSGMII support for lan966x

The Lan996x controller supports the QUSGMII mode, which is very similar
to QSGMII in the way it's configured and the autonegociation
capababilities it provides.

This commit adds support for that mode, treating it most of the time
like QSGMII, making sure that we do configure the PCS how we should.

Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/lan966x/lan966x_main.c
drivers/net/ethernet/microchip/lan966x/lan966x_phylink.c
drivers/net/ethernet/microchip/lan966x/lan966x_port.c
drivers/net/ethernet/microchip/lan966x/lan966x_regs.h