From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796500782; b=ytWngVT1M1s6WqLqITX56pMiQR5/j4U7UnO1kWgODsh42rPaY0f6hM6t+OiSGhZuNA8i II12aBn++mB6jS41VgU3shNcIaCsAYjHq5d+5G5INK+pvGJEpg+jxa1IHXxzSkz1/9Goi a/DJ7P5tDZMbjZifGno006T3mDXQa56APbzQ0ro5a7+L54e/fR0jmZlPJZlFib83X9DoR DJueDyMRoaXaeh7Sr+9AiZzkPgnPLq8PVMjSkvz4w2TsB7fg90QtuEmC0GvsngolU5q5T 43/Yt6TixE5MZpLCzODnK2CdwRZBTLS1UFaewy4IfA2fITT9pxd0LiUL6qARnAS9DyQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796500782; h=Received:DKIM-Signature:Received:From:Subject:Date:Message-Id: MIME-Version:Content-Type:Content-Transfer-Encoding:X-B4-Tracking: X-Change-ID:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key: X-Endpoint-Received:X-Original-From:Reply-To; bh=EVelHPAy6Wi+qP2A1JMIVkVjGpZ3mNf1ZLqSgSmQE+g=; b=eXE9IbFGxsswAkfxr8vehomA4OOYVtUa8OmR6CUYyi+fkW3KvN2eiQn+bAUBF6I3GcQL MNUDkaJi2wYECELz42a5hyJ52vC6KY/+O3rRo/t+hoZTjp0upAtB2J1G7JzcGcHTb0HjL 81QilnTz1K6Jfn8kbG4iiaup2P3O28t9KHHV1mzuyhZignlaSK6TJ/b4YnRsv3NLiiQy1 BmBIlSSN9fbM71HVS63HOIe4jv/IpQCCFPMzoeOpGLDMi2Dfd+w/piqlN1BcLERV+Ak05 IHpJ/w30ees3eVOrJZvgBn3jZDb6Shkx+scO/P+Uy/156eWdu16JnvxS8w+iGFqjpyw== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=DFLFV0wA; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 50B11606A330; Sat, 5 Dec 2026 19:59:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=DFLFV0wA Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1796500782; b=qqRQMVw+Qiaf1fd6d6CCPNuLAY4QXfLx/thWAldlJHT0c/HTRkh81fdvUZ6zOw2hrcdG ggJlvIncl7vtRClBay363MdS2HPco7DLWGjvhMFW7UoNxlpBOOnPPXF2dpqtLHnaDxiH8 KbxYqE/1czgvwOAJUPfix91ufkB7klWtS5trqojC6nlKN4KSFc6fvCuycZOcNOeK9Dgva oeIxreMXyc/dcfORMrxiHjRvjwpbTR+tWwJ3/qYrpD1UXD7JzaTT0XHrcY4JFWyLi7o6t +hqM4qrdo/lWTzEVdOJ7/Z0e7kcVuHJF00+syqSoPhyHxHZq1wuzw/PkXQZv2XVLHIA== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1796500782; h=DKIM-Signature:Received:From:Subject:Date:Message-Id:MIME-Version: Content-Type:Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To: Cc:X-Mailer:X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To; bh=EVelHPAy6Wi+qP2A1JMIVkVjGpZ3mNf1ZLqSgSmQE+g=; b=A1I7aZbcGGn9ten3azXS6v0z/eX/SrLm4BTUAl6iveHoac9Jnz/2VrrrvzCEP8Ih5sB3 NuFvUjBWFLyN/cFqDy/JOvPyM9EwobaGlfGpKFXubdsBduwdL6ZaPjv86cmJGpWPwimjQ ZGLc6sqQN8GGP2wsr3rAmKfgK+h2KWAexB8IP70fP+TjL2mkQ9fNWbxg9o0yBrJplX67u jbfCRjy5X5FvcAtlJrkAYCsx9lFytth6pVjg8mx/RiOItjf+LZDj81F2P0Zp/jIgvNGHO X6Ud2bQ4XKIBNUt8m/n6Euec79U+Rlxu3XY/BmtGKCakJVObzNbq9+T4SDm+S5rpd4A== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 2657E1F0092B; Sat, 5 Dec 2026 19:59:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796500782; bh=EVelHPAy6Wi+qP2A1JMIVkVjGpZ3mNf1ZLqSgSmQE+g=; h=From:Subject:Date:To:Cc:Reply-To; b=DFLFV0wAR772GNG8EdKznS4+fGIRCxy1cfv7jorju7hIajsXrZg+kP/hGZuD8E9EI Luf4G7gWQS4zOHFAFxgCCaletLSFIfjaUEexbrLkNGHgouggWIqS6crOcLM5QedaS2 a5Z8HW21TLnIBWukMJF/svdo26Dxoa2zmFO3OdvnVO+4eci1M4gYOSyqrsJKir4x++ 6piUuzae6Ele4Rdy7IomfjRNvXwwMzEY9M4VpbATUgXzS9NIp1xmn44W+KsvdAubr3 iONwZn1RA5lkvv+9GLdb6U+KTUX+fiySxs87LdfTG2bhBp6DSQAEKkMwE4vVx8DFId fcksC2Pcb9ufA== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 7837050470; Sat, 5 Dec 2026 19:59:40 +0000 (UTC) From: Fil Dunsky via B4 Relay Subject: [PATCH v8 0/3] irqchip: Add Cortina Systems CS75xx peripheral interrupt controller Date: Sat, 05 Dec 2026 22:59:39 +0300 Message-Id: <20261205-cs75xx-intc-v8-0-a8159d212d38@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAAAAAAAC/13NwU7DMBAE0F+pfMZovcnahhP/gTg4m3VrRBMUh yioyr/jtAfqHkeaN3NRWaYkWb0eLmqSJeU0DiX4p4PiUxiOolNfskJAa8CQ5uxoXXUaZtZdi+j BsAvUqyK+J4lpva69f9xy/uk+hed9Ym+cUp7H6fd6t7R777ZsjKuWl1aDhmCdjw0JxebteA7p6 5nHs9qXF7qzCLWlYiN24ohJXhw/WvtvEUxtbbEd9xA8hNhbfLTu3ra1dcWWRyvYBBN89btt2x/ 6PR+UbAEAAA== X-Change-ID: 20261015-cs75xx-intc-b422801c7a5d To: Thomas Gleixner , Radu Rendec , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Fil Dunsky X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796500779; l=5448; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=MEb/7l0sN2/WIvSi+Dzmqe+1S0euBOW53p+4U/FNNTE=; b=HHBvSF/uU2M5MjUD5f2JaW5UAn+H0St6bNgJEAyPGpcrIAk3u3z1iat3IF9Nymzgih4cROOdU V9VcImvUP7UChMCqulv8M4m0iK7SyRSKtXxIvV5H5IISk/Zi6ZOxdnQ X-Developer-Key: i=filipp.dunsky@gmail.com; a=ed25519; pk=JAYP8e2rJ54DHOmhNtXud8rl1igAaAXoOHxtJmVXI1g= X-Endpoint-Received: by B4 Relay for filipp.dunsky@gmail.com/20260930 with auth_id=1085 X-Original-From: Fil Dunsky Reply-To: filipp.dunsky@gmail.com The timers, GPIO banks, I2C, MDIO, SPI and a few other low speed peripherals of the Cortina Systems CS75xx ("Goldengate G2") SoCs share one GIC interrupt. This series adds the binding and a chained driver for the small controller in the peripheral register block that reports the level of these 15 sources and masks them; each source is acknowledged in its peripheral. There is a second status/enable pair right behind it whose purpose I do not know; it is not described. The driver used to be part of a series with the GPIO, I2C and watchdog drivers and the device tree changes. That series is now split per subsystem. The driver depends on OF and HAS_IOMEM, with no dependency on the platform series [1], which is under review separately. The device tree nodes will follow with the other CS75xx dts changes once the platform is merged. There is no public documentation; the register layout comes from the GPL vendor kernels and was checked on a Securifi Almond+ (CS7542), where the GPIO and I2C interrupts of the board are delivered through this controller. The v5 IRQ flags and normal initialization path were checked in RAM with PROVE_LOCKING; MMIO cleanup on initialization failure was reviewed but not fault-injected on the board. [1] https://lore.kernel.org/all/20261122-b4-cs75xx-v9-0-1fc1b90bd097@gmail.com/ --- Changes in v8: - Serialize reads of interrupt status and the mask cache with mask updates. Drop the chip lock before dispatching child IRQs. - Consolidate the driver commit message and group the Link trailers. - Link to v7: https://lore.kernel.org/r/20261204-cs75xx-intc-v7-0-c5e6e23a1a8c@gmail.com Changes in v7: - Provide temporary irqdomain init_data cleared by the core before publication, as suggested by Thomas Gleixner. - Initialize the generic chip in its own callback. Keep parent handler registration in the domain callback. - Cross-compile the changed IRQ core and Cortina driver for ARM. Verify callback ordering and cleanup on a host fixture. - On Securifi Almond+, 16 open/close cycles on the SX8650 input device serviced 160 I2C interrupts through hwirq 11. The count stayed constant in idle and the IRQ error count did not change. - Link to v6: https://lore.kernel.org/r/20261201-cs75xx-intc-v6-0-bcd0a80afd62@gmail.com Changes in v6: - Instantiate the IRQ domain with its generic chip and parent handler initialized before the domain becomes visible (Thomas Gleixner). - Use guard_chained_irq() and combine the two int declarations. - Base the series on tip irq/drivers, which provides the chained IRQ guard. - Cross-compile the corrected driver for ARM. Check the publication order, cleanup and dispatch with a host test using the driver source. - Link to v5: https://patch.msgid.link/20261120-cs75xx-intc-v5-0-f2be75c5e97c@gmail.com Changes in v5: - replace the ARCH_CORTINA_ACCESS || COMPILE_TEST dependency and architecture default with OF, retaining HAS_IOMEM, so the driver can be merged without the platform series - build built-in on ARM and x86-64 with COMPILE_TEST=n and without the platform series; check that OF and MMIO dependencies gate the option - require HAS_IOMEM for COMPILE_TEST builds - mark child interrupts as level-triggered and keep them non-probeable - release the reserved MMIO region on initialization failure - Link to v4: https://patch.msgid.link/20261117-cs75xx-intc-v4-0-0a678f35e5f3@gmail.com Changes in v4: - rebase on v7.4-rc1; update the platform reference to v7 - split out of "Cortina Systems CS75xx: interrupt controller, GPIO, I2C and TWD watchdog" so that each driver can go through its own tree; no longer based on the platform series - declare the variables of the chained handler from the longest to the shortest line - do not wrap lines that fit in 100 columns (Thomas) - collect Reviewed-by tags - Link to v3: https://patch.msgid.link/20261013-b4-cs75xx-s2-v3-0-181bb0d23f4c@gmail.com Changes in v3: - rebase on v6 of the platform series - Link to v2: https://patch.msgid.link/20261013-b4-cs75xx-s2-v2-0-94f8c0a90cda@gmail.com Changes in v2: - rebase on v5 of the platform series - Link to v1: https://patch.msgid.link/20261012-b4-cs75xx-s2-v1-0-8a7641b7b79c@gmail.com To: Thomas Gleixner To: Radu Rendec To: Rob Herring To: Krzysztof Kozlowski To: Conor Dooley Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: devicetree@vger.kernel.org --- Fil Dunsky (3): irqdomain: Pass temporary data to initialization callbacks dt-bindings: interrupt-controller: Add Cortina Systems CS7542 peripheral interrupt controller irqchip: Add Cortina Systems CS75xx peripheral interrupt controller .../interrupt-controller/cortina,cs7542-intc.yaml | 57 +++++++++ drivers/irqchip/Kconfig | 12 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-cs75xx.c | 135 +++++++++++++++++++++ include/linux/irqdomain.h | 7 ++ kernel/irq/irqdomain.c | 3 + 6 files changed, 215 insertions(+) --- base-commit: d4673c92ff7f50ef7de22c887f0909b837c2a34a change-id: 20261015-cs75xx-intc-b422801c7a5d Best regards, -- Fil Dunsky