Skip to contentSkip to conversation

MX31: add delay between USB port setup and reset

PATCH New Stefano Babic 1 participant 2 messages Oct 19, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MX31: add delay between USB port setup and reset

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.

---
 drivers/usb/host/ehci-mxc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/usb/host/ehci-mxc.c +2 -0
index af8ee90..8d7b380 100644
@@ -117,6 +117,8 @@ int ehci_hcd_init(void)
 
 	mxc_set_usbcontrol(CONFIG_MXC_USB_PORT, CONFIG_MXC_USB_FLAGS);
 
+	udelay(10000);
+
 	return 0;
 }
 
Signature · 1 line
1.7.1
#1 lore raw

PATCH 1/1 MX31: add delay between USB port setup and reset

Quoted 9 lines · Stefano Babic

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.

---
 drivers/usb/host/ehci-mxc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Applied to u-boot-imx, thanks

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
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
=====================================================================