UPSTREAM: usb: dwc3: gadget: split __dwc3_gadget_kick_transfer()
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 13 May 2016 09:42:44 +0000 (12:42 +0300)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 Aug 2016 12:48:19 +0000 (20:48 +0800)
commitd8117f882679cda73e5684f835b35fedbeb27344
tree2b2043038c3a234743b282e1afd2aec50f7ab0d9
parent7d57ec8050baac82a48e5b8c073d5a97a6729bf4
UPSTREAM: usb: dwc3: gadget: split __dwc3_gadget_kick_transfer()

To aid code readability, we're gonna split
__dwc3_gadget_kick_transfer() into its constituent
parts: scatter gather and linear buffers.

That way, it's easier to follow the code and focus
debug effort when one or the other fails.

Change-Id: I5116b050ab757a177df9e4fe40996b215f6eb2e0
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
(cherry picked from commit 5ee85d890f8de5c6f1ab22ba13734a63fdf3ff2d)
drivers/usb/dwc3/gadget.c