net: phy: aquantia: readd XGMII support for AQR107
authorMadalin-cristian Bucur <madalin.bucur@nxp.com>
Wed, 15 May 2019 15:07:44 +0000 (15:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 May 2019 19:14:07 +0000 (12:14 -0700)
XGMII interface mode no longer works on AQR107 after the recent changes,
adding back support.

Fixes: 570c8a7d5303 ("net: phy: aquantia: check for supported interface modes in config_init")
Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/aquantia_main.c

index eed4fe3..0fedd28 100644 (file)
@@ -487,6 +487,7 @@ static int aqr107_config_init(struct phy_device *phydev)
        /* Check that the PHY interface type is compatible */
        if (phydev->interface != PHY_INTERFACE_MODE_SGMII &&
            phydev->interface != PHY_INTERFACE_MODE_2500BASEX &&
+           phydev->interface != PHY_INTERFACE_MODE_XGMII &&
            phydev->interface != PHY_INTERFACE_MODE_10GKR)
                return -ENODEV;