Skip to content
Snippets Groups Projects
Commit 5a8a8045 authored by Simon Glass's avatar Simon Glass
Browse files

dm: core: Ensure DMA regions start up with the cache clean


There is a strange interaction with drivers which use DMA if the cache
starts off in a dirty state. Buffer space which the driver reads (but has
not previously written) can contain zero bytes from alloc_priv(). This can
cause corruption of the memory used by DMA for incoming data.

Fix this and add a comment to explain the problem.

This allows the dwc2 driver to work correctly with driver model, for
example.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent ea168e33
No related branches found
No related tags found
Loading
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