net: au1000_eth: fix PHY detection
authorManuel Lauss <manuel.lauss@gmail.com>
Fri, 10 Jun 2016 14:53:05 +0000 (16:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Jun 2016 06:32:25 +0000 (23:32 -0700)
commitd2b64baf97bbcbf3116c9de324d8de47fe2cb1fc
tree58f27360566a7e8682e392252c1867eb5f8e5fdd
parentd8f1233bdc1c400c72dfaa738e4bf30b6e29d126
net: au1000_eth: fix PHY detection

Commit 406bb43114567526372ef553485b165c5ce034f4
("phy: Add API for {un}registering an mdio device to a bus.")
broke PHY detection on this driver with a copy-paste bug:
The code is looking 32 times for a PHY at address 0.

Fixes ethernet on AMD DB1100/DB1500/DB1550 boards which have
their (autodetected) PHYs at address 31.

Cc: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/au1000_eth.c