Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp507979lqh; Tue, 7 May 2024 06:13:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXueccmm+n5DJYqcytD2f1wzSjKi9MHbEAomSjWy04+dwCN01CxgZpwad5svqHjuZXRGjCFqSTt1ZFNqFi9/yvMiMDXIOl5jyU0DFCqiw== X-Google-Smtp-Source: AGHT+IHPO56SnjC5wSWkejGgNdLPqbOlGUVgDQcb/piUAbHzTLPDn5l1kUAFUVeHC+FuDOxYe06z X-Received: by 2002:a05:6402:190b:b0:572:d536:5d9a with SMTP id e11-20020a056402190b00b00572d5365d9amr12792442edz.23.1715087630795; Tue, 07 May 2024 06:13:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715087630; cv=pass; d=google.com; s=arc-20160816; b=elLw+baY9PPGLFfNxq0HkPdpYIu9Or2Nxiuah2S7Wkj9qHsS4RZ1h9tDcX3C+AjPa7 bYgLJ5tt+FgE07MaFNQWejkzQpMiSoUkl7dM8+mnjGlTemaQe2wufuKvrzQjlAVZpNuP A9dMG3X2jz34PrpwEEGqMy3feMJFJbbJp/EyRdDkO46njUj+i8vGA1ss8M6MvKrazDbd RK+h1I+w2UTNye6oxwD/lotYqUQzg0HlkEqBkKGX7Eqmj7C6AJChT79scBRAkJBb+vV2 4tHhTUpVsCSjmmhhlD33dOtpIxlTNzIDaMxW3dHUlCfEJCwrPO37lyaz/OzyTA7LPY5Z u+DA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=bXxkzTW4QOxeZ1W/fy4oEoPOwCf1R8czlhEkwm8Z9DE=; fh=7rEvtSmLg39CCxMmHeT5LsZoFajiFcmbHnOJ6XUgqZE=; b=D+C9bM6gmTI6OvOQGYZOAK4kRWcd+zNKGnNbtq2IeAqpOJrqwMQLCxr4NPYKo/Ne8b T+BgcUZt5DKFpWcwMP+UDUx+Ob6NcI+Fpgiszvq8G0EClwirg4VMWerAOnKfM2QX+Z6q ZCLRGvzlEYErcs3XNUqfEtvdqr6Sv9Nxnh8UrOgyq8Z6bONwRplhya14rdeDl44UQnHI KDcsUwatvnEwTnKSE4mTjWLLj/cenmqZkVZlsmpdYAfRo4ycRrJi12Xp7TO+4nWmfBnd aFhIvzyD0Qi97Eu6wfjSY5ySBjl/GNS0RT7J1dSVlivUQdWdZQnGC/3yaklEN9IF+wgp 46Kg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=C5VPJi11; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-171356-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171356-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gy5-20020a0564025bc500b0057279f54876si5766603edb.626.2024.05.07.06.13.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 06:13:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171356-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=C5VPJi11; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-171356-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171356-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5CB6E1F27CE6 for ; Tue, 7 May 2024 13:13:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6EB1F15E81C; Tue, 7 May 2024 13:12:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b="C5VPJi11" Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0CECD15E5C8 for ; Tue, 7 May 2024 13:12:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.207.212.93 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715087574; cv=none; b=s7H4nR649ed/CH/4555xXhpPv89fH1t+n5oiyNhZ0QxJYwW2ThBadjG9SqRHOcBQI5g4cJ8yMwS9F0u7rtzHcMo4NpVdf8Md41Txhiw2ZBfvkk8d1Kq4j3TOu22PBXkatdxgmSKV7+YU0JIbFK2otrHwYBBu9gMiowzUnqawwUI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715087574; c=relaxed/simple; bh=7vdmVPd+zYBt+314aPAhN9XuBmdJtkQGrUQZRQbJsto=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=tAevI4hMReRiUu2fU+dAZeNzizJuqKDmrSpI1aexbxuPa/I0jdMy/b1qmoECDPJ6r2oFCqlgWqeRRM6JfI1RxtS/Mhta5AA00lk4128Fozuuc6PuVp3MRXSnfCqNH70z8d/xA29ooBkHJ5LEaKZbYmheZVDHGF4vRwB5Z2mdClc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com; spf=pass smtp.mailfrom=foss.st.com; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b=C5VPJi11; arc=none smtp.client-ip=91.207.212.93 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foss.st.com Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 447C601u005842; Tue, 7 May 2024 15:12:38 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= selector1; bh=bXxkzTW4QOxeZ1W/fy4oEoPOwCf1R8czlhEkwm8Z9DE=; b=C5 VPJi11C/Q8nXrg9onmlvYCzCgQv5/3r8JMEnbeA8naupI3Rp4QHOUGLCq0aMBfBe HFHsxKGQowLq/u8KaXo2KIYOzfcJwnonUOK8nFBkvvZpSLE9hPR2WDJKo7NQOTJ8 PMcKP6iIkmv8jArle5ySTF6xgjA9CfNRpv4SASLa6fceYDrvCIcfhjZdblneNml1 ivr5iXG8TbGXkzH6wXHZ+RVhqhtRde3w0/TV1Gj3ZUEt48p8AB0O2RjEJ2rUjRUC R2TPFYMFKBOWTWaRHuvMK7mmZBjr0CNpEacH5E4Ke2ozwV4xBzPK3Coi5J/0k6Rp Roo8iHMXzU/7CvOwgBnA== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3xwbwckrxn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 07 May 2024 15:12:38 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 17EA240044; Tue, 7 May 2024 15:12:35 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 4144321B53C; Tue, 7 May 2024 15:12:01 +0200 (CEST) Received: from localhost (10.48.87.171) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 7 May 2024 15:12:00 +0200 From: Antonio Borneo To: Russell King , Maxime Coquelin , Alexandre Torgue , Catalin Marinas , Will Deacon , Thomas Gleixner CC: Antonio Borneo , , , Subject: [PATCH v2 6/8] irqchip/stm32mp-exti: allow build as module Date: Tue, 7 May 2024 15:10:49 +0200 Message-ID: <20240507131051.980313-7-antonio.borneo@foss.st.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240507131051.980313-1-antonio.borneo@foss.st.com> References: <20240507131051.980313-1-antonio.borneo@foss.st.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SAFCAS1NODE1.st.com (10.75.90.11) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-07_06,2024-05-06_02,2023-05-22_02 Allow build the driver as a module by adding the necessarily hooks in Kconfig and in the driver's code. Since all the probe dependencies linked to this driver has already been fixed, ignore the no more relevant 'arch_initcall'. Signed-off-by: Antonio Borneo --- drivers/irqchip/Kconfig | 8 ++++++-- drivers/irqchip/irq-stm32mp-exti.c | 15 ++++----------- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig index 486022fb7806e..b804da28dccf5 100644 --- a/drivers/irqchip/Kconfig +++ b/drivers/irqchip/Kconfig @@ -393,9 +393,13 @@ config PARTITION_PERCPU bool config STM32MP_EXTI - bool - select IRQ_DOMAIN + tristate "STM32MP extended interrupts and event controller" + depends on (ARCH_STM32 && !ARM_SINGLE_ARMV7M) || COMPILE_TEST + default y + select IRQ_DOMAIN_HIERARCHY select GENERIC_IRQ_CHIP + help + Support STM32MP EXTI (extended interrupts and event) controller. config STM32_EXTI bool diff --git a/drivers/irqchip/irq-stm32mp-exti.c b/drivers/irqchip/irq-stm32mp-exti.c index 3ceff6d25b702..2958fbcfbda12 100644 --- a/drivers/irqchip/irq-stm32mp-exti.c +++ b/drivers/irqchip/irq-stm32mp-exti.c @@ -730,15 +730,8 @@ static struct platform_driver stm32mp_exti_driver = { }, }; -static int __init stm32mp_exti_arch_init(void) -{ - return platform_driver_register(&stm32mp_exti_driver); -} - -static void __exit stm32mp_exti_arch_exit(void) -{ - return platform_driver_unregister(&stm32mp_exti_driver); -} +module_platform_driver(stm32mp_exti_driver); -arch_initcall(stm32mp_exti_arch_init); -module_exit(stm32mp_exti_arch_exit); +MODULE_AUTHOR("Maxime Coquelin "); +MODULE_DESCRIPTION("STM32MP EXTI driver"); +MODULE_LICENSE("GPL"); -- 2.34.1