Skip to contentSkip to conversation

ARM: OMAP2+: Use srst_udelay for USB on dm814x

PATCH New Tony Lindgren 2 participants 2 messages Mar 2, 2016

Subsystems (4)
lore
Share & tools
lore

Tony Lindgren

author maintainer
#0 lore raw

PATCH 1/1 ARM: OMAP2+: Use srst_udelay for USB on dm814x

Without this booting t410 can fail randomly with no output depending on the .config options chosen. Enabling debug_ll causes the problem to go away. I narrowed this down to USB by disabling one module at a time.

---
 arch/arm/mach-omap2/omap_hwmod_81xx_data.c | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/mach-omap2/omap_hwmod_81xx_data.c +2 -0
index 39736ad..df83277 100644
@@ -582,9 +582,11 @@ static struct omap_hwmod_ocp_if dm81xx_alwon_l3_slow__gpmc = {
 	.user		= OCP_USER_MPU,
 };
 
+/* USB needs udelay 1 after reset at least on hp t410, use 2 for margin */
 static struct omap_hwmod_class_sysconfig dm81xx_usbhsotg_sysc = {
 	.rev_offs	= 0x0,
 	.sysc_offs	= 0x10,
+	.srst_udelay	= 2,
 	.sysc_flags	= SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE |
 				SYSC_HAS_SOFTRESET,
 	.idlemodes	= SIDLE_SMART | MSTANDBY_FORCE | MSTANDBY_SMART,
Signature · 1 line
2.7.0
maintainer
#1 lore raw

PATCH 1/1 ARM: OMAP2+: Use srst_udelay for USB on dm814x

Quoted 7 lines · Tony Lindgren

Without this booting t410 can fail randomly with no output depending on the .config options chosen. Enabling debug_ll causes the problem to go away. I narrowed this down to USB by disabling one module at a time.

Wow, nice. Bet that was a pain!

- Paul