]> git.baikalelectronics.ru Git - kernel.git/commit
net: ixp4xx_hss: Check features using syscon
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 11 Feb 2022 22:32:34 +0000 (23:32 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 12 Feb 2022 17:20:03 +0000 (18:20 +0100)
commitb9aebe2fe5c2797eff12bc9ae344cd5e6041c12b
tree8773156e902fc48ef9278d93017a907b2bdc421a
parent32dd3336cb00d39e08fa1a19fa955633ccaec1c5
net: ixp4xx_hss: Check features using syscon

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.

Select the syscon in Kconfig and depend on OF so we know that
all we need will be available.

Cc: David S. Miller <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: netdev@vger.kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20220211223238.648934-10-linus.walleij@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/net/wan/Kconfig
drivers/net/wan/ixp4xx_hss.c