]> www.infradead.org Git - users/dwmw2/linux.git/commit
usb: cdns3: trace: using correct dir value
authorPeter Chen <peter.chen@nxp.com>
Tue, 23 Jun 2020 03:09:17 +0000 (11:09 +0800)
committerSasha Levin <sashal@kernel.org>
Tue, 30 Jun 2020 19:36:50 +0000 (15:36 -0400)
commit79175ae5f9968863f41fb20063bd5840f478686f
tree539ed80038877c50cc431afb243ebddc5a6dffdd
parent25e1bb1e6c368d09da13007b60f0c92b1c4101b4
usb: cdns3: trace: using correct dir value

commit ba3a80fe0fb67d8790f62b7bc60df97406d89871 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/cdns3/trace.h