|
@@ -231,15 +231,6 @@ struct phy_device * get_phy_device(struct mii_bus *bus, int addr)
|
|
if ((phy_id & 0x1fffffff) == 0x1fffffff)
|
|
if ((phy_id & 0x1fffffff) == 0x1fffffff)
|
|
return NULL;
|
|
return NULL;
|
|
|
|
|
|
- /*
|
|
|
|
- * Broken hardware is sometimes missing the pull-up resistor on the
|
|
|
|
- * MDIO line, which results in reads to non-existent devices returning
|
|
|
|
- * 0 rather than 0xffff. Catch this here and treat 0 as a non-existent
|
|
|
|
- * device as well.
|
|
|
|
- */
|
|
|
|
- if (phy_id == 0)
|
|
|
|
- return NULL;
|
|
|
|
-
|
|
|
|
dev = phy_device_create(bus, addr, phy_id);
|
|
dev = phy_device_create(bus, addr, phy_id);
|
|
|
|
|
|
return dev;
|
|
return dev;
|