[PATCH 11/12] musb_hdrc: Allow suspend if host is already suspended

Tony Lindgren
2007-10-11T17:05:24Z

Allow suspend if host is already suspended

Signed-off-by: Tony Lindgren <tony@atomide.com>

diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c
index 091ae8f..4eeff91 100644
--- a/drivers/usb/musb/musb_host.c
+++ b/drivers/usb/musb/musb_host.c
@@ -2128,6 +2128,9 @@ static int musb_bus_suspend(struct usb_hcd *hcd)
{
struct musb *musb = hcd_to_musb(hcd);

+ if (musb->xceiv.state == OTG_STATE_A_SUSPEND)
+ return 0;
+
if (is_host_active(musb) && musb->is_active) {
WARN("trying to suspend as %s is_active=%i\n",
otg_state_string(musb), musb->is_active);
--
1.5.2.5