summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@nxp.com>2020-06-23 11:09:17 +0800
committerFelipe Balbi <balbi@kernel.org>2020-06-24 09:39:02 +0300
commitba3a80fe0fb67d8790f62b7bc60df97406d89871 (patch)
tree17bba3cd08a2bcab5448fa24e2e54ba5c5c956b1 /drivers/usb
parentb51e1cf64f93acebb6d8afbacd648a6ecefc39b4 (diff)
downloadlinux-ba3a80fe0fb67d8790f62b7bc60df97406d89871.tar.gz
linux-ba3a80fe0fb67d8790f62b7bc60df97406d89871.tar.bz2
linux-ba3a80fe0fb67d8790f62b7bc60df97406d89871.zip
usb: cdns3: trace: using correct dir value
It should use the correct direction value from register, not depends on previous software setting. It fixed the EP number wrong issue at trace when the TRBERR interrupt occurs for EP0IN. When the EP0IN IOC has finished, software prepares the setup packet request, the expected direction is OUT, but at that time, the TRBERR for EP0IN may occur since it is DMULT mode, the DMA does not stop until TRBERR has met. Cc: <stable@vger.kernel.org> Fixes: 7733f6c32e36 ("usb: cdns3: Add Cadence USB3 DRD Driver") Reviewed-by: Pawel Laszczak <pawell@cadence.com> Signed-off-by: Peter Chen <peter.chen@nxp.com> Signed-off-by: Felipe Balbi <balbi@kernel.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/cdns3/trace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/cdns3/trace.h b/drivers/usb/cdns3/trace.h
index 8d121e207fd8..755c56582257 100644
--- a/drivers/usb/cdns3/trace.h
+++ b/drivers/usb/cdns3/trace.h
@@ -156,7 +156,7 @@ DECLARE_EVENT_CLASS(cdns3_log_ep0_irq,
__dynamic_array(char, str, CDNS3_MSG_MAX)
),
TP_fast_assign(
- __entry->ep_dir = priv_dev->ep0_data_dir;
+ __entry->ep_dir = priv_dev->selected_ep;
__entry->ep_sts = ep_sts;
),
TP_printk("%s", cdns3_decode_ep0_irq(__get_str(str),