X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=blobdiff_plain;f=drivers%2Fnet%2Fphy%2Fphy.c;h=f3b1b5c1ed915df0edb613616e43878626f6740f;hp=106f9b01505f8c999de5d733307a5d52eed09cd0;hb=b84fa855427f4b033542588c84a8667dfd1d3792;hpb=aa42a916c424d628db7b4b43f4f9a82a326b9471 diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index 106f9b0150..f3b1b5c1ed 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -882,11 +882,13 @@ struct phy_device *phy_find_by_mask(struct mii_dev *bus, unsigned phy_mask, phy_interface_t interface) { /* Reset the bus */ - if (bus->reset) + if (bus->reset) { bus->reset(bus); - /* Wait 15ms to make sure the PHY has come out of hard reset */ - udelay(15000); + /* Wait 15ms to make sure the PHY has come out of hard reset */ + udelay(15000); + } + return get_phy_device_by_mask(bus, phy_mask, interface); }