Commit 318068ca authored by Tony Lindgren's avatar Tony Lindgren

musb_hdrc: Allow suspend if host is already suspended

Allow suspend if host is already suspended
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 759debc7
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment