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

Commit 86c5fe4c authored by David S. Miller's avatar David S. Miller
Browse files

Revert "net: au1000_eth: fix PHY detection"



This reverts commit a2f27217.

I applied the wrong version of this.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a2f27217
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -508,9 +508,10 @@ static int au1000_mii_probe(struct net_device *dev)
	/* find the first (lowest address) PHY
	 * on the current MAC's MII bus
	 */
	for (phy_addr = 0; phy_addr < PHY_MAX_ADDR; phy_addr++) {
		phydev = mdiobus_get_phy(aup->mii_bus, phy_addr);
		if (phydev && !aup->phy_search_highest_addr)
	for (phy_addr = 0; phy_addr < PHY_MAX_ADDR; phy_addr++)
		if (mdiobus_get_phy(aup->mii_bus, aup->phy_addr)) {
			phydev = mdiobus_get_phy(aup->mii_bus, aup->phy_addr);
			if (!aup->phy_search_highest_addr)
				/* break out with first one found */
				break;
		}