FROMLIST: usb: xhci: Remove unused udev from xhci_log_ctx trace event

xhci_log_ctx event is not utilizing the extracted udev to
print out anything, hence removing it.

Fixes: 1d27fabec0 ("xhci: add xhci_address_ctx trace event")
Signed-off-by: Udipto Goswami <quic_ugoswami@quicinc.com>

Bug: 278637066
Bug: 283906700
Link: https://lore.kernel.org/all/20230323131315.21764-1-quic_ugoswami@quicinc.com/
Change-Id: I359a050ff411ede5bc2c3ba1d1d68550773fa0a6
Signed-off-by: Udipto Goswami <quic_ugoswami@quicinc.com>
(cherry picked from commit d3e95905cee3c94c0d16f392c2e8e7b475540d0e)
This commit is contained in:
Udipto Goswami
2023-03-23 18:43:15 +05:30
committed by Matthias Männich
parent 948b2a1205
commit f27e7efdc6

View File

@@ -80,20 +80,16 @@ DECLARE_EVENT_CLASS(xhci_log_ctx,
__field(dma_addr_t, ctx_dma)
__field(u8 *, ctx_va)
__field(unsigned, ctx_ep_num)
__field(int, slot_id)
__dynamic_array(u32, ctx_data,
((HCC_64BYTE_CONTEXT(xhci->hcc_params) + 1) * 8) *
((ctx->type == XHCI_CTX_TYPE_INPUT) + ep_num + 1))
),
TP_fast_assign(
struct usb_device *udev;
udev = to_usb_device(xhci_to_hcd(xhci)->self.controller);
__entry->ctx_64 = HCC_64BYTE_CONTEXT(xhci->hcc_params);
__entry->ctx_type = ctx->type;
__entry->ctx_dma = ctx->dma;
__entry->ctx_va = ctx->bytes;
__entry->slot_id = udev->slot_id;
__entry->ctx_ep_num = ep_num;
memcpy(__get_dynamic_array(ctx_data), ctx->bytes,
((HCC_64BYTE_CONTEXT(xhci->hcc_params) + 1) * 32) *