Skip to content

Commit 31c6ed4

Browse files
hal-fengbebarino
authored andcommitted
clk: starfive: Fix RESET_STARFIVE_JH7110 can't be selected in a specified case
When (ARCH_STARFIVE [=n] && COMPILE_TEST [=y] && RESET_CONTROLLER [=n]), RESET_STARFIVE_JH7110 can't be selected by CLK_STARFIVE_JH7110_SYS and CLK_STARFIVE_JH7110_AON. Add a condition `if RESET_CONTROLLER` to fix it. Also, delete redundant selected options of CLK_STARFIVE_JH7110_AON because these options are already selected by the dependency. Fixes: edab720 ("clk: starfive: Add StarFive JH7110 system clock driver") Fixes: b2ab3c9 ("clk: starfive: Add StarFive JH7110 always-on clock driver") Signed-off-by: Hal Feng <hal.feng@starfivetech.com> Link: https://lore.kernel.org/r/20230418123756.62495-2-hal.feng@starfivetech.com Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 5c667d5 commit 31c6ed4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/clk/starfive/Kconfig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ config CLK_STARFIVE_JH7110_SYS
2626
depends on ARCH_STARFIVE || COMPILE_TEST
2727
select AUXILIARY_BUS
2828
select CLK_STARFIVE_JH71X0
29-
select RESET_STARFIVE_JH7110
29+
select RESET_STARFIVE_JH7110 if RESET_CONTROLLER
3030
default ARCH_STARFIVE
3131
help
3232
Say yes here to support the system clock controller on the
@@ -35,9 +35,6 @@ config CLK_STARFIVE_JH7110_SYS
3535
config CLK_STARFIVE_JH7110_AON
3636
tristate "StarFive JH7110 always-on clock support"
3737
depends on CLK_STARFIVE_JH7110_SYS
38-
select AUXILIARY_BUS
39-
select CLK_STARFIVE_JH71X0
40-
select RESET_STARFIVE_JH7110
4138
default m if ARCH_STARFIVE
4239
help
4340
Say yes here to support the always-on clock controller on the

0 commit comments

Comments
 (0)