arm: dma_alloc_coherent: malloc() -> memalign()
authorKuo-Jung Su <dantesu@faraday-tech.com>
Mon, 29 Jul 2013 05:51:43 +0000 (13:51 +0800)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 14 Sep 2013 10:08:00 +0000 (12:08 +0200)
commit771f74c3d31a265bae103b2b407286ec03a4589b
treeb0b3137f121cb24281d450872803646e250a963c
parentfb8d49cb4492332066a2dc775ef3c57c49fd1eca
arm: dma_alloc_coherent: malloc() -> memalign()

Even though the MMU/D-cache is off, some DMA engines still
expect strict address alignment.

For example, the incoming Faraday FTMAC110 & FTGMAC100 ethernet
controllers expect the tx/rx descriptors should always be aligned
to 16-bytes boundary.

Signed-off-by: Kuo-Jung Su <dantesu@faraday-tech.com>
CC: Albert ARIBAUD <albert.u.boot@aribaud.net>
arch/arm/include/asm/dma-mapping.h