Re: [PATCH] dma-coherent: add support for multi coherent rmems per dev

From: Andy Shevchenko
Date: Thu Feb 01 2024 - 06:50:04 EST


On Thu, Feb 01, 2024 at 10:45:30AM +0000, Robin Murphy wrote:
> On 2024-02-01 9:35 am, Howard Yen wrote:

..

> > struct dma_coherent_mem *dma_mem; /* internal for coherent mem
> > override */
> > + struct list_head dma_mem_list;
>
> I'm not necessarily against the idea, but only if it's implemented sensibly.
> If we're going to have a list of these it should *replace* the existing
> pointer, not do this weird thing with both.

+1 on the comment.

--
With Best Regards,
Andy Shevchenko