[PATCH] fix GENERIC_PHY match nothing
张忠山
zzs213 at 126.com
Fri Dec 7 20:58:52 EST 2012
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 at 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
More information about the barebox
mailing list