diff options
author | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2010-10-26 14:22:02 -0400 |
---|---|---|
committer | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2011-03-13 21:07:13 -0400 |
commit | 214f76f7d9198ddd090bd927a4bcd49391bfcd36 (patch) | |
tree | 23caeedac25f87f12662850e861dc994b21420c9 /drivers/usb/host/xhci.c | |
parent | aa1b13efb7cfa9f7bf4942c1e858463e335c9500 (diff) |
xhci: Always use usb_hcd in URB instead of converting xhci_hcd.
Make sure to call into the USB core's link, unlink, and giveback URB
functions with the usb_hcd pointer found by using urb->dev->bus. This
will avoid confusion later, when the xHCI driver will deal with URBs from
two separate buses (the USB 3.0 roothub and the faked USB 2.0 roothub).
Assume xhci_urb_dequeue() will be called with the proper usb_hcd.
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Diffstat (limited to 'drivers/usb/host/xhci.c')
-rw-r--r-- | drivers/usb/host/xhci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 883b4c402c6..a95108cba7d 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c | |||
@@ -1154,7 +1154,7 @@ int xhci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) | |||
1154 | 1154 | ||
1155 | usb_hcd_unlink_urb_from_ep(hcd, urb); | 1155 | usb_hcd_unlink_urb_from_ep(hcd, urb); |
1156 | spin_unlock_irqrestore(&xhci->lock, flags); | 1156 | spin_unlock_irqrestore(&xhci->lock, flags); |
1157 | usb_hcd_giveback_urb(xhci_to_hcd(xhci), urb, -ESHUTDOWN); | 1157 | usb_hcd_giveback_urb(hcd, urb, -ESHUTDOWN); |
1158 | xhci_urb_free_priv(xhci, urb_priv); | 1158 | xhci_urb_free_priv(xhci, urb_priv); |
1159 | return ret; | 1159 | return ret; |
1160 | } | 1160 | } |