]> git.baikalelectronics.ru Git - kernel.git/commit
soc: ixp4xx-npe: Access syscon regs using regmap
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 11 Feb 2022 22:32:32 +0000 (23:32 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 12 Feb 2022 17:20:03 +0000 (18:20 +0100)
commit70f4c3376afdd55e9dde95c25386e75ace401887
tree31bc3db80947e0531c7beb7bb9227e2910ca3e9b
parent0f72f53d88b52b7c6c45d818ec4caf4ed2e32d16
soc: ixp4xx-npe: Access syscon regs using regmap

If we access the syscon (expansion bus config registers) using the
syscon regmap instead of relying on direct accessor functions,
we do not need to call this static code in the machine
(arch/arm/mach-ixp4xx/common.c) which makes things less dependent
on custom machine-dependent code.

Look up the syscon regmap and handle the error: this will make
deferred probe work with relation to the syscon.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20220211223238.648934-8-linus.walleij@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/soc/ixp4xx/Kconfig
drivers/soc/ixp4xx/ixp4xx-npe.c
include/linux/soc/ixp4xx/npe.h