]> git.baikalelectronics.ru Git - kernel.git/commit
net: au1000_eth: fix PHY detection
authorManuel Lauss <manuel.lauss@gmail.com>
Fri, 10 Jun 2016 22:13:04 +0000 (00:13 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Jun 2016 06:34:42 +0000 (23:34 -0700)
commitb11e0a2a9ce2937f6c15ae6c5efc9cc4844dce91
treeed9465f11fe7bf1d10a1e207065b935c784937f2
parentf7d07d4d87e99a0c7818911fcb428573641bfc77
net: au1000_eth: fix PHY detection

Commit 4c73cde247d0729352f2c9aa9157a06e93835746
("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