]> asedeno.scripts.mit.edu Git - linux.git/commit
net: mvneta: Add support for 2500Mbps SGMII
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Tue, 25 Sep 2018 13:59:39 +0000 (15:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Sep 2018 03:27:09 +0000 (20:27 -0700)
commitda58a931f248f423f917c3a0b3c94303aa30a738
treea528915ae86a31351ffc052064f571983b0f0f25
parentc09c1474d8c107f592f15c094cb1eeed9abac1d6
net: mvneta: Add support for 2500Mbps SGMII

The mvneta controller can handle speeds up to 2500Mbps on the SGMII
interface. This relies on serdes configuration, the lane must be
configured at 3.125Gbps and we can't use in-band autoneg at that speed.

The main issue when supporting that speed on this particular controller
is that the link partner can send ethernet frames with a shortened
preamble, which if not explicitly enabled in the controller will cause
unexpected behaviours.

This was tested on Armada 385, with the comphy configuration done in
bootloader.

Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c