usb: dwc2: Fix Control Write issue in DMA mode
authorRazmik Karapetyan <razmik@synopsys.com>
Wed, 16 Nov 2016 23:33:57 +0000 (15:33 -0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 18 Nov 2016 11:54:53 +0000 (13:54 +0200)
commitc3b22fe2e4cc45adb037e204e08910e10c5e9286
treed8aa5aa793e8555787b30baa20769d9dd0c31730
parent729e65746d4f225792e33371f3ae6d614ec66032
usb: dwc2: Fix Control Write issue in DMA mode

While sending zlp for DWC2_EP0_STATUS_IN EP direction was changed to IN.
Change it back to complete OUT transfer request.

This affects only on DMA mode, because DMA buffer map/unmap function is
direction sensitive.

Signed-off-by: Razmik Karapetyan <razmik@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