]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net: mvpp2: Add 2.5GBaseT support
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Fri, 22 Feb 2019 23:37:43 +0000 (00:37 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Feb 2019 01:45:25 +0000 (17:45 -0800)
The PPv2 controller is able to support 2.5G speeds, allowing to use
2.5GBASET in conjunction with PHYs that use 2500BASEX as their MII
interface when using this mode.

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/marvell/mvpp2/mvpp2_main.c

index 191d9ce85b7ed83113e63ace71821f55fe16065c..6638a3339efc98e0fff7619bbc99e4f683d62ada 100644 (file)
@@ -4403,6 +4403,7 @@ static void mvpp2_phylink_validate(struct net_device *dev,
        case PHY_INTERFACE_MODE_2500BASEX:
                phylink_set(mask, 1000baseT_Full);
                phylink_set(mask, 1000baseX_Full);
+               phylink_set(mask, 2500baseT_Full);
                phylink_set(mask, 2500baseX_Full);
                break;
        default: