[PATCH v8 04/14] loongarch: Use generic IO memcpy/memset

2024-10-08 Thread Julian Vetter
Use the generic memcpy_{from,to}io and memset_io functions on the loongarch processor architecture. Reviewed-by: Yann Sionneau Signed-off-by: Julian Vetter --- Changes for v8: - No changes --- arch/loongarch/include/asm/io.h | 10 arch/loongarch/kernel/Makefile | 2 +- arch/loongarch

[PATCH v8 01/14] Consolidate IO memcpy/memset into iomap_copy.c

2024-10-08 Thread Julian Vetter
Various architectures have almost the same implementations for memcpy_{to,from}io and memset_io functions. So, consolidate them into the existing lib/iomap_copy.c. Reviewed-by: Yann Sionneau Signed-off-by: Julian Vetter --- Changes for v8: - Replaced shifts by 'qc *= ~0UL / 0xff' - Mo

[PATCH v8 03/14] csky: Use generic IO memcpy/memset

2024-10-08 Thread Julian Vetter
Use the generic memcpy_{from,to}io and memset_io functions on the csky processor architecture. Reviewed-by: Yann Sionneau Signed-off-by: Julian Vetter --- Changes for v8: - No changes --- arch/csky/include/asm/io.h | 11 - arch/csky/kernel/Makefile | 2 +- arch/csky/kernel/io.c | 91

[PATCH v8 02/14] arm64: Use generic IO memcpy/memset

2024-10-08 Thread Julian Vetter
Use the generic memcpy_{from,to}io and memset_io functions on the arm64 processor architecture. Reviewed-by: Yann Sionneau Signed-off-by: Julian Vetter --- Changes for v8: - No changes --- arch/arm64/include/asm/io.h | 11 - arch/arm64/kernel/io.c | 87

[PATCH v8 07/14] parisc: Align prototypes of IO memcpy/memset

2024-10-08 Thread Julian Vetter
Align the prototypes of the memcpy_{from,to}io and memset_io functions with the new ones from iomap_copy.c and remove function declarations, because they are now declared in asm-generic/io.h. Reviewed-by: Yann Sionneau Signed-off-by: Julian Vetter --- Changes for v8: - Mask the argument with

[PATCH v8 08/14] sh: Align prototypes of IO memcpy/memset

2024-10-08 Thread Julian Vetter
Align the prototypes of the memcpy_{from,to}io and memset_io functions with the new ones from iomap_copy.c and remove function declarations, because they are now declared in asm-generic/io.h. Reviewed-by: Geert Uytterhoeven Reviewed-by: Yann Sionneau Signed-off-by: Julian Vetter --- Changes

[PATCH v8 00/14] Consolidate IO memcpy functions

2024-10-08 Thread Julian Vetter
resolve this, I implemented three wrapper functions and added defines to overwrite the default. So, on s390 we always use the fast zpci operations and don't fall back to the generic ones. Signed-off-by: Julian Vetter --- Changes for v8: - Dropped the arch/um patch that adds dummy implementations for I

[PATCH v8 06/14] alpha: Align prototypes of IO memcpy/memset

2024-10-08 Thread Julian Vetter
Align the prototypes of the memcpy_{from,to}io and memset_io functions with the new ones from iomap_copy.c and remove function declarations, because they are now declared in asm-generic/io.h. Reviewed-by: Yann Sionneau Signed-off-by: Julian Vetter --- Changes for v8: - Mask the argument with

[PATCH v8 14/14] sound: Make CONFIG_SND depend on INDIRECT_IOMEM instead of UML

2024-10-08 Thread Julian Vetter
When building for the UM arch and neither INDIRECT_IOMEM=y, nor HAS_IOMEM=y is selected, the build fails because the memcpy_fromio and memcpy_toio functions are not defined. Fix it here by depending on HAS_IOMEM or INDIRECT_IOMEM. Reviewed-by: Yann Sionneau Signed-off-by: Julian Vetter

[PATCH v8 10/14] powerpc: Align prototypes of IO memcpy and memset

2024-10-08 Thread Julian Vetter
Align the prototypes of the memcpy_{from,to}io and memset_io functions with the new ones from iomap_copy.c. Reviewed-by: Yann Sionneau Signed-off-by: Julian Vetter --- Changes for v8: - New patch --- arch/powerpc/include/asm/io-defs.h | 6 +++--- arch/powerpc/include/asm/io.h | 6

[PATCH v8 09/14] arm: Align prototype of IO memset

2024-10-08 Thread Julian Vetter
Align prototype of the memset_io function with the new one from iomap_copy.c Reviewed-by: Geert Uytterhoeven Reviewed-by: Yann Sionneau Signed-off-by: Julian Vetter --- Changes for v8: - No changes --- arch/arm/include/asm/io.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v8 05/14] m68k: Align prototypes of IO memcpy/memset

2024-10-08 Thread Julian Vetter
Align the prototypes of the memcpy_{from,to}io and memset_io functions with the new ones from iomap_copy.c. Reviewed-by: Geert Uytterhoeven Reviewed-by: Yann Sionneau Signed-off-by: Julian Vetter --- Changes for v8: - No changes --- arch/m68k/include/asm/kmap.h | 8 1 file changed, 4

[PATCH v8 11/14] s390: Add wrappers around zpci_memcpy/zpci_memset

2024-10-08 Thread Julian Vetter
value is checked, At the same time they serve as generic memcpy_{from,to}io and memset_io functions, without a return value. Reviewed-by: Yann Sionneau Signed-off-by: Julian Vetter --- Changes for v8: - New patch --- arch/s390/include/asm/io.h | 27 +++ arch/s390/in

[PATCH v8 12/14] bus: mhi: ep: Add HAS_IOMEM || INDIRECT_IOMEM dependency

2024-10-08 Thread Julian Vetter
d-off-by: Julian Vetter --- Changes for v8: - New patch --- drivers/bus/mhi/ep/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/bus/mhi/ep/Kconfig b/drivers/bus/mhi/ep/Kconfig index 90ab3b040672..dba95fb95eeb 100644 --- a/drivers/bus/mhi/ep/Kconfig +++ b/drivers/bus/mhi/ep/Kc

[PATCH v8 13/14] mtd: Add HAS_IOMEM || INDIRECT_IOMEM dependency

2024-10-08 Thread Julian Vetter
ff-by: Julian Vetter --- Changes for v8: - New patch --- drivers/mtd/chips/Kconfig | 4 drivers/mtd/lpddr/Kconfig | 1 + 2 files changed, 5 insertions(+) diff --git a/drivers/mtd/chips/Kconfig b/drivers/mtd/chips/Kconfig index 19726ebd973d..78afe7ccf005 100644 --- a/drivers/mtd/chips/Kconfig