Commit e18556ee authored by Florian Fainelli's avatar Florian Fainelli Committed by David S. Miller

net: phy: bcm7xxx: do not use PHY_BRCM_100MBPS_WAR

There is no need for the PHY driver to check PHY_BRCM_100MBPS_WAR since
that is redundant with checking the PHY device supported features. Get
rid of that workaround flag.
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bb7d9349
...@@ -257,8 +257,8 @@ static int bcm7xxx_config_init(struct phy_device *phydev) ...@@ -257,8 +257,8 @@ static int bcm7xxx_config_init(struct phy_device *phydev)
phy_write(phydev, MII_BCM7XXX_AUX_MODE, MII_BCM7XX_64CLK_MDIO); phy_write(phydev, MII_BCM7XXX_AUX_MODE, MII_BCM7XX_64CLK_MDIO);
phy_read(phydev, MII_BCM7XXX_AUX_MODE); phy_read(phydev, MII_BCM7XXX_AUX_MODE);
/* Workaround only required for 100Mbits/sec */ /* Workaround only required for 100Mbits/sec capable PHYs */
if (!(phydev->dev_flags & PHY_BRCM_100MBPS_WAR)) if (phydev->supported & PHY_GBIT_FEATURES)
return 0; return 0;
/* set shadow mode 2 */ /* set shadow mode 2 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment