diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2013-12-25 11:50:01 +0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-01-06 09:42:29 +0100 |
commit | 8ffd4f8c741d695779a91d62d9fe7b4f1e0c7ab2 (patch) | |
tree | 47c6eaae29d952a7ca7b0846daa8011717743d90 /drivers | |
parent | 8bc54c172131244abbc5adabfd7fee07d8400d8a (diff) | |
download | barebox-8ffd4f8c741d695779a91d62d9fe7b4f1e0c7ab2.tar.gz barebox-8ffd4f8c741d695779a91d62d9fe7b4f1e0c7ab2.tar.xz |
miitool: change behaviour closer to linux' mii-tool
miitool without arguments will try to show status for all phys.
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/phy/mdio_bus.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/net/phy/mdio_bus.c b/drivers/net/phy/mdio_bus.c index b29a980e67..895ead0a5c 100644 --- a/drivers/net/phy/mdio_bus.c +++ b/drivers/net/phy/mdio_bus.c @@ -27,7 +27,7 @@ LIST_HEAD(mii_bus_list); -static int mdiobus_detect(struct device_d *dev) +int mdiobus_detect(struct device_d *dev) { struct mii_bus *mii = to_mii_bus(dev); int i, ret; @@ -49,14 +49,6 @@ static int mdiobus_detect(struct device_d *dev) return 0; } -void mdiobus_detect_all(void) -{ - struct mii_bus *mii; - - for_each_mii_bus(mii) - mdiobus_detect(&mii->dev); -} - /** * mdiobus_register - bring up all the PHYs on a given bus and attach them to bus * @bus: target mii_bus |