dwc2: gadget: Fix completed transfer size calculation in DDMA
authorMinas Harutyunyan <minas.harutyunyan@synopsys.com>
Fri, 22 Feb 2019 11:49:19 +0000 (15:49 +0400)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 3 May 2019 06:13:49 +0000 (09:13 +0300)
commit5acb4b970184d189d901192d075997c933b82260
tree4b01dbf474b02c4de6ac9d78b3d67a483a906bbe
parent28b5c129ca6e585ec95c160ec4297bc6c6360b6f
dwc2: gadget: Fix completed transfer size calculation in DDMA

Fix calculation of transfer size on completion in function
dwc2_gadget_get_xfersize_ddma().

Added increment of descriptor pointer to move to next descriptor in
the loop.

Fixes: aa3e8bc81311 ("usb: dwc2: gadget: DDMA transfer start and complete")

Signed-off-by: Minas Harutyunyan <hminas@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/gadget.c