Re: [PATCH v9 1/4] Consolidate IO memcpy/memset into iomem_copy.c

From: Christoph Hellwig
Date: Fri Oct 11 2024 - 03:50:56 EST


On Thu, Oct 10, 2024 at 02:36:24PM +0200, Julian Vetter wrote:
> Various architectures have almost the same implementations for
> memcpy_{to,from}io and memset_io functions. So, consolidate them
> into a common lib/iomem_copy.c.

That might be the final intent of this seris, but what this patch does is
to replace the trivial memset/memcpy inline implementations with a more
complex one that actually use the accessors.

So this actually changes behavior for those architectures that did not
provide them before quite a lot. You'll need to explain in more
detail why that is safe and desireable.