Re: [PATCH] usb: host: xhci: Handle the right timeout command

2016-12-04 Thread Baolin Wang
On 2 December 2016 at 19:21, Baolin Wang wrote: > If a command event is found on the event ring during an interrupt, > we need to stop the command timer with del_timer(). Since del_timer() > can fail if the timer is running and waiting on the xHCI lock, then > it maybe get

[PATCH] usb: host: xhci: Handle the right timeout command

2016-12-02 Thread Baolin Wang
If a command event is found on the event ring during an interrupt, we need to stop the command timer with del_timer(). Since del_timer() can fail if the timer is running and waiting on the xHCI lock, then it maybe get the wrong timeout command in xhci_handle_command_timeout() if host fetched a new