Thread (19 messages) 19 messages, 7 authors, 2025-06-08

Re: [PATCH 4/6] powerpc: asm/io.h: remove split ioread64/iowrite64 helpers

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2025-03-17 11:31:38
Also in: linux-alpha, linux-arch, linux-m68k, linux-mips, linux-sh, lkml

Arnd Bergmann [off-list ref] writes:
From: Arnd Bergmann <arnd@arndb.de>

In previous kernels, there were conflicting definitions for what
ioread64_lo_hi() and similar functions were supposed to do on
architectures with native 64-bit MMIO. Based on the actual usage in
drivers, they are in fact expected to be a pair of 32-bit accesses on
all architectures, which makes the powerpc64 definition wrong.

Remove it and use the generic implementation instead.

Drivers that want to have split lo/hi or hi/lo accesses on 32-bit
architectures but can use 64-bit accesses where supported should instead
use ioread64()/iowrite64() after including the corresponding header file.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 arch/powerpc/include/asm/io.h | 48 -----------------------------------
 1 file changed, 48 deletions(-)
Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc)

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help