From patchwork Wed Oct 16 09:41:09 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: 13838065 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 14450D1AD39 for ; Wed, 16 Oct 2024 09:48:21 +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=f7lfgvZIb1YenbVpidy5yYoPzUObJFuBK63jpMu7KcE=; b=QBf8YXZQxst8G3EIEWupNqLFV2 sREIvj45YCeF9Bgy7hcAJ7reJAVPtXXn43zImKh7F220ZZuX93lZ7m9FzMrfkd09JtbONuB8/eB0u swAKfuUwq3M83W4ZKstF3VTNmIroUcAAgYsXwnx8SvnhmZZXc6ElkcM4pgNnTgN4xVyPfAzVtcfKR gcTTAoPRS1Yf2injehWkb5U/hHr9vsJ1ylkM2YcLjT+hNZCsQc6b07Ydb6INSeiwZoElymtjYZiwK RbUQXLI4z4iTK1qOnjG4fVLt3w+ZmtecNsuGyYEoGfnjnzXjXaGASmCOKDTZX2CioXCMYfbPd7uhG uBnmO/hA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t10dU-0000000BIRU-39Tl; Wed, 16 Oct 2024 09:48:08 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t10X5-0000000BGsS-0Zkl for linux-arm-kernel@lists.infradead.org; Wed, 16 Oct 2024 09:41:32 +0000 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-4311ae6426aso43503005e9.2 for ; Wed, 16 Oct 2024 02:41:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1729071689; x=1729676489; 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=f7lfgvZIb1YenbVpidy5yYoPzUObJFuBK63jpMu7KcE=; b=r1VHoARDY0XdYqVe306ziP1YwjUTeFHI/3jqdZuZ495wVC2/tGQ2KdQHTAx1RIh4OV NU8eqaKf/fAJAfI3OZ/HJhq+S1FRlNLmX5M6hQSTy2sleN9JpNVAPLbPqfgOIj1XKJiC p5vMqIwmmmfRdZB9IfSuvMFV7fxRQIccBRXs8DMUgaQIT9s0F9U+74bXmIIo35diTKgv ToX7JGWPtPkzYb/qLhtKv7kXb1iQImLxq3jrWiahswuYg1YDwP1q3qM4gy/aKRfWy9nS Vy4sg946YNWUfUReHOEhIAV84gMRU/F4QtXPYlvpID0JQP7nbx8GzPa3dNivxThvKAh1 7GZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729071689; x=1729676489; 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=f7lfgvZIb1YenbVpidy5yYoPzUObJFuBK63jpMu7KcE=; b=e7pzi6cGw9GdzkPCUO6pcPfVQu50RNRh4ZsuRgABswhcOlLG6uUbKsjc2UMOXWdeJf mt4Zrnm2nZAWRF9U6e3FDpxPGq+t6JRbAYX0fojoopkglyPjnVZ8F3MTYbwG/Me9hysj Wy4Ha+QsuG712gwNI2RaggnE1k3wv37h40d2S5I6rwXoVIpcPwSZXla6CyxWbaeLz3U4 u3QqdOy0PB2GYbh2rDMWprlZbrfBr4ho8+rcEip5Ry654vKgxyoqnavHK7aDBJM6/VAf 4dT/IunNmtQpDnyh5jDzDnqBcfN7a+lBwboHlQ1ZKeown5tvlXLG13Anw3szaFWnCiLb Glrw== X-Gm-Message-State: AOJu0YwZm0coTBTuMAWYu+3aSLlIVGChWheBGKxwIMR+nX5ooq475qFT 3v+jO3TIut40xmx/zeBU5lAzgMa0222ziU41wxELLaq9lEVQ35RDXMUCeJ7k840= X-Google-Smtp-Source: AGHT+IHwFqtmKM8A0lRCwrdLulv4mevKVbMVD+7jZsLahbKkNMAMM/eN9mnfnqFlfRXJnm/u2LsGLA== X-Received: by 2002:a05:600c:4514:b0:426:60b8:d8ba with SMTP id 5b1f17b1804b1-4314a362525mr25267905e9.28.1729071688994; Wed, 16 Oct 2024 02:41:28 -0700 (PDT) Received: from [127.0.1.1] ([2a05:6e02:10a5:e010:472a:1760:2b0d:11e9]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4313f56998fsm43654735e9.16.2024.10.16.02.41.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2024 02:41:28 -0700 (PDT) From: Guillaume La Roque Date: Wed, 16 Oct 2024 11:41:09 +0200 Subject: [PATCH v3 1/2] irqchip: Kconfig: module build support for the TI interrupt router driver MIME-Version: 1.0 Message-Id: <20241016-timodules-v3-1-fa71091ade98@baylibre.com> References: <20241016-timodules-v3-0-fa71091ade98@baylibre.com> In-Reply-To: <20241016-timodules-v3-0-fa71091ade98@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-20241016_024131_223152_8480C10C X-CRM114-Status: GOOD ( 13.13 ) 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 Added module build support in Kconfig for the TI SCI interrupt router driver 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 6c6d11536b42..393845a3ae5c 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 341cd9ca5a05..a958731404e9 100644 --- a/drivers/irqchip/Kconfig +++ b/drivers/irqchip/Kconfig @@ -533,9 +533,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. 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");