parisc: Use the generic IO helpers
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 3 Sep 2022 23:02:34 +0000 (01:02 +0200)
committerArnd Bergmann <arnd@arndb.de>
Sat, 10 Sep 2022 07:56:42 +0000 (09:56 +0200)
commit437b6b35362b206fdf881fe6dea76720eedb6d25
tree8f842a80ce6e2e70042cd215fa2e9310029573b4
parent77bfc8bdb5a1cdbcea21daccdf1686e1bfea3db6
parisc: Use the generic IO helpers

This enables the parisc to use <asm-generic/io.h> to fill in the
missing (undefined) [read|write]sq I/O accessor functions.

This is needed if parisc[64] ever wants to uses CONFIG_REGMAP_MMIO
which has been patches to use accelerated _noinc accessors
such as readsq/writesq that parisc64, while being a 64bit platform,
as of now not yet provide.

This comes with the requirement that everything the architecture
already provides needs to be defined, rather than just being,
say, static inline functions.

Bite the bullet and just provide the definitions and make it work.
Compile-tested on parisc32 and parisc64. Drop some of the __raw
functions that now get implemented in <asm-generic/io.h>.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Cc: James E.J. Bottomley <James.Bottomley@HansenPartnership.com>
Cc: Helge Deller <deller@gmx.de>
Cc: linux-parisc@vger.kernel.org
Cc: linux-arch@vger.kernel.org
Cc: Mark Brown <broonie@kernel.org>
Cc: John David Anglin <dave.anglin@bell.net>
Link: https://lore.kernel.org/linux-arm-kernel/62fcc351.hAyADB%2FY8JTxz+kh%25lkp@intel.com/
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/parisc/include/asm/io.h