public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] usb: disable OTG AUTOIDLE only with omap3430
@ 2009-05-18 14:54 Niilo Minkkinen
       [not found] ` <1242658456-5723-1-git-send-email-ext-niilo.1.minkkinen-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Niilo Minkkinen @ 2009-05-18 14:54 UTC (permalink / raw)
  To: linux-usb-u79uwXL29TY76Z2rM5mHXA
  Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA, tony-4v6yS6AI5VpBDgjK7y7TUQ,
	ext-niilo.1.minkkinen-xNZwKgViW5gAvxtiuMwx3w

Omap3 MUSB AUTOIDLE functionality configured through OTG_SYSCONFIG
register prevents the device from going into retention.
This is a workaround (by Richard Woodruff/TI), as his comment :
> A new MUSB bug which is a match to data below was identified very
> recently (on hardware and in simulation).
> This bug is in 3430 and not 3630.
> As a priority test (and as new default) you should have engineers
> disable autoidle for MUSB block.
> This is the workaround which will show up in next errata.

Signed-off-by: Niilo Minkkinen <ext-niilo.1.minkkinen-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
---
 drivers/usb/musb/omap2430.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c
index 901dffd..396fc6d 100644
--- a/drivers/usb/musb/omap2430.c
+++ b/drivers/usb/musb/omap2430.c
@@ -241,7 +241,12 @@ int __init musb_platform_init(struct musb *musb)
 	l &= ~AUTOIDLE;		/* disable auto idle */
 	l &= ~NOIDLE;		/* remove possible noidle */
 	l |= SMARTIDLE;		/* enable smart idle */
-	l |= AUTOIDLE;		/* enable auto idle */
+	/*
+	 * MUSB AUTOIDLE don't work in 3430.
+	 * Workaround by Richard Woodruff/TI
+	 */
+	if (!cpu_is_omap3430())
+		l |= AUTOIDLE;		/* enable auto idle */
 	omap_writel(l, OTG_SYSCONFIG);
 
 	l = omap_readl(OTG_INTERFSEL);
-- 
1.6.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-08-28  5:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-18 14:54 [PATCH] usb: disable OTG AUTOIDLE only with omap3430 Niilo Minkkinen
     [not found] ` <1242658456-5723-1-git-send-email-ext-niilo.1.minkkinen-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
2009-05-18 19:23   ` Woodruff, Richard
2009-05-19 16:57     ` Kevin Hilman
     [not found]     ` <13B9B4C6EF24D648824FF11BE8967162038BED5CF1-EovWT4A8QTWIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2009-06-19 10:35       ` David Brownell
     [not found]         ` <200906190335.50621.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2009-06-19 16:45           ` Niilo Minkkinen
2009-08-26 11:47       ` Gupta, Ajay Kumar
     [not found]         ` <19F8576C6E063C45BE387C64729E73940436A4A15B-/tLxBxkBPtCIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2009-08-26 13:53           ` Niilo Minkkinen
     [not found]             ` <fb705f540908260653l990f173n8b953ebc893efb9e-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-08-26 14:52               ` Pandita, Vikram
2009-08-27  1:27                 ` Gupta, Ajay Kumar
2009-08-28  5:08           ` Gupta, Ajay Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox