From: Pratyush Anand Date: Fri, 10 Aug 2012 08:12:16 +0000 (+0530) Subject: usb: dwc3: ep0: correct cache sync issue in case of ep0_bounced X-Git-Tag: v3.6-rc6~19^2~5^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0416e494ce7dc84e2719bc9fb7daecb330476074;p=pandora-kernel.git usb: dwc3: ep0: correct cache sync issue in case of ep0_bounced In case of ep0 out, if length is not aligned to maxpacket size then we use dwc->ep_bounce_addr for dma transfer and not request->dma. Since, we have alreday done memcpy from dwc->ep0_bounce to request->buf, so we do not need to issue cache sync function. In fact, cache sync function will bring wrong data in request->buf from request->dma in this scenario. So, cache sync function must not be executed in case of ep0 bounced. Cc: # v3.4 v3.5 Signed-off-by: Pratyush Anand Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed