ARM: include: dma: Zero out DMA coherent memory in no-MMU case
PATCH 1/1 ARM: include: dma: Zero out DMA coherent memory in no-MMU case
Add code to match the behavior of dma_alloc_coherent() when CONFIG_MMU is selected.
Signed-off-by Andrey Smirnov <[email protected]>
--- arch/arm/include/asm/dma.h | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/include/asm/dma.h +2 -0
@@ -20,6 +20,8 @@ static inline void *dma_alloc_coherent(size_t size, dma_addr_t *dma_handle)if (dma_handle) *dma_handle = (dma_addr_t )ret; +memset (ret,0 , size); +return ret; }
Signature · 7 lines
2.21.0 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 7 lines · Andrey Smirnov
Add code to match the behavior of
dma_alloc_coherent()whenCONFIG_MMUis selected.Signed-off-by Andrey Smirnov <[email protected]>--- arch/arm/include/asm/dma.h | 2 ++ 1 file changed, 2 insertions(+)
Applied, thanks
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox