mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
clk: qcom: fix some Kconfig corner cases
The SM_GCC_8550 symbol and others can only be built for ARM64 or when compile testing, but it gets selected by other drivers that can also be built for 32-bit ARCH_QCOM when not compile testing, which results in a Kconfig warning: WARNING: unmet direct dependencies detected for SM_GCC_8550 Depends on [n]: COMMON_CLK [=y] && COMMON_CLK_QCOM [=m] && (ARM64 || COMPILE_TEST [=n]) Selected by [m]: - SM_GPUCC_8550 [=m] && COMMON_CLK [=y] && COMMON_CLK_QCOM [=m] - SM_VIDEOCC_8550 [=m] && COMMON_CLK [=y] && COMMON_CLK_QCOM [=m] Add further 'depends on' statements to tighten this in a way that avoids the missing dependencies. Fixes:fd0b5b106f
("clk: qcom: Introduce SM8350 VIDEOCC") Fixes:441fe711be
("clk: qcom: videocc-sm8450: Add video clock controller driver for SM8450") Fixes:f53153a379
("clk: qcom: videocc-sm8550: Add video clock controller driver for SM8550") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Link: https://lore.kernel.org/r/20230801105718.3658612-1-arnd@kernel.org Signed-off-by: Bjorn Andersson <andersson@kernel.org>
This commit is contained in:
parent
783cb69382
commit
b6bcd1c0c2
1 changed files with 4 additions and 0 deletions
|
@ -986,6 +986,7 @@ config SM_GPUCC_8450
|
|||
|
||||
config SM_GPUCC_8550
|
||||
tristate "SM8550 Graphics Clock Controller"
|
||||
depends on ARM64 || COMPILE_TEST
|
||||
select SM_GCC_8550
|
||||
help
|
||||
Support for the graphics clock controller on SM8550 devices.
|
||||
|
@ -1022,6 +1023,7 @@ config SM_VIDEOCC_8250
|
|||
|
||||
config SM_VIDEOCC_8350
|
||||
tristate "SM8350 Video Clock Controller"
|
||||
depends on ARM64 || COMPILE_TEST
|
||||
select SM_GCC_8350
|
||||
select QCOM_GDSC
|
||||
help
|
||||
|
@ -1031,6 +1033,7 @@ config SM_VIDEOCC_8350
|
|||
|
||||
config SM_VIDEOCC_8550
|
||||
tristate "SM8550 Video Clock Controller"
|
||||
depends on ARM64 || COMPILE_TEST
|
||||
select SM_GCC_8550
|
||||
select QCOM_GDSC
|
||||
help
|
||||
|
@ -1079,6 +1082,7 @@ config CLK_GFM_LPASS_SM8250
|
|||
|
||||
config SM_VIDEOCC_8450
|
||||
tristate "SM8450 Video Clock Controller"
|
||||
depends on ARM64 || COMPILE_TEST
|
||||
select SM_GCC_8450
|
||||
select QCOM_GDSC
|
||||
help
|
||||
|
|
Loading…
Reference in a new issue