From: Guillaume La Roque <glaroque@baylibre.com>
To: Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will@kernel.org>,
Thomas Gleixner <tglx@linutronix.de>, Nishanth Menon <nm@ti.com>,
Tero Kristo <kristo@kernel.org>,
Santosh Shilimkar <ssantosh@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, vishalm@ti.com,
Mattijs Korpershoek <mkorpershoek@baylibre.com>,
Kevin Hilman <khilman@baylibre.com>,
Guillaume La Roque <glaroque@baylibre.com>,
Nicolas Frayer <nfrayer@baylibre.com>
Subject: [PATCH v4 2/2] irqchip/ti-sci-inta : Add module build support
Date: Tue, 24 Dec 2024 20:36:43 +0100 [thread overview]
Message-ID: <20241224-timodules-v4-2-c5e010f58e2c@baylibre.com> (raw)
In-Reply-To: <20241224-timodules-v4-0-c5e010f58e2c@baylibre.com>
From: Nicolas Frayer <nfrayer@baylibre.com>
Add 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.
Add MODULE_LICENSE which is mandatory to support module build.
Signed-off-by: Nicolas Frayer <nfrayer@baylibre.com>
Signed-off-by: Guillaume La Roque <glaroque@baylibre.com>
---
arch/arm64/Kconfig.platforms | 1 -
drivers/irqchip/Kconfig | 3 ++-
drivers/irqchip/irq-ti-sci-inta.c | 1 +
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index eda592ac9c8d..02007256709e 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -135,7 +135,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 1099691c45d5..be063bfb50c4 100644
--- a/drivers/irqchip/Kconfig
+++ b/drivers/irqchip/Kconfig
@@ -545,8 +545,9 @@ config TI_SCI_INTR_IRQCHIP
TI System Controller, say Y here. Otherwise, say N.
config TI_SCI_INTA_IRQCHIP
- bool
+ tristate "TI SCI INTA Interrupt Controller"
depends on TI_SCI_PROTOCOL
+ depends on ARCH_K3 || (COMPILE_TEST && ARM64)
select IRQ_DOMAIN_HIERARCHY
select TI_SCI_INTA_MSI_DOMAIN
help
diff --git a/drivers/irqchip/irq-ti-sci-inta.c b/drivers/irqchip/irq-ti-sci-inta.c
index b83f5cbab123..a887efba262c 100644
--- a/drivers/irqchip/irq-ti-sci-inta.c
+++ b/drivers/irqchip/irq-ti-sci-inta.c
@@ -743,3 +743,4 @@ module_platform_driver(ti_sci_inta_irq_domain_driver);
MODULE_AUTHOR("Lokesh Vutla <lokeshvutla@ti.com>");
MODULE_DESCRIPTION("K3 Interrupt Aggregator driver over TI SCI protocol");
+MODULE_LICENSE("GPL");
--
2.34.1
next prev parent reply other threads:[~2024-12-24 19:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-24 19:36 [PATCH v4 0/2] irqchip: Kconfig: Add module support for TI inta/intr Guillaume La Roque
2024-12-24 19:36 ` [PATCH v4 1/2] irqchip/ti-sci-intr: add module build support Guillaume La Roque
2025-01-15 9:16 ` [tip: irq/core] irqchip/ti-sci-intr: Add " tip-bot2 for Nicolas Frayer
2024-12-24 19:36 ` Guillaume La Roque [this message]
2025-01-15 9:16 ` [tip: irq/core] irqchip/ti-sci-inta : " tip-bot2 for Nicolas Frayer
2025-01-02 12:44 ` [PATCH v4 0/2] irqchip: Kconfig: Add module support for TI inta/intr Nishanth Menon
2025-01-02 13:09 ` Marc Zyngier
2025-01-02 13:26 ` Nishanth Menon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241224-timodules-v4-2-c5e010f58e2c@baylibre.com \
--to=glaroque@baylibre.com \
--cc=catalin.marinas@arm.com \
--cc=khilman@baylibre.com \
--cc=kristo@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mkorpershoek@baylibre.com \
--cc=nfrayer@baylibre.com \
--cc=nm@ti.com \
--cc=ssantosh@kernel.org \
--cc=tglx@linutronix.de \
--cc=vishalm@ti.com \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.