diff options
author | Jing Leng <jleng@ambarella.com> | 2022-06-09 05:11:34 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-06-22 15:28:07 +0300 |
commit | 45a917478afb9e49bc9b0cd9f58a30dc74283be0 (patch) | |
tree | 1909e8cba8fc9824ba47d084559505df8c281339 /drivers/usb/dwc3/gadget.c | |
parent | 52bfcedbfd5bf962dbdcb6e761f4d0dd3ba26dfd (diff) | |
download | linux-45a917478afb9e49bc9b0cd9f58a30dc74283be0.tar.xz |
usb: cdnsp: Fixed setting last_trb incorrectly
commit 5c7578c39c3fffe85b7d15ca1cf8cf7ac38ec0c1 upstream.
When ZLP occurs in bulk transmission, currently cdnsp will set last_trb
for the last two TRBs, it will trigger an error "ERROR Transfer event TRB
DMA ptr not part of current TD ...".
Fixes: e913aada0683 ("usb: cdnsp: Fixed issue with ZLP")
Cc: stable <stable@kernel.org>
Acked-by: Pawel Laszczak <pawell@cadence.com>
Signed-off-by: Jing Leng <jleng@ambarella.com>
Link: https://lore.kernel.org/r/20220609021134.1606-1-3090101217@zju.edu.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/dwc3/gadget.c')
0 files changed, 0 insertions, 0 deletions