Simon Glass 5a8a8045a9 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: Simon Glass <sjg@chromium.org>
2017-04-13 14:44:49 -06:00
..
2017-04-05 13:52:01 -04:00
2016-10-19 09:01:51 +02:00
2017-01-10 10:18:11 +01:00
2016-01-27 15:32:05 +01:00
2017-04-04 09:18:57 -04:00
2017-03-26 13:22:58 -06:00
2016-02-06 12:00:59 +01:00
2017-04-05 13:52:01 -04:00
2017-01-02 17:08:25 +01:00