usb: dwc2: gadget: Transfer length limit checking for DDMA
authorVahram Aharonyan <vahrama@synopsys.com>
Thu, 10 Nov 2016 03:28:01 +0000 (19:28 -0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 18 Nov 2016 11:54:20 +0000 (13:54 +0200)
commitcf77b5fb9b39445947e8027872c63cc16fb480fb
tree9126666351dbc3faf2ce2eca179fc0dcaaec0834
parent3a1ec35160c69af3d2a44b0cf4bd0dea1026cdd1
usb: dwc2: gadget: Transfer length limit checking for DDMA

Add dwc2_gadget_get_chain_limit() function and its call in transfer
start routine to correctly estimate one go on transfer size if
descriptor DMA mode is selected.

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