thermal: hisilicon: fix COMPILE_TEST dependencies
PATCH 1/1 thermal: hisilicon: fix COMPILE_TEST dependencies
As we now 'select STUB_CLK_HI6220', all dependencies for that driver have to be present in order to enable HISI_THERMAL, as pointed out by Kconfig:
warning: (HISI_THERMAL) selects STUB_CLK_HI6220 which has unmet direct dependencies (COMMON_CLK && COMMON_CLK_HI6220 && MAILBOX)
This rearranges the dependencies for this symbol, so all the dependencies aside from ARCH_HISI are always met when building it for compile testing. This mainly helps for randconfig testing, as an "allmodconfig" kernel will enable them anyway.
--- drivers/thermal/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/thermal/Kconfig +2 -1
@@ -177,7 +177,8 @@ config THERMAL_EMULATION config HISI_THERMAL tristate "Hisilicon thermal driver" - depends on (ARCH_HISI && CPU_THERMAL && OF) || COMPILE_TEST + depends on ARCH_HISI || COMPILE_TEST + depends on CPU_THERMAL && OF && COMMON_CLK_HI6220 && MAILBOX depends on HAS_IOMEM select STUB_CLK_HI6220 help
Signature · 1 line
2.9.0
Quoted 6 lines · Arnd Bergmann
As we now 'select
STUB_CLK_HI6220', all dependencies for that driver have to be present in order to enableHISI_THERMAL, as pointed out byKconfig:warning: (
HISI_THERMAL) selectsSTUB_CLK_HI6220which has unmet direct dependencies (COMMON_CLK&&COMMON_CLK_HI6220&& MAILBOX)
Quoted 7 lines
This rearranges the dependencies for this symbol, so all the dependencies aside from
ARCH_HISIare always met when building it for compile testing. This mainly helps for randconfig testing, as an "allmodconfig" kernel will enable them anyway.Signed-off-by Arnd Bergmann <[email protected]>Fixes 5f63581ce68e ("thermal: hisilicon: Add dependency on the clock driver to allow frequency scaling")
Quoted 21 lines
--- drivers/thermal/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/thermal/Kconfig +2
-2@@ -177,7 +177,8 @@ config THERMAL_EMULATION config HISI_THERMAL tristate "Hisilicon thermal driver" - depends on (ARCH_HISI && CPU_THERMAL && OF) || COMPILE_TEST + depends on ARCH_HISI || COMPILE_TEST + depends on CPU_THERMAL && OF && COMMON_CLK_HI6220 && MAILBOX depends on HAS_IOMEM select STUB_CLK_HI6220 help --2.9.0
Zhang Rui
reviewerQuoted 16 lines · Arnd Bergmann
As we now 'select
STUB_CLK_HI6220', all dependencies for that driver have
to be present in order to enableHISI_THERMAL, as pointed out byKconfig:warning: (
HISI_THERMAL) selectsSTUB_CLK_HI6220which has unmet direct dependencies (COMMON_CLK&&COMMON_CLK_HI6220&& MAILBOX)This rearranges the dependencies for this symbol, so all the dependencies
aside fromARCH_HISIare always met when building it for compile testing.
This mainly helps for randconfig testing, as an "allmodconfig" kernel will
enable them anyway.
Quoted 3 lines
Signed-off-by Arnd Bergmann <[email protected]>Fixes 5f63581ce68e ("thermal: hisilicon: Add dependency on the clockdriver to allow frequency scaling")
As commit 5f63581ce68e has not been shipped in upstream yet, please fold this patch into the original one. I'd prefer one good patch instead of a broken patch + a fix.
thanks,
rui
Quoted 18 lines
---
drivers/thermal/Kconfig | 3 ++-1 file changed, 2 insertions(+), 1 deletion(-)drivers/thermal/Kconfig +0
-0@@ -177,7 +177,8 @@ config THERMAL_EMULATION
configHISI_THERMAL
tristate "Hisilicon thermal driver"drivers/thermal/Kconfig +2
-1- depends on (ARCH_HISI && CPU_THERMAL && OF) || COMPILE_TEST + depends on ARCH_HISI || COMPILE_TEST + depends on CPU_THERMAL && OF && COMMON_CLK_HI6220 && MAILBOXdepends on
HAS_IOMEM
selectSTUB_CLK_HI6220
help
Quoted 17 lines · Zhang Rui
Quoted 16 lines · Arnd Bergmann
As we now 'select
STUB_CLK_HI6220', all dependencies for that driver have
to be present in order to enableHISI_THERMAL, as pointed out byKconfig:warning: (
HISI_THERMAL) selectsSTUB_CLK_HI6220which has unmet direct dependencies (COMMON_CLK&&COMMON_CLK_HI6220&& MAILBOX)This rearranges the dependencies for this symbol, so all the dependencies
aside fromARCH_HISIare always met when building it for compile testing.
This mainly helps for randconfig testing, as an "allmodconfig" kernel will
enable them anyway.
Quoted 7 lines
Quoted 3 lines
Signed-off-by Arnd Bergmann <[email protected]>Fixes 5f63581ce68e ("thermal: hisilicon: Add dependency on the clockdriver to allow frequency scaling")
As commit 5f63581ce68e has not been shipped in upstream yet, please fold this patch into the original one. I'd prefer one good patch instead of a broken patch + a fix.
Amit has one discussion with me, we have a more clear method to enable Hisilicon thermal driver [1]: we are planning to enable CONFIG_CPU_THERMAL in defconfig, and enable stub clock driver and thermal driver depend on ARCH_HISI; so can resolve all dependency issue.
I will prepare related patches and send out review ASAP, sorry for my late.
[1] https://lkml.org/lkml/2016/8/8/879
Thanks,
Leo Yan
Quoted 18 lines
Quoted 18 lines
---
drivers/thermal/Kconfig | 3 ++-1 file changed, 2 insertions(+), 1 deletion(-)drivers/thermal/Kconfig +0
-0@@ -177,7 +177,8 @@ config THERMAL_EMULATION
configHISI_THERMAL
tristate "Hisilicon thermal driver"drivers/thermal/Kconfig +2
-1- depends on (ARCH_HISI && CPU_THERMAL && OF) || COMPILE_TEST + depends on ARCH_HISI || COMPILE_TEST + depends on CPU_THERMAL && OF && COMMON_CLK_HI6220 && MAILBOXdepends on
HAS_IOMEM
selectSTUB_CLK_HI6220
help