Re: [PATCH 0/3] USB: fix race between root-hub suspend and remote wakeup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 14 Apr 2012, Andiry Xu wrote:

> I've created the corresponding patch for xHCI, most codes and the
> description are copied from your patch for ehci-hcd. Seems remote wakeup
> works fine, but I don't know how to trigger the race case. So I sent it
> out as RFC.

The patch looks okay to me.

To trigger the race, add an ssleep(2) call (or something similar) to
the end of xhci_bus_suspend.  Plug in a SuperSpeed hub, and attach some 
other SuperSpeed device to the hub.

Then start a system suspend.  During the elay caused by the ssleep
call, unplug the device from the hub.  That should cause the hub to
generate a remote wakeup request, and if your patch works correctly
then the wakeup request will cause the system suspend to be aborted.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux