Skip to content
Snippets Groups Projects
Commit 57ca63b8 authored by Eddie Cai's avatar Eddie Cai Committed by Marek Vasut
Browse files

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: default avatarEddie Cai <eddie.cai.linux@gmail.com>
Reviewed-by: default avatarStefan Brüns <stefan.bruens@rwth-aachen.de>
parent 889239d6
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment