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

Thomas Chou thomas at wytron.com.tw
Mon Oct 19 01:46:53 CEST 2015



On 10/16/2015 04:29 PM, Thomas Chou wrote:
> Convert dma_alloc_coherent to use memalign.
>
> Signed-off-by: Thomas Chou <thomas at 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.



More information about the U-Boot mailing list