On Mon, Oct 10, 2022 at 12:08:08AM +0800, Xu Yang wrote: > The controller's power may be powered off during system suspend. This > will add suspend/resume support when the controller suffers power lost. > > Signed-off-by: Xu Yang <xu.yang_2@xxxxxxx> > --- > drivers/usb/chipidea/host.c | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/drivers/usb/chipidea/host.c b/drivers/usb/chipidea/host.c > index bc3634a54c6b..dc033272c31e 100644 > --- a/drivers/usb/chipidea/host.c > +++ b/drivers/usb/chipidea/host.c > @@ -459,6 +459,16 @@ static void ci_hdrc_unmap_urb_for_dma(struct usb_hcd *hcd, struct urb *urb) > ci_hdrc_free_dma_aligned_buffer(urb); > } > > +static void ci_hdrc_host_suspend(struct ci_hdrc *ci) > +{ > + ehci_suspend(ci->hcd, device_may_wakeup(ci->dev)); Why is the chipidea driver somehow now tied to the ehci driver? Are you sure you want this? Why? Is hcd always a ehci device? thanks, greg k-h