From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4E31AD1AD5E for ; Wed, 16 Oct 2024 13:50:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:CC:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ZaxyANJDQa6m8eaPm4fCn2VbOVR+pL6P58PiLp2TIUU=; b=B2wvdk58zQB2hLR23VaMHBhZ+O /NY2l2QbE+m1nHfvfN96fpXXjoDupDnqM3Mt4UyS4ivVPUM1Ua0gVnXJLNnrZQZwCUrEe1FoHDcv8 T29e3CuFE2TjxIAYU5WK7zQ8v2+5fmlm3tgxtvRxc8zwUhKIiTZOyL6UBa2rVBPmVhqaQ2L2pEiCH KgJ/AgWEnky1Aeh9+97XKsPcU6toDbAbHNQQSw03LmLiAZWrKxFk7LGjmxBu1oP/1nxp0Uflv2jqf CINRQKwcZbJjVjTv3WsPkjwJnyy9Uf83XopYwwaLAPZ0tdWdKvFTdcu0h02C9K5ZrajYJcghInTGm P8KmYSNg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t14Pa-0000000BzS7-2593; Wed, 16 Oct 2024 13:50:02 +0000 Received: from lelv0142.ext.ti.com ([198.47.23.249]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t14O4-0000000BzAF-22A0 for linux-arm-kernel@lists.infradead.org; Wed, 16 Oct 2024 13:48:29 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 49GDm4S2075985; Wed, 16 Oct 2024 08:48:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1729086484; bh=ZaxyANJDQa6m8eaPm4fCn2VbOVR+pL6P58PiLp2TIUU=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=SZ+KDOEYczXaIw1Cqz+BMbbYH0jl/tly/kcR/ywbS7n+mXiQ6VLvoPbfAZss5lPk8 leUMs73H1o/ih+ONOIjges2FQRNxaZ9iEtOssFFbHuEFCVqurJIflUOLIqT5k/PzJJ oKFOpOHxVWpbHqgee0DvDcUoLxTrJKQgYMTn7TBQ= Received: from DFLE101.ent.ti.com (dfle101.ent.ti.com [10.64.6.22]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 49GDm3EU058042 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 16 Oct 2024 08:48:04 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 16 Oct 2024 08:48:03 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 16 Oct 2024 08:48:03 -0500 Received: from [10.249.42.149] ([10.249.42.149]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 49GDm2WM038218; Wed, 16 Oct 2024 08:48:02 -0500 Message-ID: <0c2ae869-d04f-481d-b770-ec54f4d2e658@ti.com> Date: Wed, 16 Oct 2024 08:48:02 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 2/2] irqchip: Kconfig: Added module build support for the TI interrupt aggregator To: Guillaume La Roque , Catalin Marinas , Will Deacon , Thomas Gleixner , Nishanth Menon , Tero Kristo , Santosh Shilimkar CC: , , , Mattijs Korpershoek , Kevin Hilman , Nicolas Frayer References: <20241016-timodules-v3-0-fa71091ade98@baylibre.com> <20241016-timodules-v3-2-fa71091ade98@baylibre.com> Content-Language: en-US From: Andrew Davis In-Reply-To: <20241016-timodules-v3-2-fa71091ade98@baylibre.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241016_064828_652782_9EFDF7BA X-CRM114-Status: GOOD ( 20.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 10/16/24 4:41 AM, Guillaume La Roque wrote: > From: Nicolas Frayer > > 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 > Signed-off-by: Guillaume La Roque > --- > arch/arm64/Kconfig.platforms | 1 - > drivers/irqchip/Kconfig | 5 +++-- > drivers/irqchip/irq-ti-sci-inta.c | 1 + > 3 files changed, 4 insertions(+), 3 deletions(-) > > diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms > index 393845a3ae5c..9dea47decfbd 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 a958731404e9..9646322345e4 100644 > --- a/drivers/irqchip/Kconfig > +++ b/drivers/irqchip/Kconfig > @@ -544,10 +544,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 You can still compile test, just gate it on 64BIT (or ARM64 if those 64bit ops are only available on ARM64). depends on ARCH_K3 || (COMPILE_TEST && ARM64) BTW, the last time this was posted the feedback was that if this was compiled as a module we might have issues with dependent drivers not having this IRQ ready as it may be loaded later. I think this would only cause probe defers if the drivers are well behaving, but something to double check. Andrew > 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. > 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 "); > MODULE_DESCRIPTION("K3 Interrupt Aggregator driver over TI SCI protocol"); > +MODULE_LICENSE("GPL"); >