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

Thomas Chou
2015-10-09T08:48:31Z

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