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: NEddie Cai <eddie.cai.linux@gmail.com> Reviewed-by: NStefan Brüns <stefan.bruens@rwth-aachen.de>
Showing
想要评论请 注册 或 登录