* [U-Boot] [PATCH 1/1] net: phy: delay only if reset handler is registered
@ 2015-07-15 13:18 Jörg Krause
2015-08-12 19:28 ` Joe Hershberger
0 siblings, 1 reply; 2+ messages in thread
From: Jörg Krause @ 2015-07-15 13:18 UTC (permalink / raw)
To: u-boot
With commit e3a77218a256edbe201112a39beeed8adcabae3f the MII bus is only
reset if a reset handler is registered. If there is no reset handler there
is no need to wait for a device to come out of the reset.
Signed-off-by: J?rg Krause <joerg.krause@embedded.rocks>
---
drivers/net/phy/phy.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
index 865abab..65c731a 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -763,11 +763,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);
}
--
2.4.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH 1/1] net: phy: delay only if reset handler is registered
2015-07-15 13:18 [U-Boot] [PATCH 1/1] net: phy: delay only if reset handler is registered Jörg Krause
@ 2015-08-12 19:28 ` Joe Hershberger
0 siblings, 0 replies; 2+ messages in thread
From: Joe Hershberger @ 2015-08-12 19:28 UTC (permalink / raw)
To: u-boot
Hi J?rg,
On Wed, Jul 15, 2015 at 8:18 AM, J?rg Krause
<joerg.krause@embedded.rocks> wrote:
> With commit e3a77218a256edbe201112a39beeed8adcabae3f the MII bus is only
> reset if a reset handler is registered. If there is no reset handler there
> is no need to wait for a device to come out of the reset.
>
> Signed-off-by: J?rg Krause <joerg.krause@embedded.rocks>
Applied to u-boot-net, thanks!
-Joe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-08-12 19:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-15 13:18 [U-Boot] [PATCH 1/1] net: phy: delay only if reset handler is registered Jörg Krause
2015-08-12 19:28 ` Joe Hershberger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.