mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
usb: xhci: Don't check for USB_STATE_NOTATTACHED in xhci_stop_endpoint
This API can be called by the QMI sound driver precisely when a device is disconnected in order to issue a stop endpoint command to properly halt the transfer ring. With this check the function silently bails, so the XHCI controller hardware may continue to be accessing the buffers on the transfer ring; meanwhile the QMI sound driver proceeds to unmap the buffers from DMA resulting in an SMMU fault. Remove the check to allow the endpoint to be properly stopped. Change-Id: I80315c31d9b1685ac4375c1da051a8e22cab07ca Signed-off-by: Jack Pham <jackp@codeaurora.org>
This commit is contained in:
parent
063759141a
commit
5d938924f9
1 changed files with 1 additions and 1 deletions
|
|
@ -5390,7 +5390,7 @@ int xhci_stop_endpoint(struct usb_device *udev, struct usb_host_endpoint *ep)
|
|||
unsigned long flags;
|
||||
int ret = 0;
|
||||
|
||||
if (udev->state == USB_STATE_NOTATTACHED || !HCD_RH_RUNNING(hcd))
|
||||
if (!HCD_RH_RUNNING(hcd))
|
||||
return 0;
|
||||
|
||||
cmd = xhci_alloc_command(xhci, true, GFP_NOIO);
|
||||
|
|
|
|||
Loading…
Reference in a new issue