]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: fsl/fman: treat all RGMII modes in memac_adjust_link()
authorMadalin Bucur <madalin.bucur@oss.nxp.com>
Mon, 16 Mar 2020 12:05:56 +0000 (14:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Mar 2020 21:58:32 +0000 (14:58 -0700)
Treat all internal delay variants the same as RGMII.

Signed-off-by: Madalin Bucur <madalin.bucur@oss.nxp.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fman/fman_memac.c

index e1901874c19f09417e47e78d5c1e366b51b21992..0d2b4ab01f24c215b6a170848636b5956b1474ab 100644 (file)
@@ -782,7 +782,7 @@ int memac_adjust_link(struct fman_mac *memac, u16 speed)
        /* Set full duplex */
        tmp &= ~IF_MODE_HD;
 
-       if (memac->phy_if == PHY_INTERFACE_MODE_RGMII) {
+       if (phy_interface_mode_is_rgmii(memac->phy_if)) {
                /* Configure RGMII in manual mode */
                tmp &= ~IF_MODE_RGMII_AUTO;
                tmp &= ~IF_MODE_RGMII_SP_MASK;