• Peter Chen's avatar
    usb: cdns3: trace: using correct dir value · ba3a80fe
    Peter Chen authored
    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: 7733f6c3 ("usb: cdns3: Add Cadence USB3 DRD Driver")
    Reviewed-by: default avatarPawel Laszczak <pawell@cadence.com>
    Signed-off-by: default avatarPeter Chen <peter.chen@nxp.com>
    Signed-off-by: default avatarFelipe Balbi <balbi@kernel.org>
    ba3a80fe
trace.h 16.1 KB