]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usb: dwc3: gadget: Disable CSP for stream OUT ep
authorTejas Joglekar <tejas.joglekar@synopsys.com>
Mon, 10 Dec 2018 10:38:13 +0000 (16:08 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 18:46:03 +0000 (19:46 +0100)
commitb38ab62237c9c1cd51886348f10ef71826c8040f
tree064d4da12c2c0a71d232e95cf96e3f3971b09cde
parent18ddd41b3ea1a064425fdf2bbdfc5b3cd6e4a185
usb: dwc3: gadget: Disable CSP for stream OUT ep

[ Upstream commit 244add8ebfb231c39db9e33b204bd0ce8f24f782 ]

In stream mode, when fast-forwarding TRBs, the stream number
is not cleared causing the new stream to not get assigned. So
we don't want controller to carry on transfers when short packet
is received. So disable the CSP for stream capable endpoint.

This is based on the 3.30a Programming guide, where table 3-1
device descriptor structure field definitions says for CSP bit
If this bit is 0, the controller generates an XferComplete event
and remove the stream. So if we keep CSP as 1 then switching between
streams would not happen as in stream mode, when fast-forwarding
TRBs, the stream number is not cleared causing the new stream to not get
assigned.

Signed-off-by: Tejas Joglekar <joglekar@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/dwc3/gadget.c