]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: phy: Marvell: Use phy_interface_is_rgmii helper function
authorPhil Edworthy <PHIL.EDWORTHY@renesas.com>
Mon, 12 Dec 2016 12:54:15 +0000 (12:54 +0000)
committerJoe Hershberger <joe.hershberger@ni.com>
Tue, 7 Feb 2017 16:54:34 +0000 (10:54 -0600)
Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/phy/marvell.c

index e76a14b47a58d7160998a1f6525d92f384096126..11aea9a348dee36cafd974cc104ebf56aa0933b3 100644 (file)
@@ -177,10 +177,7 @@ static int m88e1111s_config(struct phy_device *phydev)
 {
        int reg;
 
-       if ((phydev->interface == PHY_INTERFACE_MODE_RGMII) ||
-                       (phydev->interface == PHY_INTERFACE_MODE_RGMII_ID) ||
-                       (phydev->interface == PHY_INTERFACE_MODE_RGMII_RXID) ||
-                       (phydev->interface == PHY_INTERFACE_MODE_RGMII_TXID)) {
+       if (phy_interface_is_rgmii(phydev)) {
                reg = phy_read(phydev,
                        MDIO_DEVAD_NONE, MIIM_88E1111_PHY_EXT_CR);
                if ((phydev->interface == PHY_INTERFACE_MODE_RGMII) ||