* [U-Boot] [PATCH] MX31: add delay between USB port setup and reset
@ 2010-10-19 10:02 Stefano Babic
2010-10-19 10:39 ` Stefano Babic
0 siblings, 1 reply; 2+ messages in thread
From: Stefano Babic @ 2010-10-19 10:02 UTC (permalink / raw)
To: u-boot
Sometimes a usb tree is not popolated after a system reset.
It seems a delay is required after setting the USB ports
for the MX.31 before resetting the ehci controller.
Signed-off-by: Stefano Babic <sbabic@denx.de>
---
drivers/usb/host/ehci-mxc.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/usb/host/ehci-mxc.c b/drivers/usb/host/ehci-mxc.c
index af8ee90..8d7b380 100644
--- a/drivers/usb/host/ehci-mxc.c
+++ b/drivers/usb/host/ehci-mxc.c
@@ -117,6 +117,8 @@ int ehci_hcd_init(void)
mxc_set_usbcontrol(CONFIG_MXC_USB_PORT, CONFIG_MXC_USB_FLAGS);
+ udelay(10000);
+
return 0;
}
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] MX31: add delay between USB port setup and reset
2010-10-19 10:02 [U-Boot] [PATCH] MX31: add delay between USB port setup and reset Stefano Babic
@ 2010-10-19 10:39 ` Stefano Babic
0 siblings, 0 replies; 2+ messages in thread
From: Stefano Babic @ 2010-10-19 10:39 UTC (permalink / raw)
To: u-boot
On 10/19/2010 12:02 PM, Stefano Babic wrote:
> Sometimes a usb tree is not popolated after a system reset.
> It seems a delay is required after setting the USB ports
> for the MX.31 before resetting the ehci controller.
>
> Signed-off-by: Stefano Babic <sbabic@denx.de>
> ---
> drivers/usb/host/ehci-mxc.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
Applied to u-boot-imx, thanks
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-10-19 10:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-19 10:02 [U-Boot] [PATCH] MX31: add delay between USB port setup and reset Stefano Babic
2010-10-19 10:39 ` Stefano Babic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox