net: phy: broadcom: drop duplicated define for RGMII SKEW delay
authorRafał Miłecki <rafal@milecki.pl>
Wed, 25 Jan 2017 20:00:26 +0000 (21:00 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Jan 2017 04:13:44 +0000 (23:13 -0500)
We had two defines for the same bit (both were used with the
MII_BCM54XX_AUXCTL_SHDWSEL_MISC register).

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/broadcom.c
include/linux/brcmphy.h

index 25c6e6cea2dc18c4e1cb385a4d85381f5128763d..97d1c057c0a13bfecdedd00a1e638ac1c1b79c22 100644 (file)
@@ -398,7 +398,7 @@ static int bcm54612e_config_aneg(struct phy_device *phydev)
                reg = bcm54xx_auxctl_read(phydev,
                                          MII_BCM54XX_AUXCTL_SHDWSEL_MISC);
                /* Disable RXD to RXC delay (default set) */
-               reg &= ~MII_BCM54XX_AUXCTL_MISC_RXD_RXC_SKEW;
+               reg &= ~MII_BCM54XX_AUXCTL_SHDWSEL_MISC_RGMII_SKEW_EN;
                /* Clear shadow selector field */
                reg &= ~MII_BCM54XX_AUXCTL_SHDWSEL_MASK;
                bcm54xx_auxctl_write(phydev, MII_BCM54XX_AUXCTL_SHDWSEL_MISC,
index 34e61004b9dc8d81a73ceda01606ecb4b56f74fb..f9cb73df127ec35b893a6d8fdaea97660423a158 100644 (file)
 #define MII_BCM54XX_AUXCTL_ACTL_SMDSP_ENA      0x0800
 
 #define MII_BCM54XX_AUXCTL_MISC_WREN   0x8000
-#define MII_BCM54XX_AUXCTL_MISC_RXD_RXC_SKEW   0x0100
 #define MII_BCM54XX_AUXCTL_MISC_FORCE_AMDIX    0x0200
 #define MII_BCM54XX_AUXCTL_SHDWSEL_MISC        0x0007
 #define MII_BCM54XX_AUXCTL_SHDWSEL_READ_SHIFT  12