Commit b3fa25d
usb: cdns3: Fix issue for clear halt endpoint
Path fixes bug which occurs during resetting endpoint in
__cdns3_gadget_ep_clear_halt function. During resetting endpoint
controller will change HW/DMA owned TRB. It set Abort flag in
trb->control and will change trb->length field. If driver want
to use the aborted trb it must update the changed field in
TRB.
Fixes: 7733f6c ("usb: cdns3: Add Cadence USB3 DRD Driver")
cc: <stable@vger.kernel.org>
Acked-by: Peter Chen <peter.chen@kernel.org>
Signed-off-by: Pawel Laszczak <pawell@cadence.com>
Link: https://lore.kernel.org/r/20220329084605.4022-1-pawell@cadence.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 33597f0 commit b3fa25d
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2684 | 2684 | | |
2685 | 2685 | | |
2686 | 2686 | | |
| 2687 | + | |
2687 | 2688 | | |
2688 | 2689 | | |
2689 | 2690 | | |
| |||
2693 | 2694 | | |
2694 | 2695 | | |
2695 | 2696 | | |
2696 | | - | |
| 2697 | + | |
| 2698 | + | |
2697 | 2699 | | |
| 2700 | + | |
2698 | 2701 | | |
2699 | 2702 | | |
2700 | 2703 | | |
| |||
2709 | 2712 | | |
2710 | 2713 | | |
2711 | 2714 | | |
2712 | | - | |
| 2715 | + | |
2713 | 2716 | | |
2714 | 2717 | | |
2715 | 2718 | | |
| |||
0 commit comments