usb: dwc2: gadget: DDMA transfer start and complete
authorVahram Aharonyan <vahrama@synopsys.com>
Tue, 15 Nov 2016 03:16:26 +0000 (19:16 -0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 18 Nov 2016 11:54:45 +0000 (13:54 +0200)
commitaa3e8bc81311ec392821dfc1c8ce7aa23021ad64
treef60f0902a41a19e26f5db10ce39ab1b128cf1ecb
parente02f9aa6119e0a5a32b4d08e2c26f6b1381dc8a2
usb: dwc2: gadget: DDMA transfer start and complete

Update transfer starting dwc2_hsotg_start_req() routine with call of
function dwc2_gadget_config_nonisoc_xfer_ddma() to fill descriptor
chain.

Add call of dwc2_gadget_get_xfersize_ddma() in
dwc2_hsotg_handle_outdone() and dwc2_hsotg_complete_in() interrupt
handlers for DDMA mode to get information on transferred data from
descriptors instead of DXEPTSIZ.

Signed-off-by: Vahram Aharonyan <vahrama@synopsys.com>
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/gadget.c