Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -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 */