Commit 951cd3a0 authored by Arnd Bergmann's avatar Arnd Bergmann

firmware: include drivers/firmware/Kconfig unconditionally

Compile-testing drivers that require access to a firmware layer
fails when that firmware symbol is unavailable. This happened
twice this week:

 - My proposed to change to rework the QCOM_SCM firmware symbol
   broke on ppc64 and others.

 - The cs_dsp firmware patch added device specific firmware loader
   into drivers/firmware, which broke on the same set of
   architectures.

We should probably do the same thing for other subsystems as well,
but fix this one first as this is a dependency for other patches
getting merged.
Reviewed-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
Acked-by: default avatarWill Deacon <will@kernel.org>
Acked-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Cc: Mark Brown <broonie@kernel.org>
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Charles Keepax <ckeepax@opensource.cirrus.com>
Cc: Simon Trimmer <simont@opensource.cirrus.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 6880fa6c
...@@ -1989,8 +1989,6 @@ config ARCH_HIBERNATION_POSSIBLE ...@@ -1989,8 +1989,6 @@ config ARCH_HIBERNATION_POSSIBLE
endmenu endmenu
source "drivers/firmware/Kconfig"
if CRYPTO if CRYPTO
source "arch/arm/crypto/Kconfig" source "arch/arm/crypto/Kconfig"
endif endif
......
...@@ -1931,8 +1931,6 @@ source "drivers/cpufreq/Kconfig" ...@@ -1931,8 +1931,6 @@ source "drivers/cpufreq/Kconfig"
endmenu endmenu
source "drivers/firmware/Kconfig"
source "drivers/acpi/Kconfig" source "drivers/acpi/Kconfig"
source "arch/arm64/kvm/Kconfig" source "arch/arm64/kvm/Kconfig"
......
...@@ -388,8 +388,6 @@ config CRASH_DUMP ...@@ -388,8 +388,6 @@ config CRASH_DUMP
help help
Generate crash dump after being started by kexec. Generate crash dump after being started by kexec.
source "drivers/firmware/Kconfig"
endmenu endmenu
menu "Power management and ACPI options" menu "Power management and ACPI options"
......
...@@ -3316,8 +3316,6 @@ source "drivers/cpuidle/Kconfig" ...@@ -3316,8 +3316,6 @@ source "drivers/cpuidle/Kconfig"
endmenu endmenu
source "drivers/firmware/Kconfig"
source "arch/mips/kvm/Kconfig" source "arch/mips/kvm/Kconfig"
source "arch/mips/vdso/Kconfig" source "arch/mips/vdso/Kconfig"
...@@ -384,6 +384,4 @@ config KEXEC_FILE ...@@ -384,6 +384,4 @@ config KEXEC_FILE
endmenu endmenu
source "drivers/firmware/Kconfig"
source "drivers/parisc/Kconfig" source "drivers/parisc/Kconfig"
...@@ -561,5 +561,3 @@ menu "Power management options" ...@@ -561,5 +561,3 @@ menu "Power management options"
source "kernel/power/Kconfig" source "kernel/power/Kconfig"
endmenu endmenu
source "drivers/firmware/Kconfig"
...@@ -2828,8 +2828,6 @@ config HAVE_ATOMIC_IOMAP ...@@ -2828,8 +2828,6 @@ config HAVE_ATOMIC_IOMAP
def_bool y def_bool y
depends on X86_32 depends on X86_32
source "drivers/firmware/Kconfig"
source "arch/x86/kvm/Kconfig" source "arch/x86/kvm/Kconfig"
source "arch/x86/Kconfig.assembler" source "arch/x86/Kconfig.assembler"
...@@ -17,6 +17,8 @@ source "drivers/bus/Kconfig" ...@@ -17,6 +17,8 @@ source "drivers/bus/Kconfig"
source "drivers/connector/Kconfig" source "drivers/connector/Kconfig"
source "drivers/firmware/Kconfig"
source "drivers/gnss/Kconfig" source "drivers/gnss/Kconfig"
source "drivers/mtd/Kconfig" source "drivers/mtd/Kconfig"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment