Re: usb: why we need a msleep(5) in ehci_bus_suspend/resume

2013-05-13 Thread Alan Stern
On Mon, 13 May 2013, linux fddl wrote: > Hi, > > From the ehci-hub.c, I find that ehci_bus_suspend/resume have some > code like this: > > if (time_before(jiffies, ehci->netx_statechange)) > msleep(5); > ... > ehci->next_statechange = jiffies + msec_to_jiffies(10); > > and > > if (time_be

usb: why we need a msleep(5) in ehci_bus_suspend/resume

2013-05-13 Thread linux fddl
Hi, From the ehci-hub.c, I find that ehci_bus_suspend/resume have some code like this: if (time_before(jiffies, ehci->netx_statechange)) msleep(5); ... ehci->next_statechange = jiffies + msec_to_jiffies(10); and if (time_before(jiffies, ehci->netx_statechange)) msleep(5); ... ehci->ne