- Don't return 0xffff if PHY id isn't equal 0. This allows PHYs with

non-zero addresses to be used.

Approved by:	cognet
MFC after:	2 weeks
This commit is contained in:
stas 2007-12-16 12:57:12 +00:00
parent beccb3754c
commit 10ac9b50a2

View File

@ -996,8 +996,6 @@ ate_miibus_readreg(device_t dev, int phy, int reg)
* XXX to make sure that the clock to the emac is on here
*/
if (phy != 0)
return (0xffff);
sc = device_get_softc(dev);
DELAY(1); /* Hangs w/o this delay really 30.5us atm */
WR4(sc, ETH_MAN, ETH_MAN_REG_RD(phy, reg));