[U-Boot] usb: dwc2: invalidate the dcache before starting the DMA

Marek Vasut marex at denx.de
Mon Apr 3 19:33:14 UTC 2017


On 04/03/2017 04:43 PM, Brüns, Stefan wrote:
> On Samstag, 1. April 2017 08:51:39 CEST Eddie Cai wrote:
>> We should invalidate the dcache before starting the DMA. In case there are
>> any dirty lines from the DMA buffer in the cache, subsequent cache-line
>> replacements may corrupt the buffer in memory while the DMA is still going
>> on. Cache-line replacement can happen if the CPU tries to bring some other
>> memory locations into the cache while the DMA is going on.
>>
>> Signed-off-by: Eddie Cai <eddie.cai.linux at gmail.com>
> 
> Can you please run the patch through checkpatch, I can at least spot some 
> missing whitespace.
> 
> You can add my
> 
> Reviewed-by: Stefan Brüns <stefan.bruens at rwth-aachen.de>
> 
> to your v2.

Works for me too, looking forward to v2.

-- 
Best regards,
Marek Vasut


More information about the U-Boot mailing list