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

David Brownell
2007-10-11T20:21:38Z

> > @@ -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;
> > +
>
> Should we allow this ? If it's already suspended it doesn't make sense
> suspending again.

Allow it. The invariant is that when the call returns,
the bus has been suspended.