net: mvneta: Don't advertise 2.5G modes
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Fri, 9 Nov 2018 08:17:33 +0000 (09:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Nov 2018 03:23:45 +0000 (19:23 -0800)
commit83e65df6dfece9eb588735459428f221eb930c0c
tree3e5d749d2e028bea048e4c52b106cbbafb82e9dc
parenta97b9565338350d70d8d971c4ee6f0d4fa967418
net: mvneta: Don't advertise 2.5G modes

Using 2.5G speed relies on the SerDes lanes being configured
accordingly. The lanes have to be reconfigured to switch between
1G and 2.5G, and for now only the bootloader does this configuration.

In the case we add a Comphy driver to handle switching the lanes
dynamically, it's better for now to stick with supporting only 1G and
add advertisement for 2.5G once we really are capable of handling both
speeds without problem.

Since the interface mode is initialy taken from the DT, we want to make
sure that adding comphy support won't break boards that don't update
their dtb.

Fixes: da58a931f248 ("net: mvneta: Add support for 2500Mbps SGMII")
Reported-by: Andrew Lunn <andrew@lunn.ch>
Reported-by: Russell King <linux@armlinux.org.uk>
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c