Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 129766
b: refs/heads/master
c: f0d44ae
h: refs/heads/master
v: v3
  • Loading branch information
Anton Vorontsov authored and David S. Miller committed Jan 14, 2009
1 parent 038def2 commit 8f9f154
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f17f5c91ae3bfeb5cfc37fa132a5fdfceb8927be
refs/heads/master: f0d44ae310bc8eb0b6694e257015d8b24e1a357c
9 changes: 0 additions & 9 deletions trunk/drivers/net/phy/phy_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,15 +231,6 @@ struct phy_device * get_phy_device(struct mii_bus *bus, int addr)
if ((phy_id & 0x1fffffff) == 0x1fffffff)
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);

return dev;
Expand Down

0 comments on commit 8f9f154

Please sign in to comment.