]> git.baikalelectronics.ru Git - kernel.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 14:02:58 +0000 (16:02 +0200)
commit7d4ffa4ba87da0c08c6584452e9883b39661797a
tree94e181f566bd15870493a4df8309dbf8cc189bf3
parent45d7f63d85a339d7b4b29d305e67b2ceacac8d7a
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.

Fixes: 890954bdc8d0 ("usb: cdns3: Add Cadence USB3 DRD Driver")
Cc: <stable@vger.kernel.org>
Reviewed-by: Pawel Laszczak <pawell@cadence.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Link: https://lore.kernel.org/r/20200623030918.8409-3-peter.chen@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/cdns3/trace.h