mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] irqchip: Kconfig: Add module support for TI inta/intr
@ 2022-12-22 19:31 Nicolas Frayer
  2022-12-22 19:32 ` [PATCH v2 1/2] irqchip: Kconfig: module build support for the TI interrupt router driver Nicolas Frayer
  2022-12-22 19:32 ` [PATCH v2 2/2] irqchip: Kconfig: Added module build support for the TI interrupt aggregator Nicolas Frayer
  0 siblings, 2 replies; 3+ messages in thread
From: Nicolas Frayer @ 2022-12-22 19:31 UTC (permalink / raw)
  To: nm, kristo, ssantosh, tglx, maz, linux-arm-kernel, linux-kernel,
	linux-omap
  Cc: khilman, glaroque, mkorpershoek, nfrayer

Added module support for TI interrupt aggregator and interrupt router
drivers. Default value for both drivers is ARCH_K3 and the interrupt
aggregator depends on ARCH_K3 as it contains 64 bit only ops.
Tested allmodconfig builds with ARCH=arm and ARCH=arm64.

v1->v2:
- Added depends on ARCH_K3 for the interrupt aggregator driver as it uses
64 bit ops

Nicolas Frayer (2):
  irqchip: Kconfig: module build support for the TI interrupt router
    driver
  irqchip: Kconfig: Added module build support for the TI interrupt
    aggregator

 arch/arm64/Kconfig.platforms | 2 --
 drivers/irqchip/Kconfig      | 8 +++++---
 2 files changed, 5 insertions(+), 5 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH v2 1/2] irqchip: Kconfig: module build support for the TI interrupt router driver
  2022-12-22 19:31 [PATCH v2 0/2] irqchip: Kconfig: Add module support for TI inta/intr Nicolas Frayer
@ 2022-12-22 19:32 ` Nicolas Frayer
  2022-12-22 19:32 ` [PATCH v2 2/2] irqchip: Kconfig: Added module build support for the TI interrupt aggregator Nicolas Frayer
  1 sibling, 0 replies; 3+ messages in thread
From: Nicolas Frayer @ 2022-12-22 19:32 UTC (permalink / raw)
  To: nm, kristo, ssantosh, tglx, maz, linux-arm-kernel, linux-kernel,
	linux-omap
  Cc: khilman, glaroque, mkorpershoek, nfrayer

Added module build support in Kconfig for the TI SCI interrupt router
driver

Signed-off-by: Nicolas Frayer <nfrayer@baylibre.com>
---
 arch/arm64/Kconfig.platforms | 1 -
 drivers/irqchip/Kconfig      | 3 ++-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index d1970adf80ab3..6ede8e105af52 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -128,7 +128,6 @@ config ARCH_K3
 	select SOC_TI
 	select TI_MESSAGE_MANAGER
 	select TI_SCI_PROTOCOL
-	select TI_SCI_INTR_IRQCHIP
 	select TI_SCI_INTA_IRQCHIP
 	select TI_K3_SOCINFO
 	help
diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
index caa952c40ff92..e773357e4ab03 100644
--- a/drivers/irqchip/Kconfig
+++ b/drivers/irqchip/Kconfig
@@ -506,9 +506,10 @@ config LS1X_IRQ
 	  Support for the Loongson-1 platform Interrupt Controller.
 
 config TI_SCI_INTR_IRQCHIP
-	bool
+	tristate "TI SCI INTR Interrupt Controller"
 	depends on TI_SCI_PROTOCOL
 	select IRQ_DOMAIN_HIERARCHY
+	default ARCH_K3
 	help
 	  This enables the irqchip driver support for K3 Interrupt router
 	  over TI System Control Interface available on some new TI's SoCs.
-- 
2.25.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH v2 2/2] irqchip: Kconfig: Added module build support for the TI interrupt aggregator
  2022-12-22 19:31 [PATCH v2 0/2] irqchip: Kconfig: Add module support for TI inta/intr Nicolas Frayer
  2022-12-22 19:32 ` [PATCH v2 1/2] irqchip: Kconfig: module build support for the TI interrupt router driver Nicolas Frayer
@ 2022-12-22 19:32 ` Nicolas Frayer
  1 sibling, 0 replies; 3+ messages in thread
From: Nicolas Frayer @ 2022-12-22 19:32 UTC (permalink / raw)
  To: nm, kristo, ssantosh, tglx, maz, linux-arm-kernel, linux-kernel,
	linux-omap
  Cc: khilman, glaroque, mkorpershoek, nfrayer

Added module build support in Kconfig for the TI SCI interrupt aggregator
driver. The driver's default build is built-in and it also depends on
ARCH_K3 as the driver uses some 64 bit ops and should only be built
for 64 bit platforms.

Signed-off-by: Nicolas Frayer <nfrayer@baylibre.com>
---
 arch/arm64/Kconfig.platforms | 1 -
 drivers/irqchip/Kconfig      | 5 +++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index 6ede8e105af52..26cd5021d265c 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -128,7 +128,6 @@ config ARCH_K3
 	select SOC_TI
 	select TI_MESSAGE_MANAGER
 	select TI_SCI_PROTOCOL
-	select TI_SCI_INTA_IRQCHIP
 	select TI_K3_SOCINFO
 	help
 	  This enables support for Texas Instruments' K3 multicore SoC
diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
index e773357e4ab03..77be35559168e 100644
--- a/drivers/irqchip/Kconfig
+++ b/drivers/irqchip/Kconfig
@@ -517,10 +517,11 @@ config TI_SCI_INTR_IRQCHIP
 	  TI System Controller, say Y here. Otherwise, say N.
 
 config TI_SCI_INTA_IRQCHIP
-	bool
-	depends on TI_SCI_PROTOCOL
+	tristate "TI SCI INTA Interrupt Controller"
+	depends on ARCH_K3 && TI_SCI_PROTOCOL
 	select IRQ_DOMAIN_HIERARCHY
 	select TI_SCI_INTA_MSI_DOMAIN
+	default ARCH_K3
 	help
 	  This enables the irqchip driver support for K3 Interrupt aggregator
 	  over TI System Control Interface available on some new TI's SoCs.
-- 
2.25.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-12-22 19:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-22 19:31 [PATCH v2 0/2] irqchip: Kconfig: Add module support for TI inta/intr Nicolas Frayer
2022-12-22 19:32 ` [PATCH v2 1/2] irqchip: Kconfig: module build support for the TI interrupt router driver Nicolas Frayer
2022-12-22 19:32 ` [PATCH v2 2/2] irqchip: Kconfig: Added module build support for the TI interrupt aggregator Nicolas Frayer

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®