linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH/RFC] ARM: OMAP: MUSB: disable omap_device auto-suspend
@ 2011-11-29  0:56 Kevin Hilman
  2011-11-30  0:39 ` Kevin Hilman
  2011-12-07  6:49 ` Felipe Balbi
  0 siblings, 2 replies; 7+ messages in thread
From: Kevin Hilman @ 2011-11-29  0:56 UTC (permalink / raw)
  To: Felipe Balbi; +Cc: linux-omap

The MUSB driver does not currently implment suspend/resume callbacks,
seemingly because it does not support cutting power when devices are
connected in host mode.

Without a proper suspend/resume implementation, the OMAP PM domain
layer which automatically gates non runtime-suspended devices will
cause problems in suspend by the drivers ->runtime_suspend() callback
which will try to cut power.

Fix this by disabling PM domain auto suspending for MUSB until the
driver can be fixed to properly implement suspend/resume.

Signed-off-by: Kevin Hilman <khilman@ti.com>
---
 arch/arm/mach-omap2/usb-musb.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/usb-musb.c b/arch/arm/mach-omap2/usb-musb.c
index 2679750..e19eb0a 100644
--- a/arch/arm/mach-omap2/usb-musb.c
+++ b/arch/arm/mach-omap2/usb-musb.c
@@ -110,6 +110,7 @@ void __init usb_musb_init(struct omap_musb_board_data *musb_board_data)
 						name, oh_name);
 		return;
 	}
+	omap_device_disable_idle_on_suspend(pdev);
 
 	dev = &pdev->dev;
 	get_device(dev);
-- 
1.7.6


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

end of thread, other threads:[~2012-01-31  1:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-29  0:56 [PATCH/RFC] ARM: OMAP: MUSB: disable omap_device auto-suspend Kevin Hilman
2011-11-30  0:39 ` Kevin Hilman
2011-12-07  6:49 ` Felipe Balbi
2011-12-07 19:37   ` Kevin Hilman
2012-01-29 22:57     ` Grazvydas Ignotas
2012-01-30 22:37       ` NeilBrown
2012-01-31  1:04         ` Grazvydas Ignotas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).