* [PATCH] irqchip: THEAD_C901_ACLINT_SSWI should depend on ARCH_THEAD
@ 2024-11-12 15:31 Geert Uytterhoeven
2024-11-12 16:38 ` Samuel Holland
0 siblings, 1 reply; 3+ messages in thread
From: Geert Uytterhoeven @ 2024-11-12 15:31 UTC (permalink / raw)
To: Inochi Amaoto, Thomas Gleixner
Cc: linux-riscv, linux-kernel, Geert Uytterhoeven
The T-HEAD ACLINT S-mode IPI Interrupt Controller is only present on
T-HEAD SoCs. Hence add a dependency on ARCH_THEAD, to prevent asking
the user about this driver when configuring a kernel without T-HEAD SoC
support.
Fixes: 25caea955cc95050 ("irqchip: Add T-HEAD C900 ACLINT SSWI driver")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
drivers/irqchip/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
index 28c19bde55206847..3f4cfcbecc5a4041 100644
--- a/drivers/irqchip/Kconfig
+++ b/drivers/irqchip/Kconfig
@@ -617,6 +617,7 @@ config THEAD_C900_ACLINT_SSWI
bool "THEAD C9XX ACLINT S-mode IPI Interrupt Controller"
depends on RISCV
depends on SMP
+ depends on ARCH_THEAD || COMPILE_TEST
select IRQ_DOMAIN_HIERARCHY
select GENERIC_IRQ_IPI_MUX
help
--
2.34.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] irqchip: THEAD_C901_ACLINT_SSWI should depend on ARCH_THEAD
2024-11-12 15:31 [PATCH] irqchip: THEAD_C901_ACLINT_SSWI should depend on ARCH_THEAD Geert Uytterhoeven
@ 2024-11-12 16:38 ` Samuel Holland
2024-11-12 16:44 ` Geert Uytterhoeven
0 siblings, 1 reply; 3+ messages in thread
From: Samuel Holland @ 2024-11-12 16:38 UTC (permalink / raw)
To: Geert Uytterhoeven, Inochi Amaoto, Thomas Gleixner
Cc: linux-riscv, linux-kernel
Hi Geert,
On 2024-11-12 9:31 AM, Geert Uytterhoeven wrote:
> The T-HEAD ACLINT S-mode IPI Interrupt Controller is only present on
> T-HEAD SoCs. Hence add a dependency on ARCH_THEAD, to prevent asking
This is not correct. This interrupt controller is part of the T-HEAD CPU IP, so
it is included in SoCs from other vendors (Allwinner, Sophgo, etc.) that use
T-HEAD CPUs as well.
Regards,
Samuel
> the user about this driver when configuring a kernel without T-HEAD SoC
> support.
>
> Fixes: 25caea955cc95050 ("irqchip: Add T-HEAD C900 ACLINT SSWI driver")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> drivers/irqchip/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
> index 28c19bde55206847..3f4cfcbecc5a4041 100644
> --- a/drivers/irqchip/Kconfig
> +++ b/drivers/irqchip/Kconfig
> @@ -617,6 +617,7 @@ config THEAD_C900_ACLINT_SSWI
> bool "THEAD C9XX ACLINT S-mode IPI Interrupt Controller"
> depends on RISCV
> depends on SMP
> + depends on ARCH_THEAD || COMPILE_TEST
> select IRQ_DOMAIN_HIERARCHY
> select GENERIC_IRQ_IPI_MUX
> help
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] irqchip: THEAD_C901_ACLINT_SSWI should depend on ARCH_THEAD
2024-11-12 16:38 ` Samuel Holland
@ 2024-11-12 16:44 ` Geert Uytterhoeven
0 siblings, 0 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2024-11-12 16:44 UTC (permalink / raw)
To: Samuel Holland; +Cc: Inochi Amaoto, Thomas Gleixner, linux-riscv, linux-kernel
Hi Samuel,
On Tue, Nov 12, 2024 at 5:38 PM Samuel Holland
<samuel.holland@sifive.com> wrote:
> On 2024-11-12 9:31 AM, Geert Uytterhoeven wrote:
> > The T-HEAD ACLINT S-mode IPI Interrupt Controller is only present on
> > T-HEAD SoCs. Hence add a dependency on ARCH_THEAD, to prevent asking
>
> This is not correct. This interrupt controller is part of the T-HEAD CPU IP, so
> it is included in SoCs from other vendors (Allwinner, Sophgo, etc.) that use
> T-HEAD CPUs as well.
In that case I am withdrawing this patch.
Thanks for the explanation!
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-11-12 16:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-12 15:31 [PATCH] irqchip: THEAD_C901_ACLINT_SSWI should depend on ARCH_THEAD Geert Uytterhoeven
2024-11-12 16:38 ` Samuel Holland
2024-11-12 16:44 ` Geert Uytterhoeven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®