From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5A39C212B39 for ; Tue, 24 Dec 2024 19:37:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735069028; cv=none; b=BMQpYS6rA76rr9R/LUb3XzDJ8mwyuUSg6xzefgClkMn5cHkTtZ2UzyDIYJg8OcmSl9j39I5k7mJx4KtJsYCx8Rv9Ds7D33R3xK6YNt+nlve/CVbjqOA2dpQzC2d+fYcqBjjdt2NESuHoyF8eJkCInYFHLLiCFUiG0ADpVhnERJo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735069028; c=relaxed/simple; bh=IBHOQU/KecjDsRIkwLdadDmPeo0GJ8n+tuxPZZul3LE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=t6fJpqISjTWETqKTLAVxZqrKC5VujB5Oly2qhLGewrPp9M4RLM2MaL2wK+0+BHMyLAn4manBc5qjF725Ll7YEclNTH2gtpvDijrTGeu7aSJtwLvh/rV77/f0tRgQvT8GlzM9oPiRbBZmw4TjCgOiJcVQH/CzDNxPtuG+6J22dSM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=p9gwFaEn; arc=none smtp.client-ip=209.85.128.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="p9gwFaEn" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-43618283d48so39592905e9.1 for ; Tue, 24 Dec 2024 11:37:06 -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=vger.kernel.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=p9gwFaEn6rnxBEjLMP2RWuM/lv9kEsT27tXBw1xdf2fWDrWduR8muaqUT1EhuFq0XW PpWsMd1OhKv6a9tU7cUlbiE5vTf5/5fq6DrhL7eTAAEBNqp45gWXppF5KuUKwr0mXReC 0l3Ggacdlu3DjC1syIwtlBlhKBfW598M+B3ZI2zWhUX+7/AEi1c9D2eq4pfFUG8gHLiG dVUCsIO1NKZa26tswt8uzrnCjqa8eQcRSu+Eg2pyJC9fAV4Cj0p3BiY1PUM+YrQWFGc4 6Juk7WjlnEtmjqBdz+4sjly4/NhPdkMfcz7Psbl5xm7i2Pgpj8nwntEpomivJFV7a49A kz4w== 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=gXL4UlwlYdzvQyfTvmwRNYW0VFR8sksf5QydkNG71YDMFJbOrPuvTVzVudYQ2nj0nX TucVPSAW3rxRfcShzlqxqz2hji5SdgqkS4mVzgLWMAniUEj3S7Ya/XahtBD6wAmYxZha zHKC2ULg20ktVbCM5sX+gi17KOEAt9lF1PgF4UPTWPN1RblGhVm2Td9ERGnQteSdlECR 2xMhevBMtuOI8t0u/VGwkU7xbdL+FECxglaBTs69NgIkiPHwzBTXwPHPweXCCX+e6sbJ D3A0zCTKTqeyPlAk9NMNxI9+RBzartiG3J6pt+t042f9bGUSUD3Q22HAXxOr99cApnLd /b5Q== X-Forwarded-Encrypted: i=1; AJvYcCW8D0GzrxEsrbTOYO8YLRy9s9NEMd/zI55dSAaEhNF6/HPiHOD1R91YrN2FGZh0uxeE9BMm2+uDITua32I=@vger.kernel.org X-Gm-Message-State: AOJu0Yx6MB2+Qg8NVuj37S+8UuUNtGmbE5hF44IhxHGhKrZrwPQVOCBQ AwF3CUHNexnxY15wdJR8EyINKNU9LEW9kjO9Fuw9nL1CNzNcn9FD5mom7a5sNbY= X-Gm-Gg: ASbGncvGsCf1th9hxQd/y42NUzHBlmM4nGDfMx9cph9MwKjqa0f7d1XARAw0ZIW7Exr ecDOmueni7TF0tHCLHSLDhZs9q4ppHd7GO8vup5mNoQrP56AOJmyUa0sm5t68/6em8qdxV/lQma or9VAroWI1979ae9Do5fzgXTk+FKp2Yw4+so89mDQXONCuZ01Hk55GqV8mUfaF/opVLHRI0n+6j nv5/9wQf0WmDvhJAzA9sbCd3rkwNzKFnIPSW5uyd0Q8ohQAOd+zXbHUsGsj 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 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"); -- 2.34.1