usb: dwc3: gadget: delay unmap of bounced requests
authorJanusz Dziedzic <januszx.dziedzic@intel.com>
Mon, 13 Mar 2017 12:11:32 +0000 (14:11 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 22 Mar 2017 09:20:36 +0000 (11:20 +0200)
commitde288e36fe33f7e06fa272bc8e2f85aa386d99aa
tree852db978a33b3518b4e4a74b977fc75da3ead2a6
parent97da3854c526d3a6ee05c849c96e48d21527606c
usb: dwc3: gadget: delay unmap of bounced requests

In the case of bounced ep0 requests, we must delay DMA operation until
after ->complete() otherwise we might overwrite contents of req->buf.

This caused problems with RNDIS gadget.

Signed-off-by: Janusz Dziedzic <januszx.dziedzic@intel.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/gadget.c