Re: [TESTPATCH v2] xhci: fix usb2 resume timing and races.

2015-12-08 Thread Mathias Nyman
On 05.12.2015 06:02, Daniel J Blueman wrote: On 1 December 2015 at 16:26, Mathias Nyman wrote: usb2 ports need to signal resume for 20ms before moving to U0 state. Both device and host can initiate resume. On host initated resume port is set to resume state, sleep 20ms, and finally set port to

Re: [TESTPATCH v2] xhci: fix usb2 resume timing and races.

2015-12-04 Thread Daniel J Blueman
On 1 December 2015 at 16:26, Mathias Nyman wrote: > usb2 ports need to signal resume for 20ms before moving to U0 state. > Both device and host can initiate resume. > > On host initated resume port is set to resume state, sleep 20ms, > and finally set port to U0 state. > > On device initated resum

Re: [TESTPATCH v2] xhci: fix usb2 resume timing and races.

2015-12-01 Thread Felipe Balbi
Hi, Mathias Nyman writes: > On 01.12.2015 16:32, Felipe Balbi wrote: >> >> Hi, >> >> Mathias Nyman writes: >>> usb2 ports need to signal resume for 20ms before moving to U0 state. >> >> at least 20ms ;-) Recently, we decided to drive resume for 40ms to >> support devices with broken FW. >> > >

Re: [TESTPATCH v2] xhci: fix usb2 resume timing and races.

2015-12-01 Thread Mathias Nyman
On 01.12.2015 16:32, Felipe Balbi wrote: Hi, Mathias Nyman writes: usb2 ports need to signal resume for 20ms before moving to U0 state. at least 20ms ;-) Recently, we decided to drive resume for 40ms to support devices with broken FW. True, but specs talk about 20ms, and I'm just trying

Re: [TESTPATCH v2] xhci: fix usb2 resume timing and races.

2015-12-01 Thread Felipe Balbi
Hi, Mathias Nyman writes: > usb2 ports need to signal resume for 20ms before moving to U0 state. at least 20ms ;-) Recently, we decided to drive resume for 40ms to support devices with broken FW. > Both device and host can initiate resume. > > On host initated resume port is set to resume stat

[TESTPATCH v2] xhci: fix usb2 resume timing and races.

2015-12-01 Thread Mathias Nyman
usb2 ports need to signal resume for 20ms before moving to U0 state. Both device and host can initiate resume. On host initated resume port is set to resume state, sleep 20ms, and finally set port to U0 state. On device initated resume a port status interrupt with a port in resume state in issued