usb: dwc3: gadget: Improve TRB ZLP setup
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Thu, 24 Sep 2020 08:21:36 +0000 (01:21 -0700)
committerFelipe Balbi <balbi@kernel.org>
Fri, 2 Oct 2020 06:57:44 +0000 (09:57 +0300)
commita2841f41d07fc85cf47d13fda30e254c5413e514
tree7d6abc7062551b4b4af847f596e7932a80357d09
parent2b80357b773c4c572233d191cd849d25311c48fd
usb: dwc3: gadget: Improve TRB ZLP setup

For OUT requests that requires extra TRBs for ZLP. We don't need to
prepare the 0-length TRB and simply prepare the MPS size TRB. This
reduces 1 TRB needed to prepare for ZLP.

Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/dwc3/gadget.c