commit | 2dedea035ae82c5af0595637a6eda4655532b21e | [log] [tgz] |
---|---|---|
author | Thinh Nguyen <Thinh.Nguyen@synopsys.com> | Thu Mar 05 13:24:01 2020 -0800 |
committer | Felipe Balbi <balbi@kernel.org> | Sun Mar 15 11:22:51 2020 +0200 |
tree | 21b169e45bee3c4d674bc09e3e65141471fadb01 | |
parent | a114c4ca64bd522aec1790c7e5c60c882f699d8f [diff] |
usb: dwc3: gadget: Wrap around when skip TRBs When skipping TRBs, we need to account for wrapping around the ring buffer and not modifying some invalid TRBs. Without this fix, dwc3 won't be able to check for available TRBs. Cc: stable <stable@vger.kernel.org> Fixes: 7746a8dfb3f9 ("usb: dwc3: gadget: extract dwc3_gadget_ep_skip_trbs()") Signed-off-by: Thinh Nguyen <thinhn@synopsys.com> Signed-off-by: Felipe Balbi <balbi@kernel.org>