• Linus Walleij's avatar
    sparc: Fix the generic IO helpers · 2c230431
    Linus Walleij authored
    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: default avatarkernel test robot <lkp@intel.com>
    Signed-off-by: default avatarLinus 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: default avatarArnd Bergmann <arnd@arndb.de>
    2c230431
io_64.h 11.3 KB