RE: [PATCH v2] usb: xhci: Don't drive port 2.0 reset while resuming

From: Alan Stern
Date: Wed Oct 26 2016 - 10:39:57 EST


On Wed, 26 Oct 2016, Sriram Dash wrote:

> >From: Mathias Nyman [mailto:mathias.nyman@xxxxxxxxxxxxxxx]

> >I don't think usb core tries to drive reset while port is still resuming
> >
>
> I am skeptical about it and hope somebody may help us on this.

You can see for yourself. In drivers/usb/core/hub.c, the
usb_reset_device() routine calls usb_autoresume_device() before calling
usb_reset_and_verify_device(). Therefore the port will have finished
resuming before the reset signal is sent.

Alan Stern