public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH RESEND] usb: musb: omap: fix crash when musb glue (omap) gets initialized
@ 2012-03-22 10:35 Kishon Vijay Abraham I
  2012-03-22 14:33 ` Greg KH
  0 siblings, 1 reply; 6+ messages in thread
From: Kishon Vijay Abraham I @ 2012-03-22 10:35 UTC (permalink / raw)
  To: balbi, gregkh, linux-usb, stable, linux-omap; +Cc: kishon

Upstream Commit: 7acc6197b76edd0b932a7cbcc6cfad0a8a87f026
Upstream Kernel Tag: v2.6.38-rc5-94-g7acc619

pm_runtime_enable is being called after omap2430_musb_init. Hence
pm_runtime_get_sync in omap2430_musb_init does not have any effect (does
not enable clocks) resulting in a crash during register access. It is
fixed here.

Cc: stable@vger.kernel.org
Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
---
Tested MUSB in 4430SDP.
 drivers/usb/musb/omap2430.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c
index 2ae0bb3..73bd5ed 100644
--- a/drivers/usb/musb/omap2430.c
+++ b/drivers/usb/musb/omap2430.c
@@ -452,14 +452,14 @@ static int __devinit omap2430_probe(struct platform_device *pdev)
 		goto err2;
 	}
 
+	pm_runtime_enable(&pdev->dev);
+
 	ret = platform_device_add(musb);
 	if (ret) {
 		dev_err(&pdev->dev, "failed to register musb device\n");
 		goto err2;
 	}
 
-	pm_runtime_enable(&pdev->dev);
-
 	return 0;
 
 err2:
-- 
1.7.0.4


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

end of thread, other threads:[~2012-03-22 22:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-22 10:35 [PATCH RESEND] usb: musb: omap: fix crash when musb glue (omap) gets initialized Kishon Vijay Abraham I
2012-03-22 14:33 ` Greg KH
2012-03-22 21:34   ` ABRAHAM, KISHON VIJAY
2012-03-22 21:39     ` Greg KH
     [not found]       ` <20120322213918.GA11352-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2012-03-22 22:29         ` ABRAHAM, KISHON VIJAY
2012-03-22 22:34           ` Greg KH

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