Home
last modified time | relevance | path

Searched hist:"57 ca63b86e5987029cd4970890aa28602ba50856" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/usb/host/
H A Ddwc2.c57ca63b86e5987029cd4970890aa28602ba50856 Thu Apr 06 03:37:04 UTC 2017 Eddie Cai <eddie.cai.linux@gmail.com> usb: dwc2: invalidate the dcache before starting the DMA

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@gmail.com>
Reviewed-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>