[U-Boot] [PATCH v2] nios2: convert dma_alloc_coherent to use memalign

Thomas Chou thomas at wytron.com.tw
Fri Oct 9 10:48:31 CEST 2015


Hi Marek,

On 10/09/2015 05:43 AM, Marek Vasut wrote:
> I'd suggest that you do this:
>
> void *reg;
> unsigned long *h = memalign(...);
> flush_dcache_range();
>
> reg = ioremap();
> if (!reg)
>    fail here
>
> *handle = h; // modify handle after we know ioremap succeeded.
>
> return reg;
>

Thanks a lot for your suggestion. It is much clear with this.

Best regards,
Thomas


More information about the U-Boot mailing list