Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1401643lqh; Mon, 6 May 2024 06:51:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUxNrLcMQNZY2sjeZz2PzL1CpITc+f91iU+cBiYIFfDVRsjUFu4oPp6XmPyET+jRs3n1HjGYx8nAiuhIfWeowkiOvLhvvZwphEeCNmQJg== X-Google-Smtp-Source: AGHT+IFNY3VBTswdoGe0mwj6sFLR6qznm6Mz14QdZzeWJ4xUXYMUuA9kOGYO9iAY+ubopoSj2XTj X-Received: by 2002:a05:6a20:258c:b0:1a9:ffa0:d007 with SMTP id k12-20020a056a20258c00b001a9ffa0d007mr10293579pzd.58.1715003487896; Mon, 06 May 2024 06:51:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715003487; cv=pass; d=google.com; s=arc-20160816; b=gS54OdSXTBrB2K04xynUJV4OoGaRGRoorjYssEEAcom5uNinEefsikLCP+sOOtkFuf 4HaepFMD3b0tq0BFuLb4PV1yLAJY2HWKj82UuI3doz5VyaSRULYsADBG6bYn992GOZie nvD1w5hhdBhMebKNmIQi19PJkVNB4SL23zoj6mzR499DHxQbK1EbdOCexwVaIIeU4kw2 jfsDTALH7difSDvCWwupErwHiun91jPAmil6NOCGeVm7g9pPYYtB5cI/xE0OQsKE8XI1 3s9GZyrL0RVpNu6jEW5RGF/LHgsi5B+F9HzdUdDq9bQnstnQfvT2ddPfoD2B2CFVYjeT /yFA== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=D+XLcTHc8uVuTOX4CdOp7NlzrTvpnKAR5oH6n07VwUE=; fh=7rEvtSmLg39CCxMmHeT5LsZoFajiFcmbHnOJ6XUgqZE=; b=qigJqfuSoVZh3mxupTk87z7ixd/cWMKTFAb+t1hEDXfWrARDuhb189wNuy16QTebcB H+pU42QofZcuuNNsiYZ1gmuxH0zXJaiaHWuqfkAj5swZ2F1D3NnPPqQDVz66TtLJMzOY 6Zesph0V6SpGNhbSPDJzLeVaN+5WCX/cAQRBiZeg5BQUPpZWjlJA72JAj2mdY7kLoApK Y/8WKf6gDO7of5NUIQs9xNcX/orzpt+lhxgxwiyR9MGahxUYDpDNJvwV83ajwI6CzA70 K5mdCbzg5fErJ7P+S1loBgLhkhZuqgzUWFBfugLNMm3wUWwbIpOmiG8Gm9+PfpjXHik7 oPwA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=ZHZDAfwR; 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-169889-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169889-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 sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id k207-20020a6284d8000000b006f4417b0bb0si7961128pfd.247.2024.05.06.06.51.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 06:51:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169889-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=ZHZDAfwR; 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-169889-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169889-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 231F9B26132 for ; Mon, 6 May 2024 13:35:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D759B7A15D; Mon, 6 May 2024 13:34:34 +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="ZHZDAfwR" Received: from mx08-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 7A34D79B84 for ; Mon, 6 May 2024 13:34:32 +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=1715002474; cv=none; b=C4iM5ttLNTzOCKNKR7W3/UwvjrgnbnDoBs21e9NKnbKvbNjb0lhxmkcq2jxbV0XYUydyZrN6LDIMcPqiXirZamU7Z2hr2GDUmxvbQdRGPZHUsjonf+JKROKFC0V+NvsMrvZrRl/TR+Agw3HGFyJfjSutREQGZawxv0bg6srJOEs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715002474; c=relaxed/simple; bh=tiu9+K7gENDqNros5yNfr9VkYrDwk85C+2yO3//s+LI=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=qX6bBNvVeXWZUHAUOHBPMFC481xaymDGAi8uUFV9w+lsMxFEMbdRLwcIxDuQLGmEIv2qBbADuReXgjOm+a3qOmEv4wHqFRtP6XwtHYN5EphszxfKk0vYpOYydF7p69pR3UQDKzlPK/h+/x0We1ZVyTdMwk9bZHdYOMOnIjFYd3M= 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=ZHZDAfwR; 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 (m0369457.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 446CRWH9030757; Mon, 6 May 2024 15:33:47 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=selector1; bh=D+XLcTH c8uVuTOX4CdOp7NlzrTvpnKAR5oH6n07VwUE=; b=ZHZDAfwRi8GrWIlOhyMVNZw FOtew/DOxQxtW3riarKA9QSlhAO3C3In6fga+eZudDQm/dgi5s3tZQEnbGG2oj4B vh//3eCz+ZPnNGpQw6zKKxWybiqpSJ1ya4m54F1vH19dqFYZLIABDg4dq3qcltuE 0AgmYfKNzBGs1XW/dOVR8bZ4p5LzRhP1UNMRSWBqMaPVEpiBowNBWjdMZde6DE8/ QraCUnXO+lISo08XVciqgvVHpEaySjVHE3G+R0UUg5EYlvbbqqeqPIW6HwUShzvS FvodCVB0ZuP/H+xNUzEHTcCyn2jXRdLYpiUb+5AJnqjmJtdekBeI2TjhcbS9pKA= = 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 3xwyyk5cb5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 06 May 2024 15:33:47 +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 9C62640050; Mon, 6 May 2024 15:33:41 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id ED14C21ADBC; Mon, 6 May 2024 15:33:06 +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; Mon, 6 May 2024 15:33:06 +0200 From: Antonio Borneo To: Russell King , Maxime Coquelin , Alexandre Torgue , Catalin Marinas , Will Deacon , Thomas Gleixner CC: Antonio Borneo , , , Subject: [PATCH 0/8] irqchip/stm32-exti: split MCU and MPU code, allow module build Date: Mon, 6 May 2024 15:32:48 +0200 Message-ID: <20240506133256.948712-1-antonio.borneo@foss.st.com> X-Mailer: git-send-email 2.34.1 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.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-06_08,2024-05-06_02,2023-05-22_02 The file 'irq-stm32-exti.c' contains two drivers: - EXTI for ARMv7m STM32 MCUs; - EXTI for ARMv7a & ARMv8a STM32MPxxx MPUs. The current arrangement causes some issue: - the growing code for MPUs uses precious space on memory constraint MCUs devices; - the driver for MPU cannot be built as module; - there are risks to break one of the two drivers while working on the other. Since there are only 4 minor functions shared among the two drivers: - stm32_exti_set_type(); - stm32_chip_resume(); - stm32_chip_suspend(); - stm32_exti_chip_init(); this series splits the file in two independent files, each containing a single driver. To guarantee bisect-ability, the series first introduces some hook in Kconfig, then splits the file and at the end enables module build on MPU while cleaning-up Kconfig. The symbols in the MPU file are renamed to better match the new name of the driver. The patches are created with 'git format-patch -C' to correctly show the deleted parts and the tiny modifications between the original monolithic file and the two extracted ones. The series is rebased on irq/core branch of tip as it depends on a previous series already queued for v6.10 merge window. Antonio Borneo (8): irqchip/stm32-exti: add CONFIG_STM32MP_EXTI ARM: stm32: use different EXTI driver on ARMv7m and ARMv7a arm64: Kconfig: select STM32MP_EXTI on STM32 platforms irqchip/stm32-exti: split MCU and MPU code irqchip/stm32mp-exti: rename internal symbols irqchip/stm32mp-exti: allow build as module ARM: stm32: allow build irq-stm32mp-exti driver as module arm64: Kconfig: allow build irq-stm32mp-exti driver as module arch/arm/mach-stm32/Kconfig | 2 +- arch/arm64/Kconfig.platforms | 1 - drivers/irqchip/Kconfig | 9 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-stm32-exti.c | 670 +------------------------- drivers/irqchip/irq-stm32mp-exti.c | 737 +++++++++++++++++++++++++++++ 6 files changed, 752 insertions(+), 668 deletions(-) create mode 100644 drivers/irqchip/irq-stm32mp-exti.c base-commit: 382d2ffe86efb1e2fa803d2cf17e5bfc34e574f3 -- 2.34.1