summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstas <stas@FreeBSD.org>2007-12-16 12:57:12 +0000
committerstas <stas@FreeBSD.org>2007-12-16 12:57:12 +0000
commit10ac9b50a2ccb8d637b41368be5179694e3981ec (patch)
tree80e049a813c0006fa11928677d5b818f75c9da68
parentbeccb3754c4faad50772abeed5f5b4baa962e382 (diff)
downloadFreeBSD-src-10ac9b50a2ccb8d637b41368be5179694e3981ec.zip
FreeBSD-src-10ac9b50a2ccb8d637b41368be5179694e3981ec.tar.gz
- 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
-rw-r--r--sys/arm/at91/if_ate.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/arm/at91/if_ate.c b/sys/arm/at91/if_ate.c
index 5a9c19c..b25cdf1 100644
--- a/sys/arm/at91/if_ate.c
+++ b/sys/arm/at91/if_ate.c
@@ -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));
OpenPOWER on IntegriCloud