
13 Apr
2017
13 Apr
'17
11:16 p.m.
On 4 April 2017 at 13:00, Simon Glass sjg@chromium.org wrote:
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
drivers/core/device.c | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-)
Applied to u-boot-dm