From patchwork Tue Dec 24 19:36:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume La Roque X-Patchwork-Id: 13920454 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 F2424E77188 for ; Tue, 24 Dec 2024 19:38:32 +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:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=6AhTF16+4GHJDcmn7BNcQctD3GIASyb4i+W0iJLxljo=; b=zZXvLxTo0dSmY3ENKdYqKn0Q4u DdT+jiDyG6zG4qAOEUM4kkkbJxuNrFBJ+5dJR5jhYSqj8IuZK7by7g7KrnzAYHaNawGJ+VT7abIrI hFLnMqddrcRucKP5+Y3nWkuMHXOvyCENgL0PsfL8rjsrRkrnXmoty+bcx/xfI5mAGCjraMvnHnYIc HuHrp5DE74s3bwsvSW9xl2xw9YLdOtplYTxdkE8glIiL9PTWc011urUYhrJPJaDqEDsa6zikGUw4/ bZiw4QxokZN0xpPg5DAvx6zNouLOqfN5QmSOMZBXVZoS75u/YYTigzd9YMiHTaluTkFQ28C6QEImi cLf3Y4fg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tQAjU-0000000Cg5Q-0FNv; Tue, 24 Dec 2024 19:38:20 +0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tQAiH-0000000Cfur-1P4n for linux-arm-kernel@lists.infradead.org; Tue, 24 Dec 2024 19:37:06 +0000 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-385d7f19f20so2550429f8f.1 for ; Tue, 24 Dec 2024 11:37:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1735069023; x=1735673823; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=6AhTF16+4GHJDcmn7BNcQctD3GIASyb4i+W0iJLxljo=; b=Z49O2XUURnErs2dEhRsgmhdKUQaFGwQmgKbKK0Sf3/VkCd5PbNfzG0NDnVV/s/7adJ 0nRVtuT+uWZ5NIaskP+YEvvrauUC1fPWZk4juUYFMx+MCejP0stKJt00e8G+nfQiaqpj 8bEFIdp8cAAC04gOx+a+AmYT5ZEIVjO2JwpIPQSHBPORwU3VZP70guCVf4m89qXFcIjX dp3fftNIEJoy10R/BMWqrb6g/YruoimGX6bGac8pJypL+sQ4U0v7nCJHura6WTQ+QHbS j1KLZW/BxjJffpvGgDwM1bP6CTzg7sghPYoundRugyg81egwA4WGjhEmWDxtQ9F5AdXh D4nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735069023; x=1735673823; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6AhTF16+4GHJDcmn7BNcQctD3GIASyb4i+W0iJLxljo=; b=uqzoRMfg44JljT+NDUAiibLwoWYRP8k+OntIVhRzfVVFX1yINpBF04EHpNR99ERuDh ewhDXY3MSlzIvU16A4HHnSrrfd3ajDusbV/CGHHzyx07ad+xxQ8zD0zdxDdfREUSKl9s +jIyFnl7aLpTfSq9XbhU/kBqX8dnB2yHSAtE95/fz+e4hSSKDvtpqtuLbfHEmRHcgD4+ ptMsF7Cgrggub5j87RmSuRvcQ1PHt2fb/t30pBIocpXlPodHYILUa8LbNAsTkaif6TwI RGpr2gAw7/kxkBcPgUb6T+QsHdfgvfy3DUftXaA4zzSml0I3ZVuNFqjRILOJV5L8O7n/ /mnw== X-Gm-Message-State: AOJu0Yzv7weuXONzKBH1oVOIWCJiQVpxHjAMJgbIr3Qo+oHmydKU/fgG Kq6vPVzhvE1gxgPCTOuwDqxS1TibnrX+fyCw7Cterz/8v7RZh/WQj3VF7JzMTUc= X-Gm-Gg: ASbGnctLx3YeBX27fmaYAfkaU23+gYPdvCebVcsl2HMd4FCrjnBHA91wYwzHTh4ti5Y n5vpU6kTF5t7IsUHT+mJNweBKaR2H9Hps/WtdebUxtfhVdDS62ZK+k805jAy6izEgtMP2Tdu0Pi 2HO5z+MhjTGAjXKiAAIMbTNhwVn0q/oO73vxjaMj1njJgs6EeHlZUvLUd1Qhps9BVnopOltUizH 5Bhaaf8oPowwExSdjN4Dr3Ef2Hd5VmDctZW0qsICHUK6+xrCaiVygu4nvj3 X-Google-Smtp-Source: AGHT+IEt0LJOQXRwGbvhcle4dDMlKJ6orsA2KJRSaLZN9Bii2DRSRLvn0wQ3gl/SeJ8Wdz74pHSfKQ== X-Received: by 2002:a05:6000:1fad:b0:385:ec89:2f07 with SMTP id ffacd0b85a97d-38a222001b1mr12297303f8f.32.1735069023273; Tue, 24 Dec 2024 11:37:03 -0800 (PST) Received: from [127.0.1.1] ([2001:861:d40:ed60:c48a:f4b0:6773:1823]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-436611ea4a7sm175691355e9.3.2024.12.24.11.37.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Dec 2024 11:37:02 -0800 (PST) From: Guillaume La Roque Date: Tue, 24 Dec 2024 20:36:42 +0100 Subject: [PATCH v4 1/2] irqchip/ti-sci-intr: add module build support MIME-Version: 1.0 Message-Id: <20241224-timodules-v4-1-c5e010f58e2c@baylibre.com> References: <20241224-timodules-v4-0-c5e010f58e2c@baylibre.com> In-Reply-To: <20241224-timodules-v4-0-c5e010f58e2c@baylibre.com> To: Catalin Marinas , Will Deacon , Thomas Gleixner , Nishanth Menon , Tero Kristo , Santosh Shilimkar Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, vishalm@ti.com, Mattijs Korpershoek , Kevin Hilman , Guillaume La Roque , Nicolas Frayer X-Mailer: b4 0.14.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241224_113705_384701_B4C518F3 X-CRM114-Status: GOOD ( 13.08 ) 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 From: Nicolas Frayer Add module build support in Kconfig for the TI SCI interrupt router driver.This driver depends on TI sci firmware driver which are aready support module build. Add MODULE_LICENSE which is mandatory to support module build. Signed-off-by: Nicolas Frayer Signed-off-by: Guillaume La Roque --- arch/arm64/Kconfig.platforms | 1 - drivers/irqchip/Kconfig | 3 ++- drivers/irqchip/irq-ti-sci-intr.c | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index 370a9d2b6919..eda592ac9c8d 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_INTR_IRQCHIP select TI_SCI_INTA_IRQCHIP select TI_K3_SOCINFO help diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig index 9bee02db1643..1099691c45d5 100644 --- a/drivers/irqchip/Kconfig +++ b/drivers/irqchip/Kconfig @@ -534,8 +534,9 @@ 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 + depends on ARCH_K3 || COMPILE_TEST select IRQ_DOMAIN_HIERARCHY help This enables the irqchip driver support for K3 Interrupt router diff --git a/drivers/irqchip/irq-ti-sci-intr.c b/drivers/irqchip/irq-ti-sci-intr.c index c027cd9e4a69..b49a73106c69 100644 --- a/drivers/irqchip/irq-ti-sci-intr.c +++ b/drivers/irqchip/irq-ti-sci-intr.c @@ -303,3 +303,4 @@ module_platform_driver(ti_sci_intr_irq_domain_driver); MODULE_AUTHOR("Lokesh Vutla "); MODULE_DESCRIPTION("K3 Interrupt Router driver over TI SCI protocol"); +MODULE_LICENSE("GPL"); From patchwork Tue Dec 24 19:36:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume La Roque X-Patchwork-Id: 13920456 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 13024E77188 for ; Tue, 24 Dec 2024 19:40:56 +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:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=I0XdwFkTByV2oDQUY3rRweCQzX/GHeUCGFeRnZwKKJ8=; b=Dq9i02MxbQzZLmmH7URiYvGCcu XiuIiJrFE6kqEdjFix197VXUgGyL2HIT3PHSx2tq6yymx26r6t1lDf7Z6dKX7qXqcvZYNvaOp0MnY CGQWjSPh0xXpc27AdxsAWOimk3TEvKZSMqVe/Br2VT4EgKftDZdWOgo4rWm7UmZOE3j50+EzX/rbo OGMHSpLIchGNfN1BMUkhIdDyTDv4A3voM8Gaku9oD+9ESk8WzlhmY6GI6j2NYIILMvm5R8JT0ICvV znfPjv1ofsLKggJONMq3rez6EE/H3ftoZ9ejwsr7KrI5KE7LRBsQDPh5LSJNKv3nHPaqoW6wVMa+j xBXrPnHA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tQAln-0000000CgW0-29xY; Tue, 24 Dec 2024 19:40:43 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tQAiI-0000000Cfv6-1fmn for linux-arm-kernel@lists.infradead.org; Tue, 24 Dec 2024 19:37:08 +0000 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-436345cc17bso39665965e9.0 for ; Tue, 24 Dec 2024 11:37:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1735069025; x=1735673825; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=I0XdwFkTByV2oDQUY3rRweCQzX/GHeUCGFeRnZwKKJ8=; b=q3tnMT39FVdlwkgrAimXsfFAPCEJEZD/a9a0Vs07t9v+e4BTPiPRqRvH1v01ITJVBN uM9VFjiKqtnYyDci0Z5BT5/iEEOP8y0k7/69JVi1+bI/msWjytO3+NrKck8UPPici6RW LmcqkYjp6491qgA7q5duPDYtwpz9yDheYpsJMMZCN/6BEtgcWS4c1BMGixbUQ1qx8aX3 8bYtLhVgdWKiUyPHaCi3Ahby6ptVbOibps2z+v4XCVVKL0dBCGS+oeBmXNphvKFRytfR eVTV/TSRdwXaXEFWtup8vCbqaD+dG7WDpqtsekGdhuPCwTN8Buy9TOc/BDRDzjaUjk2h j0Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735069025; x=1735673825; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=I0XdwFkTByV2oDQUY3rRweCQzX/GHeUCGFeRnZwKKJ8=; b=kh8zU1t3akDgAIvU5Xpv59FrLNNrd8U7qvIP0tixyXkveuR9vtTS/CZ4WHCfzF9gqU IhnpKNBvn62w97jPhXq5QMPxr4CWiM75kqeBWbOK5T25vQKaySy2iOemFy1gTi7gsa9U tSFdYW1+kSQJBQ8Zeq7o5/QpahUErIqt57s0AeS5L8qBNXe7QJ30IVIhsxITjLj8B9HB Myr5GXDBnz1AJMIsIAryX85urSP1CHKt3wIWstih+0GxUKC9YxGvCvo7AWJofyA3fqUV GKaH1GYo1glYVc1HQ3RBNrlGY7V82ZLG+TRZp/ufk5D+QkywjQCGwHNHmrfknyMlsgiD lqww== X-Gm-Message-State: AOJu0Yw2sABghu3FRnAsAG6OAbfmc8csvRxMIOvDtlBGjkfQy5ZMHa+i n4BLq0vJNOgnym2zTildH8coTh0M+QRSKsPjKKlzii6tQ6w0mO1V+i5d7fDEfV4= X-Gm-Gg: ASbGncsDlCjV6nz14CzmOiA7/Gv5bxy/c4wARto2S7zKXuIhfAlZdO41qt+3DNLARFM WLO9HXd9/j6g0adV2q8RnMcC+K5PKweIeAJ2RuNL8FbMxl3jhdA39dbXviRS6EYOVFC/YaxTsFZ 8xWdplh139pJ3+Rt1HgPkMR+bfNdFkbTnrAnTv8xFxXy9+Q2J/kXLrEtzCG+ebLI6ZqHFnJNaGy zJDH+6vEF1cReWG+etQWTDeSwiuDnKHQ5lDcSAryjVF1Ry3CSEsAzlSoHpG X-Google-Smtp-Source: AGHT+IFYKl7NiNheeGbdAaZoPe9z+46nf1leFsJn80aeuc4EHABu2cZzKKp3ixc2gFkVwDoOtwxLDQ== X-Received: by 2002:a05:600c:3ca1:b0:434:a350:207c with SMTP id 5b1f17b1804b1-43668b5e22fmr137473665e9.23.1735069024426; Tue, 24 Dec 2024 11:37:04 -0800 (PST) Received: from [127.0.1.1] ([2001:861:d40:ed60:c48a:f4b0:6773:1823]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-436611ea4a7sm175691355e9.3.2024.12.24.11.37.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Dec 2024 11:37:03 -0800 (PST) From: Guillaume La Roque Date: Tue, 24 Dec 2024 20:36:43 +0100 Subject: [PATCH v4 2/2] irqchip/ti-sci-inta : Add module build support MIME-Version: 1.0 Message-Id: <20241224-timodules-v4-2-c5e010f58e2c@baylibre.com> References: <20241224-timodules-v4-0-c5e010f58e2c@baylibre.com> In-Reply-To: <20241224-timodules-v4-0-c5e010f58e2c@baylibre.com> To: Catalin Marinas , Will Deacon , Thomas Gleixner , Nishanth Menon , Tero Kristo , Santosh Shilimkar Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, vishalm@ti.com, Mattijs Korpershoek , Kevin Hilman , Guillaume La Roque , Nicolas Frayer X-Mailer: b4 0.14.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241224_113706_448345_99375781 X-CRM114-Status: GOOD ( 13.59 ) 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 From: Nicolas Frayer 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 Signed-off-by: Guillaume La Roque --- 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 "); MODULE_DESCRIPTION("K3 Interrupt Aggregator driver over TI SCI protocol"); +MODULE_LICENSE("GPL");