aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host/xhci.c')
-rw-r--r--drivers/usb/host/xhci.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c
index cf3413116aff..01fcbb5eb06e 100644
--- a/drivers/usb/host/xhci.c
+++ b/drivers/usb/host/xhci.c
@@ -2912,10 +2912,11 @@ static void xhci_setup_input_ctx_for_quirk(struct xhci_hcd *xhci,
2912} 2912}
2913 2913
2914void xhci_cleanup_stalled_ring(struct xhci_hcd *xhci, 2914void xhci_cleanup_stalled_ring(struct xhci_hcd *xhci,
2915 struct usb_device *udev, unsigned int ep_index) 2915 unsigned int ep_index, struct xhci_td *td)
2916{ 2916{
2917 struct xhci_dequeue_state deq_state; 2917 struct xhci_dequeue_state deq_state;
2918 struct xhci_virt_ep *ep; 2918 struct xhci_virt_ep *ep;
2919 struct usb_device *udev = td->urb->dev;
2919 2920
2920 xhci_dbg_trace(xhci, trace_xhci_dbg_reset_ep, 2921 xhci_dbg_trace(xhci, trace_xhci_dbg_reset_ep,
2921 "Cleaning up stalled endpoint ring"); 2922 "Cleaning up stalled endpoint ring");
@@ -2924,8 +2925,7 @@ void xhci_cleanup_stalled_ring(struct xhci_hcd *xhci,
2924 * or it will attempt to resend it on the next doorbell ring. 2925 * or it will attempt to resend it on the next doorbell ring.
2925 */ 2926 */
2926 xhci_find_new_dequeue_state(xhci, udev->slot_id, 2927 xhci_find_new_dequeue_state(xhci, udev->slot_id,
2927 ep_index, ep->stopped_stream, ep->stopped_td, 2928 ep_index, ep->stopped_stream, td, &deq_state);
2928 &deq_state);
2929 2929
2930 if (!deq_state.new_deq_ptr || !deq_state.new_deq_seg) 2930 if (!deq_state.new_deq_ptr || !deq_state.new_deq_seg)
2931 return; 2931 return;
@@ -4009,6 +4009,7 @@ static int __maybe_unused xhci_change_max_exit_latency(struct xhci_hcd *xhci,
4009 slot_ctx = xhci_get_slot_ctx(xhci, command->in_ctx); 4009 slot_ctx = xhci_get_slot_ctx(xhci, command->in_ctx);
4010 slot_ctx->dev_info2 &= cpu_to_le32(~((u32) MAX_EXIT)); 4010 slot_ctx->dev_info2 &= cpu_to_le32(~((u32) MAX_EXIT));
4011 slot_ctx->dev_info2 |= cpu_to_le32(max_exit_latency); 4011 slot_ctx->dev_info2 |= cpu_to_le32(max_exit_latency);
4012 slot_ctx->dev_state = 0;
4012 4013
4013 xhci_dbg_trace(xhci, trace_xhci_dbg_context_change, 4014 xhci_dbg_trace(xhci, trace_xhci_dbg_context_change,
4014 "Set up evaluate context for LPM MEL change."); 4015 "Set up evaluate context for LPM MEL change.");