]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: Introduce usb_request->is_last
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Wed, 6 May 2020 02:46:13 +0000 (19:46 -0700)
committerFelipe Balbi <balbi@kernel.org>
Mon, 25 May 2020 08:09:41 +0000 (11:09 +0300)
commit04a380911e990ba54e122df92e7fe32c77ccb376
tree61ba3ccfec8520c911a57705184255311fc9fff5
parenta7a151496a1c0c2f981f7a5da28e5a13dd1909f7
usb: gadget: Introduce usb_request->is_last

To take advantage of DWC3 internal TRB prefetch and cache for
performance, inform the controller the last request with stream_id
before switching to a different stream transfer. This allows the
controller to maintain its transfer burst within the stream ID.

Introduce the usb-request is_last field to help inform the DWC3
controller of this.

Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
include/linux/usb/gadget.h