clk: bcm: Fix unmet Kconfig dependencies for CLK_BCM_63XX
PATCH 1/1 clk: bcm: Fix unmet Kconfig dependencies for CLK_BCM_63XX
With commit f4e871509959 ("clk: iproc: Make clocks visible options"), COMMON_CLK_IPROC gained a dependency on ARCH_BCM_IPROC, yet CLK_BCM_63XX also selects that option, this causes the following Kconfig warning:
warning: (CLK_BCM_63XX) selects COMMON_CLK_IPROC which has unmet direct dependencies ((ARCH_BCM_IPROC || COMPILE_TEST) && COMMON_CLK)
Fix this by adding proper depends/default for COMMON_CLK_IPROC
--- drivers/clk/bcm/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/clk/bcm/Kconfig +2 -2
@@ -20,9 +20,9 @@ config CLK_BCM_KONA config COMMON_CLK_IPROC bool "Broadcom iProc clock support" - depends on ARCH_BCM_IPROC || COMPILE_TEST + depends on ARCH_BCM_IPROC || ARCH_BCM_63XX || COMPILE_TEST depends on COMMON_CLK - default ARCH_BCM_IPROC + default ARCH_BCM_IPROC || ARCH_BCM_63XX help Enable common clock framework support for Broadcom SoCs based on the iProc architecture
Signature · 1 line
2.9.3
Hi Florian,
Quoted 22 lines · Florian Fainelli
With commit
f4e871509959("clk: iproc: Make clocks visible options"),COMMON_CLK_IPROCgained a dependency onARCH_BCM_IPROC, yetCLK_BCM_63XXalso selects that option, this causes the followingKconfigwarning:warning: (
CLK_BCM_63XX) selectsCOMMON_CLK_IPROCwhich has unmet direct dependencies ((ARCH_BCM_IPROC||COMPILE_TEST) &&COMMON_CLK)Fix this by adding proper depends/default for
COMMON_CLK_IPROCFixes f4e871509959 ("clk: iproc: Make clocks visible options")Signed-off-by Florian Fainelli <[email protected]>--- drivers/clk/bcm/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/clk/bcm/Kconfig +0
-0@@ -20,9 +20,9 @@ config CLK_BCM_KONA
drivers/clk/bcm/Kconfig config CLK_BCM_KONA · line 28
Quoted 10 lines
drivers/clk/bcm/Kconfig +2
-2config COMMON_CLK_IPROC bool "Broadcom iProc clock support" - depends on ARCH_BCM_IPROC || COMPILE_TEST + depends on ARCH_BCM_IPROC || ARCH_BCM_63XX || COMPILE_TEST depends on COMMON_CLK - default ARCH_BCM_IPROC + default ARCH_BCM_IPROC || ARCH_BCM_63XX help Enable common clock framework support for Broadcom SoCs based on the iProc architecture
This change looks good! Thanks.
Quoted 21 lines · Florian Fainelli
With commit
f4e871509959("clk: iproc: Make clocks visible options"),COMMON_CLK_IPROCgained a dependency onARCH_BCM_IPROC, yetCLK_BCM_63XXalso selects that option, this causes the followingKconfigwarning:warning: (
CLK_BCM_63XX) selectsCOMMON_CLK_IPROCwhich has unmet direct dependencies ((ARCH_BCM_IPROC||COMPILE_TEST) &&COMMON_CLK)Fix this by adding proper depends/default for
COMMON_CLK_IPROCFixes f4e871509959 ("clk: iproc: Make clocks visible options")Signed-off-by Florian Fainelli <[email protected]>--- drivers/clk/bcm/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/clk/bcm/Kconfig +0
-0@@ -20,9 +20,9 @@ config CLK_BCM_KONA
drivers/clk/bcm/Kconfig config CLK_BCM_KONA · line 28
Quoted 10 lines
drivers/clk/bcm/Kconfig +2
-2config COMMON_CLK_IPROC bool "Broadcom iProc clock support" - depends on ARCH_BCM_IPROC || COMPILE_TEST + depends on ARCH_BCM_IPROC || ARCH_BCM_63XX || COMPILE_TEST depends on COMMON_CLK - default ARCH_BCM_IPROC + default ARCH_BCM_IPROC || ARCH_BCM_63XX help Enable common clock framework support for Broadcom SoCs based on the iProc architecture
It's confusing that CLK_BCM_63XX selects COMMON_CLK_IPROC and the other drivers don't. Also, why are we now defaulting IPROC to be true when ARCH_BCM_63XX is there? It will be selected anyway by the clk driver on that machine so what's the point?
I'd prefer we handled this one way instead of two. Given that COMMON_CLK_IPROC is a symbol for what looks like a library it seems that it needs to be a hidden option that gets selected by the other three options for the machine specific drivers.
I'd like to drop the default ARCH_BCM_63XX part of your patch, merge that for 4.9 and apply this on top for 4.10. Agreed?
----8<----
drivers/clk/bcm/Kconfig +5 -11
@@ -1,7 +1,6 @@ config CLK_BCM_63XX bool "Broadcom BCM63xx clock support" depends on ARCH_BCM_63XX || COMPILE_TEST - depends on COMMON_CLK select COMMON_CLK_IPROC default ARCH_BCM_63XX help
@@ -11,27 +10,22 @@ config CLK_BCM_63XX config CLK_BCM_KONA bool "Broadcom Kona CCU clock support" depends on ARCH_BCM_MOBILE || COMPILE_TEST - depends on COMMON_CLK - default y + default ARCH_BCM_MOBILE help Enable common clock framework support for Broadcom SoCs using "Kona" style clock control units, including those in the BCM281xx and BCM21664 families. config COMMON_CLK_IPROC - bool "Broadcom iProc clock support" - depends on ARCH_BCM_IPROC || COMPILE_TEST - depends on COMMON_CLK - default ARCH_BCM_IPROC + bool help Enable common clock framework support for Broadcom SoCs based on the iProc architecture -if COMMON_CLK_IPROC - config CLK_BCM_CYGNUS bool "Broadcom Cygnus clock support" depends on ARCH_BCM_CYGNUS || COMPILE_TEST + select COMMON_CLK_IPROC default ARCH_BCM_CYGNUS help Enable common clock framework support for the Broadcom Cygnus SoC
@@ -39,6 +33,7 @@ config CLK_BCM_CYGNUS config CLK_BCM_NSP bool "Broadcom Northstar/Northstar Plus clock support" depends on ARCH_BCM_5301X || ARCH_BCM_NSP || COMPILE_TEST + select COMMON_CLK_IPROC default ARCH_BCM_5301X || ARCH_BCM_NSP help Enable common clock framework support for the Broadcom Northstar and
@@ -47,8 +42,7 @@ config CLK_BCM_NSP config CLK_BCM_NS2 bool "Broadcom Northstar 2 clock support" depends on ARCH_BCM_IPROC || COMPILE_TEST + select COMMON_CLK_IPROC default ARCH_BCM_IPROC help Enable common clock framework support for the Broadcom Northstar 2 SoC - -endif
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Quoted 38 lines · Stephen Boyd
Quoted 21 lines · Florian Fainelli
With commit
f4e871509959("clk: iproc: Make clocks visible options"),COMMON_CLK_IPROCgained a dependency onARCH_BCM_IPROC, yetCLK_BCM_63XXalso selects that option, this causes the followingKconfigwarning:warning: (
CLK_BCM_63XX) selectsCOMMON_CLK_IPROCwhich has unmet direct dependencies ((ARCH_BCM_IPROC||COMPILE_TEST) &&COMMON_CLK)Fix this by adding proper depends/default for
COMMON_CLK_IPROCFixes f4e871509959 ("clk: iproc: Make clocks visible options")Signed-off-by Florian Fainelli <[email protected]>--- drivers/clk/bcm/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/clk/bcm/Kconfig +0
-0@@ -20,9 +20,9 @@ config CLK_BCM_KONAdrivers/clk/bcm/Kconfig config CLK_BCM_KONA · line 28
Quoted 10 lines
drivers/clk/bcm/Kconfig +2
-2config COMMON_CLK_IPROC bool "Broadcom iProc clock support" - depends on ARCH_BCM_IPROC || COMPILE_TEST + depends on ARCH_BCM_IPROC || ARCH_BCM_63XX || COMPILE_TEST depends on COMMON_CLK - default ARCH_BCM_IPROC + default ARCH_BCM_IPROC || ARCH_BCM_63XX help Enable common clock framework support for Broadcom SoCs based on the iProc architectureIt's confusing that
CLK_BCM_63XXselectsCOMMON_CLK_IPROCand the other drivers don't. Also, why are we now defaulting IPROC to be true whenARCH_BCM_63XXis there? It will be selected anyway by the clk driver on that machine so what's the point?
Quoted 7 lines
I'd prefer we handled this one way instead of two. Given that
COMMON_CLK_IPROCis a symbol for what looks like a library it seems that it needs to be a hidden option that gets selected by the other three options for the machine specific drivers.I'd like to drop the default
ARCH_BCM_63XXpart of your patch, merge that for 4.9 and apply this on top for 4.10. Agreed?
So essentially you propose to revert the change that you suggested Jon to do in the Fixes commit mentioned, that's fine with me.
Quoted 65 lines
----8<----
drivers/clk/bcm/Kconfig +5
-11@@ -1,7 +1,6 @@ config CLK_BCM_63XX bool "Broadcom BCM63xx clock support" depends on ARCH_BCM_63XX || COMPILE_TEST - depends on COMMON_CLK select COMMON_CLK_IPROC default ARCH_BCM_63XX help@@ -11,27 +10,22 @@ config CLK_BCM_63XX config CLK_BCM_KONA bool "Broadcom Kona CCU clock support" depends on ARCH_BCM_MOBILE || COMPILE_TEST - depends on COMMON_CLK - default y + default ARCH_BCM_MOBILE help Enable common clock framework support for Broadcom SoCs using "Kona" style clock control units, including those in the BCM281xx and BCM21664 families. config COMMON_CLK_IPROC - bool "Broadcom iProc clock support" - depends on ARCH_BCM_IPROC || COMPILE_TEST - depends on COMMON_CLK - default ARCH_BCM_IPROC + bool help Enable common clock framework support for Broadcom SoCs based on the iProc architecture -if COMMON_CLK_IPROC - config CLK_BCM_CYGNUS bool "Broadcom Cygnus clock support" depends on ARCH_BCM_CYGNUS || COMPILE_TEST + select COMMON_CLK_IPROC default ARCH_BCM_CYGNUS help Enable common clock framework support for the Broadcom Cygnus SoC@@ -39,6 +33,7 @@ config CLK_BCM_CYGNUS config CLK_BCM_NSP bool "Broadcom Northstar/Northstar Plus clock support" depends on ARCH_BCM_5301X || ARCH_BCM_NSP || COMPILE_TEST + select COMMON_CLK_IPROC default ARCH_BCM_5301X || ARCH_BCM_NSP help Enable common clock framework support for the Broadcom Northstar and@@ -47,8 +42,7 @@ config CLK_BCM_NSP config CLK_BCM_NS2 bool "Broadcom Northstar 2 clock support" depends on ARCH_BCM_IPROC || COMPILE_TEST + select COMMON_CLK_IPROC default ARCH_BCM_IPROC help Enable common clock framework support for the Broadcom Northstar 2 SoC - -endif
Signature · 1 line
Florian
Quoted 44 lines · Florian Fainelli
Quoted 43 lines · Stephen Boyd
Quoted 21 lines · Florian Fainelli
With commit
f4e871509959("clk: iproc: Make clocks visible options"),COMMON_CLK_IPROCgained a dependency onARCH_BCM_IPROC, yetCLK_BCM_63XXalso selects that option, this causes the followingKconfigwarning:warning: (
CLK_BCM_63XX) selectsCOMMON_CLK_IPROCwhich has unmet direct dependencies ((ARCH_BCM_IPROC||COMPILE_TEST) &&COMMON_CLK)Fix this by adding proper depends/default for
COMMON_CLK_IPROCFixes f4e871509959 ("clk: iproc: Make clocks visible options")Signed-off-by Florian Fainelli <[email protected]>--- drivers/clk/bcm/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/clk/bcm/Kconfig +0
-0@@ -20,9 +20,9 @@ config CLK_BCM_KONAdrivers/clk/bcm/Kconfig config CLK_BCM_KONA · line 28
Quoted 10 lines
drivers/clk/bcm/Kconfig +2
-2config COMMON_CLK_IPROC bool "Broadcom iProc clock support" - depends on ARCH_BCM_IPROC || COMPILE_TEST + depends on ARCH_BCM_IPROC || ARCH_BCM_63XX || COMPILE_TEST depends on COMMON_CLK - default ARCH_BCM_IPROC + default ARCH_BCM_IPROC || ARCH_BCM_63XX help Enable common clock framework support for Broadcom SoCs based on the iProc architectureIt's confusing that
CLK_BCM_63XXselectsCOMMON_CLK_IPROCand the other drivers don't. Also, why are we now defaulting IPROC to be true whenARCH_BCM_63XXis there? It will be selected anyway by the clk driver on that machine so what's the point?I'd prefer we handled this one way instead of two. Given that
COMMON_CLK_IPROCis a symbol for what looks like a library it seems that it needs to be a hidden option that gets selected by the other three options for the machine specific drivers.
Quoted 6 lines
Quoted 2 lines
I'd like to drop the default
ARCH_BCM_63XXpart of your patch, merge that for 4.9 and apply this on top for 4.10. Agreed?So essentially you propose to revert the change that you suggested Jon to do in the Fixes commit mentioned, that's fine with me.
Not exactly. We always wanted to have the option of compiling support for different drivers from the menu, which is what Jon's change was about. The difference here is that we don't require the support library code to be selected to make those options visible.
Anyway, it sounds like your fine with this approach so let's do it! I'll send this patch out properly.
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Stephen Boyd
AppliedQuoted 4 lines · Florian Fainelli
With commit
f4e871509959("clk: iproc: Make clocks visible options"),COMMON_CLK_IPROCgained a dependency onARCH_BCM_IPROC, yetCLK_BCM_63XXalso selects that option, this causes the followingKconfigwarning:
Quoted 8 lines
warning: (
CLK_BCM_63XX) selectsCOMMON_CLK_IPROCwhich has unmet direct dependencies ((ARCH_BCM_IPROC||COMPILE_TEST) &&COMMON_CLK)Fix this by adding proper depends/default for
COMMON_CLK_IPROCFixes f4e871509959 ("clk: iproc: Make clocks visible options")Signed-off-by Florian Fainelli <[email protected]>---
Applied to fixes with the default part dropped
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project