xhci: check for a pending command completion during command timeout

It's possible a command times out event if xHC hardware already completed
the command. Driver is unaware of the command completion if interrupt
handler is blocked for a long time.

Check if there is a unhandled command completion on the event ring
during command timeout.

In this case just give the command additinal time to complete. There's no
point in aborting the command ring to move past a stuck command.

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
1 file changed