]> git.baikalelectronics.ru Git - kernel.git/commit
sparc: Fix the generic IO helpers
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 31 Aug 2022 19:55:53 +0000 (21:55 +0200)
committerArnd Bergmann <arnd@arndb.de>
Thu, 8 Sep 2022 14:49:14 +0000 (16:49 +0200)
commitb982f0d00887f60e54e0f0920c9c06f9f78db5bd
tree017961b0e16bd21d1d6a376b56440cc2edd35c34
parent562f00d13fde22be7097e95c5490256628429dcd
sparc: Fix the generic IO helpers

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

This is needed if Sparc[64] ever wants to uses CONFIG_REGMAP_MMIO
which has been patches to use accelerated _noinc accessors
such as readsq/writesq that Sparc64, 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 sparc32 and sparc64.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Cc: David S. Miller <davem@davemloft.net>
Cc: sparclinux@vger.kernel.org
Cc: linux-arch@vger.kernel.org
Cc: Mark Brown <broonie@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/linux-arm-kernel/202208201639.HXye3ke4-lkp@intel.com/
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/sparc/include/asm/io.h
arch/sparc/include/asm/io_64.h