aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci-ring.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host/xhci-ring.c')
-rw-r--r--drivers/usb/host/xhci-ring.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
index 011458f4d9ce..ac5c662368ed 100644
--- a/drivers/usb/host/xhci-ring.c
+++ b/drivers/usb/host/xhci-ring.c
@@ -1740,6 +1740,15 @@ int xhci_queue_configure_endpoint(struct xhci_hcd *xhci, dma_addr_t in_ctx_ptr,
1740 TRB_TYPE(TRB_CONFIG_EP) | SLOT_ID_FOR_TRB(slot_id)); 1740 TRB_TYPE(TRB_CONFIG_EP) | SLOT_ID_FOR_TRB(slot_id));
1741} 1741}
1742 1742
1743/* Queue an evaluate context command TRB */
1744int xhci_queue_evaluate_context(struct xhci_hcd *xhci, dma_addr_t in_ctx_ptr,
1745 u32 slot_id)
1746{
1747 return queue_command(xhci, lower_32_bits(in_ctx_ptr),
1748 upper_32_bits(in_ctx_ptr), 0,
1749 TRB_TYPE(TRB_EVAL_CONTEXT) | SLOT_ID_FOR_TRB(slot_id));
1750}
1751
1743int xhci_queue_stop_endpoint(struct xhci_hcd *xhci, int slot_id, 1752int xhci_queue_stop_endpoint(struct xhci_hcd *xhci, int slot_id,
1744 unsigned int ep_index) 1753 unsigned int ep_index)
1745{ 1754{