From patchwork Thu Dec 22 19:32:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Frayer X-Patchwork-Id: 13080261 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 C5105C001B2 for ; Thu, 22 Dec 2022 19:34:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zRPaWfkQEADACe3i3Kia3TJVPn1pEDrXdOZ85dDLP4E=; b=QzsHG1+4R0JmH4 XQna7vnYfXC1rg6R98u4q8/yboBH0ohRd2aauhJTqMy5UauRWQbcTN60bLIndQ0pHCQ3o9ATdX8p8 eh0jMpllGTuL/DxkG266DT8DvS2MRXJAsaUm4TlHY45Eb3Lv9/gLbNsKqF2iwLrdvChuVaUJypQGO pP6ADfep0j4T3Dn7xIzMBArjIAe5JpBXc3oTrXoVHBht7rdIT7nmZj3vqAM3f2nbIjxbiiJN6kuwa ENr10nQifdV9iZ4y0ORsweywF3P4W/sgE26vHE81/0kXXOuSlSDMdFzABAni9jlAXP/2nTfkmlYj4 9PSZuwBaH3DpDRn4Dw0A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p8RJN-00Fwcp-Rx; Thu, 22 Dec 2022 19:33:02 +0000 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p8RIf-00FwDV-4A for linux-arm-kernel@lists.infradead.org; Thu, 22 Dec 2022 19:32:18 +0000 Received: by mail-wm1-x333.google.com with SMTP id ay2-20020a05600c1e0200b003d22e3e796dso2075829wmb.0 for ; Thu, 22 Dec 2022 11:32:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4LScnR97JjHMi4S1rF8CGEtPw9AqlLZZAUF0xcigJ2I=; b=VOPpCFKfnE12/TkToUE9fIL0WOTRG16ycf3CM6VFmJh4s26PjrNzbmzZE0kzOfrYYj yIDf7jDjcFV+Os8K/Tkh7qztm33U+TSVBsDHEDVGsEq+CP0rDptsJ5tgvmEhxnYf0WcC fOPxqfYv5y+2RuHqvSOyxkyW5UyadIrsuQwidJ4ieTGAqnalUAOzOA/hJYIS0OUC+ooa z3x3Ppu5hmBJ+YwHwIpxJbXMroRBmxcPLd0RyCTYG7U8LUB36OPPHXBFgKEatlR20Yai IqZwt8Jjii5q3MUqx03odk3RBybMHfzQfFw20CrrrplKB5N80Dai+Igu5kTFXe7cW0V2 G0Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4LScnR97JjHMi4S1rF8CGEtPw9AqlLZZAUF0xcigJ2I=; b=jxHYqoQl9u9XsDcykPDymFXbZheWCd6Ctu7i/q97qtRq0ycd+RcB8Apt5f+3izF8zQ UdIv4yPmq7dq2OkSMs1HN6avn0l0YIyUZ3MrpBu8giK7mAzkLV0jI30FVaOPoOgrFfia KJmk+xnrA1J6+L9wytmdRuDi9grHrGRuOf+P/Y51X/T1NBt37vOaE6CoZva3El3Lum1j v7VLLBXfG+BV2fh63g2FNQRekAifiN3ThICNBOLrhM5Fc7HS6j1o2YlrDQVzHdK775lG 2WtRAqqvoBQO4WAFTeZ/mitUw82+p1cblXzzpd7Tnxa48rFINz38deKHbl05E0Gv8NoV 3yug== X-Gm-Message-State: AFqh2krOA7g31nsfefYxPmvkFbZD04HrhiKsqtTtR2LrVdNx0t2ycMpr tg9mBYMunsBBp7wz07bUJGaGOA== X-Google-Smtp-Source: AMrXdXs//QvSBgKwiNaaIxucSfyQbLplDgLAg/P/UCwJ4cV+D6eU3RGZIoMHvno8bcsC8acx/76JIA== X-Received: by 2002:a05:600c:3495:b0:3c6:e62e:2e74 with SMTP id a21-20020a05600c349500b003c6e62e2e74mr4973525wmq.15.1671737533249; Thu, 22 Dec 2022 11:32:13 -0800 (PST) Received: from nicolas-Precision-3551.home ([2001:861:5180:dcc0:f5e4:afec:1c65:21c3]) by smtp.gmail.com with ESMTPSA id p12-20020a05600c468c00b003cf57329221sm4446729wmo.14.2022.12.22.11.32.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Dec 2022 11:32:12 -0800 (PST) From: Nicolas Frayer To: nm@ti.com, kristo@kernel.org, ssantosh@kernel.org, tglx@linutronix.de, maz@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Cc: khilman@baylibre.com, glaroque@baylibre.com, mkorpershoek@baylibre.com, nfrayer@baylibre.com Subject: [PATCH v2 1/2] irqchip: Kconfig: module build support for the TI interrupt router driver Date: Thu, 22 Dec 2022 20:32:00 +0100 Message-Id: <20221222193201.1552711-2-nfrayer@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221222193201.1552711-1-nfrayer@baylibre.com> References: <20221222193201.1552711-1-nfrayer@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221222_113217_200639_77576518 X-CRM114-Status: GOOD ( 12.27 ) 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 Added module build support in Kconfig for the TI SCI interrupt router driver Signed-off-by: Nicolas Frayer --- 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. From patchwork Thu Dec 22 19:32:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Frayer X-Patchwork-Id: 13080262 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 5087BC4332F for ; Thu, 22 Dec 2022 19:34:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=auw7WYt5vOPqlDuDa8bdyaxzLDoUc3+BpH9tvnFkc1o=; b=XsRhUI4/4WMPU/ 8nm/ZPNGto1QYpTZjhCUMqrDZMpQwHmr0vG73H3Y/0aHno3fT3yAT/tCEfKmAh3gxbwZaG6PUZTzE 0R7yQCo6tseA1C7L++eIsly+fm0OYwfnHYpw670dHjDu29QTPxd5DmoYB/bzU3aYsAdaRNWQJ7IvW 6ryG2E60mKWz7oJf0RynCRu1k4S9Qg//aIlxZMUm2ZkQ72XZzC1pmwN4v3l4v1w2jMKlpF3CTwdSP Ei90MGM5rhfM+7II7HAt2+scM5AW3UHw8mJXJfn3W93VDZQzBJab0ls04Klum8z525mXWUmHQH1Q9 c4lD7FTFh2wLChC5wP3w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p8RJW-00FwfG-Up; Thu, 22 Dec 2022 19:33:11 +0000 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p8RIf-00FwE4-CM for linux-arm-kernel@lists.infradead.org; Thu, 22 Dec 2022 19:32:18 +0000 Received: by mail-wm1-x32b.google.com with SMTP id ja17so2167090wmb.3 for ; Thu, 22 Dec 2022 11:32:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zNJxRZfkj51KwDKq1a1M1MYd6okplAxevNZpSh9Sp8E=; b=M1INwOzOMu2/uO3wMa+PG1XV1IhWC/mSobIA2M20QAYfcNnT/bVoNTwXA99NjcqIzd af3gJ/smTHfLFB5LCHkTKvga9EnW5p8xsh4jK6dhTqKe+pfu+cqCnbth/fxNWN9AcsWG RnjpBEHD0cOWOtAHRKkEb5M13JyTj8Ol4BOk0/bQRoEfY3y6JQzJyEXiv6MGffefbSrm MumvBCraSE1kwfveS7v0Ag6ODRcVdOigk3B4A+ipBe8cJ+q7GM6nht6TVljoJs9S4uyy dPMVZqbHaZOwjuM1oXIxqsFU/3H/UeDduRLZUBLqqeoY4RTgwenwm4eXXHU3j1e6bZ5N 3JQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zNJxRZfkj51KwDKq1a1M1MYd6okplAxevNZpSh9Sp8E=; b=h3c774Z/018GflB1jCZOALs/b02ZnfyEggMkBczNHoZTvzVobS8srNgtBx0Z6Ze4so R2Uzrq98/5J8cqCEFpXOrxs2vLKM2f4L8iF618yaQIHWbdZIMH/1EftkgERRJjOg7JWy XdrWBBvFqNUBTJFp8YWLvFaqUQ4d+B2zxqi3Gsap1HNIUDM4TeetmiiKkDqOYJWrtnl2 Hd5ZVmKUW6nBsPRK6KJ6Y1RJl/OWluCPaclOHrl7IWmTKTkd/bggdaycb1u80CuAdw3a Gjbx+8U2o6ySVLReTA3iuderHizqKZRND2PxZyim3FpL3LJqtiiMMvmhyggKZZm2pf3E lGnA== X-Gm-Message-State: AFqh2kr8EgsSOlsiLWL/hClsaavzryl7WwLqz+vZdREk9KglSHeuXVEi 7blYd6xVWKc8YbZmcPmt21defA== X-Google-Smtp-Source: AMrXdXsiq5a3VIXTM1M/LZ9ItZoVVu6V8Rubs2+q5FtHOS2UV1GRCroRnLcceee6vs8Fyql/dNL3uA== X-Received: by 2002:a05:600c:a4f:b0:3d3:5c35:8919 with SMTP id c15-20020a05600c0a4f00b003d35c358919mr5316137wmq.30.1671737534058; Thu, 22 Dec 2022 11:32:14 -0800 (PST) Received: from nicolas-Precision-3551.home ([2001:861:5180:dcc0:f5e4:afec:1c65:21c3]) by smtp.gmail.com with ESMTPSA id p12-20020a05600c468c00b003cf57329221sm4446729wmo.14.2022.12.22.11.32.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Dec 2022 11:32:13 -0800 (PST) From: Nicolas Frayer To: nm@ti.com, kristo@kernel.org, ssantosh@kernel.org, tglx@linutronix.de, maz@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Cc: khilman@baylibre.com, glaroque@baylibre.com, mkorpershoek@baylibre.com, nfrayer@baylibre.com Subject: [PATCH v2 2/2] irqchip: Kconfig: Added module build support for the TI interrupt aggregator Date: Thu, 22 Dec 2022 20:32:01 +0100 Message-Id: <20221222193201.1552711-3-nfrayer@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221222193201.1552711-1-nfrayer@baylibre.com> References: <20221222193201.1552711-1-nfrayer@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221222_113217_440596_7EA45919 X-CRM114-Status: GOOD ( 13.68 ) 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 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 --- 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.