Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: xHCI: Isoc urb enqueue

Enable isochronous urb enqueue.

Signed-off-by: Andiry Xu <andiry.xu@amd.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Andiry Xu and committed by
Greg Kroah-Hartman
787f4e5a a061a5a0

+6 -1
+6 -1
drivers/usb/host/xhci.c
··· 897 897 slot_id, ep_index); 898 898 spin_unlock_irqrestore(&xhci->lock, flags); 899 899 } else { 900 - ret = -EINVAL; 900 + spin_lock_irqsave(&xhci->lock, flags); 901 + if (xhci->xhc_state & XHCI_STATE_DYING) 902 + goto dying; 903 + ret = xhci_queue_isoc_tx_prepare(xhci, GFP_ATOMIC, urb, 904 + slot_id, ep_index); 905 + spin_unlock_irqrestore(&xhci->lock, flags); 901 906 } 902 907 exit: 903 908 return ret;