OSDN Git Service

regmap/hexagon: Properly fix the generic IO helpers
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 18 Aug 2022 12:12:27 +0000 (14:12 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 22 Aug 2022 13:07:24 +0000 (14:07 +0100)
commitf8f60615379c1b36d9220f3886fb9b229e95d8cd
tree434d40c62eece66fbfebeb18422c7783326d066f
parent81c0386c1376da54f05d6916936db5220df9f97d
regmap/hexagon: Properly fix the generic IO helpers

I was too naive in just including <asm-generic/io.h> into
hexagon: one has to specify defines for every call that uses
a (static) inline or this will not work.

Fix it up by providing proper defines for all shorthands that
hexagon provides.

Compile-tested with hexagon LLVM which is the only working cross
compiler for hexagon ATM after commenting out the
-fno-inline-functions-called-once switch which isn't working
with LLVM.

Cc: Brian Cain <bcain@quicinc.com>
Cc: linux-hexagon@vger.kernel.org
Cc: Arnd Bergmann <arnd@arndb.de>
Fixes: 81c0386c1376 ("regmap: mmio: Support accelerared noinc operations")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20220818121227.151016-1-linus.walleij@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
arch/hexagon/include/asm/io.h