struct xhci_virt_ep *ep;
        struct xhci_ep_ctx *ep_ctx;
        struct xhci_slot_ctx *slot_ctx;
+       struct xhci_stream_ctx *stream_ctx;
        struct xhci_td *td, *tmp_td;
        bool deferred = false;
 
        trace_xhci_handle_cmd_set_deq(slot_ctx);
        trace_xhci_handle_cmd_set_deq_ep(ep_ctx);
 
+       if (ep->ep_state & EP_HAS_STREAMS) {
+               stream_ctx = &ep->stream_info->stream_ctx_array[stream_id];
+               trace_xhci_handle_cmd_set_deq_stream(ep->stream_info, stream_id);
+       }
+
        if (cmd_comp_code != COMP_SUCCESS) {
                unsigned int ep_state;
                unsigned int slot_state;
                u64 deq;
                /* 4.6.10 deq ptr is written to the stream ctx for streams */
                if (ep->ep_state & EP_HAS_STREAMS) {
-                       struct xhci_stream_ctx *ctx =
-                               &ep->stream_info->stream_ctx_array[stream_id];
-                       deq = le64_to_cpu(ctx->stream_ring) & SCTX_DEQ_MASK;
+                       deq = le64_to_cpu(stream_ctx->stream_ring) & SCTX_DEQ_MASK;
 
                        /*
                         * Cadence xHCI controllers store some endpoint state
                         * To fix this issue driver must clear Rsvd0 field.
                         */
                        if (xhci->quirks & XHCI_CDNS_SCTX_QUIRK) {
-                               ctx->reserved[0] = 0;
-                               ctx->reserved[1] = 0;
+                               stream_ctx->reserved[0] = 0;
+                               stream_ctx->reserved[1] = 0;
                        }
                } else {
                        deq = le64_to_cpu(ep_ctx->deq) & ~EP_CTX_CYCLE_MASK;
 
        TP_ARGS(info, stream_id)
 );
 
+DEFINE_EVENT(xhci_log_stream_ctx, xhci_handle_cmd_set_deq_stream,
+       TP_PROTO(struct xhci_stream_info *info, unsigned int stream_id),
+       TP_ARGS(info, stream_id)
+);
+
 DECLARE_EVENT_CLASS(xhci_log_ep_ctx,
        TP_PROTO(struct xhci_ep_ctx *ctx),
        TP_ARGS(ctx),