Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c9daedf4 authored by Jack Pham's avatar Jack Pham
Browse files

usb: xhci: Release spinlock during command cancellation



When a command fails due to timeout, during the command
cancellation handled in xhci_cancel_cmd() the call to
xhci_abort_cmd_ring() is called while the xhci spinlock
is held and with interrupts disabled. However, if the
abortion itself fails because of a dead host controller,
it may take up to 5 seconds before it returns, during
which time a watchdog will time out. Fix this by releasing
the spin lock prior to attempting to abort the command ring.

Change-Id: I3be0edbbd8a6f1c39ef0c563b10de050527e97e9
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 8643ff14
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment