ARM: mmu: Make sure DMA coherent memory is zeroed out
In order to avoid passing random/junky values to DMA/HW as well as to
allow simplifying memory initialization in individual drivers, change
dma_alloc_coherent() to guarantee that memory it returns is properly
zeroed out.

Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 3e0c800 commit 7179471fd7651e8ddd7758d2c3c94928421e5493
@Andrey Smirnov Andrey Smirnov authored on 17 Jan 2019
Sascha Hauer committed on 21 Jan 2019
Showing 4 changed files
View
arch/arm/cpu/mmu-common.c
View
arch/arm/cpu/mmu-common.h
View
arch/arm/cpu/mmu.c
View
arch/arm/cpu/mmu_64.c