From 1e6774a44e42484917964cb890d18f08c19cd74e Mon Sep 17 00:00:00 2001
From: Stanislav Sedov <stas@FreeBSD.org>
Date: Sun, 16 Dec 2007 12:57:12 +0000
Subject: [PATCH] - 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
---
 sys/arm/at91/if_ate.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sys/arm/at91/if_ate.c b/sys/arm/at91/if_ate.c
index 5a9c19cbf016..b25cdf192e43 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));