fsl/fman: fix 1G support for QSGMII interfaces
authorMadalin Bucur <madalin.bucur@nxp.com>
Mon, 19 Dec 2016 20:42:43 +0000 (22:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Dec 2016 18:55:34 +0000 (13:55 -0500)
QSGMII ports were not advertising 1G speed.

Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
Reviewed-by: Camelia Groza <camelia.groza@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fman/mac.c

index 69ca42ce5dd5034803c557df92c7a8911aedd35e..0b31f8502adae2e86c292fb99437ee943c0794bf 100644 (file)
@@ -594,6 +594,7 @@ static const u16 phy2speed[] = {
        [PHY_INTERFACE_MODE_RGMII_RXID] = SPEED_1000,
        [PHY_INTERFACE_MODE_RGMII_TXID] = SPEED_1000,
        [PHY_INTERFACE_MODE_RTBI]               = SPEED_1000,
+       [PHY_INTERFACE_MODE_QSGMII]             = SPEED_1000,
        [PHY_INTERFACE_MODE_XGMII]              = SPEED_10000
 };