usb: cdns3: trace: using correct dir value
authorPeter Chen <peter.chen@nxp.com>
Tue, 23 Jun 2020 03:09:17 +0000 (11:09 +0800)
committerFelipe Balbi <balbi@kernel.org>
Wed, 24 Jun 2020 06:39:02 +0000 (09:39 +0300)
commitba3a80fe0fb67d8790f62b7bc60df97406d89871
tree17bba3cd08a2bcab5448fa24e2e54ba5c5c956b1
parentb51e1cf64f93acebb6d8afbacd648a6ecefc39b4
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>
drivers/usb/cdns3/trace.h