mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] fix GENERIC_PHY match nothing
@ 2012-12-08  1:58 张忠山
  2012-12-08 11:15 ` Sascha Hauer
  0 siblings, 1 reply; 4+ messages in thread
From: 张忠山 @ 2012-12-08  1:58 UTC (permalink / raw)
  To: barebox

According the match logic in function mdio_bus_match
generic phy driver matchs nothing.

If we want it match anything, We must let it's phy_id_mask
be all zeros

Signed-off-by: 张忠山 <zzs213@126.com>
---
 drivers/net/phy/generic.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/phy/generic.c b/drivers/net/phy/generic.c
index 3f5f127..c3743b9 100644
--- a/drivers/net/phy/generic.c
+++ b/drivers/net/phy/generic.c
@@ -25,7 +25,7 @@
 static struct phy_driver generic_phy = {
 	.drv.name = "Generic PHY",
 	.phy_id = PHY_ANY_UID,
-	.phy_id_mask = PHY_ANY_UID,
+	.phy_id_mask = 0,
 	.features = 0,
 };
 
-- 
1.7.4.4



_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-12-10  2:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-08  1:58 [PATCH] fix GENERIC_PHY match nothing 张忠山
2012-12-08 11:15 ` Sascha Hauer
2012-12-08 12:38   ` Sascha Hauer
2012-12-10  1:52     ` 张忠山

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox