From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Chou Date: Mon, 19 Oct 2015 07:46:53 +0800 Subject: [U-Boot] [PATCH v6] nios2: convert dma_alloc_coherent to use malloc_cache_aligned In-Reply-To: <1444984147-907-1-git-send-email-thomas@wytron.com.tw> References: <1444013823-11909-1-git-send-email-thomas@wytron.com.tw> <1444984147-907-1-git-send-email-thomas@wytron.com.tw> Message-ID: <56242F6D.6070002@wytron.com.tw> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 10/16/2015 04:29 PM, Thomas Chou wrote: > Convert dma_alloc_coherent to use memalign. > > Signed-off-by: Thomas Chou > --- > 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.