[U-Boot] [PATCH v6] nios2: convert dma_alloc_coherent to use malloc_cache_aligned

Thomas Chou
2015-10-18T23:46:53Z

On 10/16/2015 04:29 PM, Thomas Chou wrote:
> Convert dma_alloc_coherent to use memalign.
>
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> ---
> v2
> use memalign.
> v3
> check memalign() return for out of memory.
> v4
> use malloc_cache_aligned().
> v5
> use invalidate_dcache_range() as Marek suggested.
> v6
> defer assignment of handle as Marek suggested.
>
> arch/nios2/include/asm/dma-mapping.h | 27 ++++++++++++++-------------
> 1 file changed, 14 insertions(+), 13 deletions(-)
>

Applied to u-boot-nios.