From 318068ca7104295d6177637521c5ec6cf8cb88b1 Mon Sep 17 00:00:00 2001 From: Tony Lindgren Date: Tue, 9 Oct 2007 16:26:59 -0700 Subject: [PATCH] musb_hdrc: Allow suspend if host is already suspended Allow suspend if host is already suspended Signed-off-by: Tony Lindgren --- drivers/usb/musb/musb_host.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c index 091ae8f548a..4eeff91b926 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); -- 2.41.1