aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci.c
diff options
context:
space:
mode:
authorAndiry Xu <andiry.xu@amd.com>2010-07-22 18:23:52 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-08-10 17:35:42 -0400
commit787f4e5adaabba01becd646818dbace2d7e6b386 (patch)
tree9f8a1c7980dbc20a62b1344f1d03609639bd9981 /drivers/usb/host/xhci.c
parenta061a5a0b816de3b4711a2e96764bb3cd8df861e (diff)
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>
Diffstat (limited to 'drivers/usb/host/xhci.c')
-rw-r--r--drivers/usb/host/xhci.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c
index 295a0a2063a6..89ac48534099 100644
--- a/drivers/usb/host/xhci.c
+++ b/drivers/usb/host/xhci.c
@@ -897,7 +897,12 @@ int xhci_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, gfp_t mem_flags)
897 slot_id, ep_index); 897 slot_id, ep_index);
898 spin_unlock_irqrestore(&xhci->lock, flags); 898 spin_unlock_irqrestore(&xhci->lock, flags);
899 } else { 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 }
902exit: 907exit:
903 return ret; 908 return ret;