Skip to content

Commit 0dcf60d

Browse files
committed
Merge tag 'asm-generic-fixes-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic
Pull asm-generic fixes from Arnd Bergmann: "There is one build fix for Arm platforms that ended up impacting most architectures because of the way the drivers/firmware Kconfig file is wired up: The CONFIG_QCOM_SCM dependency have caused a number of randconfig regressions over time, and some still remain in v5.15-rc4. The fix we agreed on in the end is to make this symbol selected by any driver using it, and then building it even for non-Arm platforms with CONFIG_COMPILE_TEST. To make this work on all architectures, the drivers/firmware/Kconfig file needs to be included for all architectures to make the symbol itself visible. In a separate discussion, we found that a sound driver patch that is pending for v5.16 needs the same change to include this Kconfig file, so the easiest solution seems to have my Kconfig rework included in v5.15. Finally, the branch also includes a small unrelated build fix for NOMMU architectures" Link: https://lore.kernel.org/all/[email protected]/ Link: https://lore.kernel.org/all/[email protected]/ Link: https://lore.kernel.org/all/[email protected]/ * tag 'asm-generic-fixes-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic: asm-generic/io.h: give stub iounmap() on !MMU same prototype as elsewhere qcom_scm: hide Kconfig symbol firmware: include drivers/firmware/Kconfig unconditionally
2 parents cdc726f + 2fbc349 commit 0dcf60d

File tree

21 files changed

+27
-100
lines changed

21 files changed

+27
-100
lines changed

arch/arm/Kconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1989,8 +1989,6 @@ config ARCH_HIBERNATION_POSSIBLE
19891989

19901990
endmenu
19911991

1992-
source "drivers/firmware/Kconfig"
1993-
19941992
if CRYPTO
19951993
source "arch/arm/crypto/Kconfig"
19961994
endif

arch/arm64/Kconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1931,8 +1931,6 @@ source "drivers/cpufreq/Kconfig"
19311931

19321932
endmenu
19331933

1934-
source "drivers/firmware/Kconfig"
1935-
19361934
source "drivers/acpi/Kconfig"
19371935

19381936
source "arch/arm64/kvm/Kconfig"

arch/ia64/Kconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,6 @@ config CRASH_DUMP
388388
help
389389
Generate crash dump after being started by kexec.
390390

391-
source "drivers/firmware/Kconfig"
392-
393391
endmenu
394392

395393
menu "Power management and ACPI options"

arch/mips/Kconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3316,8 +3316,6 @@ source "drivers/cpuidle/Kconfig"
33163316

33173317
endmenu
33183318

3319-
source "drivers/firmware/Kconfig"
3320-
33213319
source "arch/mips/kvm/Kconfig"
33223320

33233321
source "arch/mips/vdso/Kconfig"

arch/parisc/Kconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,4 @@ config KEXEC_FILE
384384

385385
endmenu
386386

387-
source "drivers/firmware/Kconfig"
388-
389387
source "drivers/parisc/Kconfig"

arch/riscv/Kconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,5 +561,3 @@ menu "Power management options"
561561
source "kernel/power/Kconfig"
562562

563563
endmenu
564-
565-
source "drivers/firmware/Kconfig"

arch/x86/Kconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2832,8 +2832,6 @@ config HAVE_ATOMIC_IOMAP
28322832
def_bool y
28332833
depends on X86_32
28342834

2835-
source "drivers/firmware/Kconfig"
2836-
28372835
source "arch/x86/kvm/Kconfig"
28382836

28392837
source "arch/x86/Kconfig.assembler"

drivers/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ source "drivers/bus/Kconfig"
1717

1818
source "drivers/connector/Kconfig"
1919

20+
source "drivers/firmware/Kconfig"
21+
2022
source "drivers/gnss/Kconfig"
2123

2224
source "drivers/mtd/Kconfig"

drivers/firmware/Kconfig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,7 @@ config INTEL_STRATIX10_RSU
203203
Say Y here if you want Intel RSU support.
204204

205205
config QCOM_SCM
206-
tristate "Qcom SCM driver"
207-
depends on ARCH_QCOM || COMPILE_TEST
208-
depends on HAVE_ARM_SMCCC
209-
select RESET_CONTROLLER
206+
tristate
210207

211208
config QCOM_SCM_DOWNLOAD_MODE_DEFAULT
212209
bool "Qualcomm download mode enabled by default"

drivers/gpu/drm/msm/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ config DRM_MSM
1717
select DRM_SCHED
1818
select SHMEM
1919
select TMPFS
20-
select QCOM_SCM if ARCH_QCOM
20+
select QCOM_SCM
2121
select WANT_DEV_COREDUMP
2222
select SND_SOC_HDMI_CODEC if SND_SOC
2323
select SYNC_FILE
@@ -55,7 +55,7 @@ config DRM_MSM_GPU_SUDO
5555

5656
config DRM_MSM_HDMI_HDCP
5757
bool "Enable HDMI HDCP support in MSM DRM driver"
58-
depends on DRM_MSM && QCOM_SCM
58+
depends on DRM_MSM
5959
default y
6060
help
6161
Choose this option to enable HDCP state machine

0 commit comments

Comments
 (0)