summaryrefslogtreecommitdiffstats
path: root/block/blk-flush.c
diff options
context:
space:
mode:
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>2020-09-24 10:21:55 +0200
committerFelipe Balbi <balbi@kernel.org>2020-10-02 08:57:44 +0200
commit490410b2e73cd350ba91946913b017c8f6e1b612 (patch)
tree70e15326a361d353e5715649bcc9cf9b2a4104df /block/blk-flush.c
parentusb: dwc3: gadget: Return the number of prepared TRBs (diff)
downloadlinux-490410b2e73cd350ba91946913b017c8f6e1b612.tar.xz
linux-490410b2e73cd350ba91946913b017c8f6e1b612.zip
usb: dwc3: gadget: Check for number of TRBs prepared
By returning the number of TRBs prepared, we know whether to execute __dwc3_gadget_kick_transfer(). This allows us to check if we ran out of TRBs when extra TRBs are needed for OUT transfers. It also allows us to properly handle usb_gadget_map_request_by_dev() error. Fixes: c6267a51639b ("usb: dwc3: gadget: align transfers to wMaxPacketSize") Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Signed-off-by: Felipe Balbi <balbi@kernel.org>
Diffstat (limited to 'block/blk-flush.c')
0 files changed, 0 insertions, 0 deletions