Skip to content

Commit 558480d

Browse files
Merge patch series "RISC-V interrupt controller select cleanup"
Conor Dooley <[email protected]> says: From: Conor Dooley <[email protected]> Submitted a patch yesterday defaulting the SiFive PLIC driver to enabled [0], and in the ensuing conversation Marc suggested just doing a select at the arch level and dropping the user selectability completely. * b4-shazam-merge: RISC-V: stop selecting SIFIVE_PLIC at the SoC level irqchip/riscv-intc: remove user selectability of RISCV_INTC irqchip/sifive-plic: remove user selectability of SIFIVE_PLIC Link: https://lore.kernel.org/r/[email protected] Acked-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Palmer Dabbelt <[email protected]>
2 parents 049696a + bf3d7b1 commit 558480d

File tree

3 files changed

+3
-24
lines changed

3 files changed

+3
-24
lines changed

arch/riscv/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ config RISCV
127127
select PCI_MSI if PCI
128128
select RISCV_INTC
129129
select RISCV_TIMER if RISCV_SBI
130+
select SIFIVE_PLIC
130131
select SPARSE_IRQ
131132
select SYSCTL_EXCEPTION_TRACE
132133
select THREAD_INFO_IN_TASK

arch/riscv/Kconfig.socs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ menu "SoC selection"
33
config SOC_MICROCHIP_POLARFIRE
44
bool "Microchip PolarFire SoCs"
55
select MCHP_CLK_MPFS
6-
select SIFIVE_PLIC
76
help
87
This enables support for Microchip PolarFire SoC platforms.
98

@@ -13,7 +12,6 @@ config SOC_SIFIVE
1312
select SERIAL_SIFIVE_CONSOLE if TTY
1413
select CLK_SIFIVE
1514
select CLK_SIFIVE_PRCI
16-
select SIFIVE_PLIC
1715
select ERRATA_SIFIVE if !XIP_KERNEL
1816
help
1917
This enables support for SiFive SoC platform hardware.
@@ -22,7 +20,6 @@ config SOC_STARFIVE
2220
bool "StarFive SoCs"
2321
select PINCTRL
2422
select RESET_CONTROLLER
25-
select SIFIVE_PLIC
2623
help
2724
This enables support for StarFive SoC platform hardware.
2825

@@ -34,7 +31,6 @@ config SOC_VIRT
3431
select POWER_RESET_SYSCON_POWEROFF
3532
select GOLDFISH
3633
select RTC_DRV_GOLDFISH if RTC_CLASS
37-
select SIFIVE_PLIC
3834
select PM_GENERIC_DOMAINS if PM
3935
select PM_GENERIC_DOMAINS_OF if PM && OF
4036
select RISCV_SBI_CPUIDLE if CPU_IDLE && RISCV_SBI
@@ -47,7 +43,6 @@ config SOC_CANAAN
4743
select CLINT_TIMER if RISCV_M_MODE
4844
select SERIAL_SIFIVE if TTY
4945
select SERIAL_SIFIVE_CONSOLE if TTY
50-
select SIFIVE_PLIC
5146
select ARCH_HAS_RESET_CONTROLLER
5247
select PINCTRL
5348
select COMMON_CLK

drivers/irqchip/Kconfig

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -538,31 +538,14 @@ config TI_PRUSS_INTC
538538
different processors within the SoC.
539539

540540
config RISCV_INTC
541-
bool "RISC-V Local Interrupt Controller"
541+
bool
542542
depends on RISCV
543-
default y
544-
help
545-
This enables support for the per-HART local interrupt controller
546-
found in standard RISC-V systems. The per-HART local interrupt
547-
controller handles timer interrupts, software interrupts, and
548-
hardware interrupts. Without a per-HART local interrupt controller,
549-
a RISC-V system will be unable to handle any interrupts.
550-
551-
If you don't know what to do here, say Y.
552543

553544
config SIFIVE_PLIC
554-
bool "SiFive Platform-Level Interrupt Controller"
545+
bool
555546
depends on RISCV
556547
select IRQ_DOMAIN_HIERARCHY
557548
select GENERIC_IRQ_EFFECTIVE_AFF_MASK if SMP
558-
help
559-
This enables support for the PLIC chip found in SiFive (and
560-
potentially other) RISC-V systems. The PLIC controls devices
561-
interrupts and connects them to each core's local interrupt
562-
controller. Aside from timer and software interrupts, all other
563-
interrupt sources are subordinate to the PLIC.
564-
565-
If you don't know what to do here, say Y.
566549

567550
config EXYNOS_IRQ_COMBINER
568551
bool "Samsung Exynos IRQ combiner support" if COMPILE_TEST

0 commit comments

Comments
 (0)