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=1796414373; b=oToop7efkJtgCQhA7RT8Gibicrkot6k3rFfqMZnpQCV7E4/xX+elPOvewpR3g1aJ0vGH pnAHMU/9gStdC3qi+CQMJiOyNhzoG4ElCyLcqkYW9mKvpNgvCGvuxEhc/bYEiqPM8a8qy XK4mQGv6xTvRZBWJJBH5p4rHEgr92D4WMIX8BgSIrrDktW1MgZ1UncwofzZx8KPFBRxak /k6GFbvII/yW2Vj/hK1UNo9qvUj3gkojvpFFuRP7csgbIIeZBnrFzD1fn4MS7AfybofNP Qaebty1n0DFnt/lHNlpPJsqjIIHq/VMc9K3frPWKotl9MyYIdtGRA/hbhoDDLIb7NZg== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796414373; 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=9l4aoXyKj0PLInEP4v+J4lUHz9OLYFk6bZQloWEFZas=; b=ONwIPoG+ITxh3NPLlRobRJLKPhX++lhmJwHCBR2WZJhmiG5I6q4e1NUZRoqw/DixTrIt CRqrE+pTz1WNOMlClryFjFLkYea9CGbdTJHJELLTPxYICdB0MJGg9yv2FG/yooQv8T76R MRSB+nhUWn3RXLJGS9kWEEuLtzzVI8nqC7pfxvXZeuDtpuIZ7VhGL0FKKR4iUuNcQtKie GuHFUJNAD4aYos84zDW+Au+PWkkj9cCltQFtW1UNmRNRnxFmlhuol11XxPPnqppsj0efJ zFdeFZbku4txDgKGlkKkyDJ9XwRbihfNQo0cy3udeMoMVTgI9pVzgkUc7WkzWgj4U+A== 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=cj6Mbcbo; 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 5529A606A336; Fri, 4 Dec 2026 19:59:33 +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=cj6Mbcbo 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=1796414373; b=paDqa5nG44lu3aNHKiteE6mu2x1dsp3Zmj3NGmoG89167mpsn2PUnxkOQTeg+7DJTZZL ELR9TWb6fe2meDxVWlplj3xVXrw6MSz7puaR4emtJ9fE0D4BfGbX6SaBLXXHA+iHBQhuU a4Q1AqjoTfcLSbZHD7QVpl/oAFl/q198Kg5xljk09Bv+nfVCEfI84tXgdXlCqnOIlatkY 2iD6ey12IbxcgmHU+lFjDuaB+AZ7tJDYNMUsYqCGwZUO7UtGPA3VBNV8z3FWlwtNPdj9i pQAPEQlZnJDhjeTGoDUFxNcjEuDTT1U7Sagxx9D0xK3E5p5APRiIZOinaiPfCoK60QA== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1796414373; 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=9l4aoXyKj0PLInEP4v+J4lUHz9OLYFk6bZQloWEFZas=; b=AM2Xtvu0u6i4jMbwDvVb3tM8GlOKemq9zTXUDZJge2PHmph5GlPvNAbn8/Y2tVSp9OFb MnudbiJDLU9Mc5/BPHSz5sUcUASJus3R7gRl144z/6/JbrcoDefAyzn/BzWUKTIIKnNIJ QcxrxDBzWrgnCJHI44hAl2ZTRSZvFSN9vUBMrCSNqJoX/vIdfWQdEL+LU/BFaVKp9joUG JHXp3irogXSnWM6TQmsX8HtGYFsLeyDJrNqoywvFjD7MmjClinfSSzINDjkHWQpVEIRvT MkN8ncKA/rR6Xf9Fi1jKmVb1JyZxq38MNcEAhtr5/yTFeKgtwboeZzeuI7LBdjb+rwA== 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 B1CCC1F00936; Fri, 4 Dec 2026 19:59:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796414373; bh=9l4aoXyKj0PLInEP4v+J4lUHz9OLYFk6bZQloWEFZas=; h=From:Subject:Date:To:Cc:Reply-To; b=cj6Mbcbo2pmnwLLIlvuwBACUDqq/+yHCqQlAooe2lznTvJ2hlUq31/NULnDPf47A2 zdwA3gogF+U4kYZbD3TNrzumyFcmaL1TFE/jILshUkhOjC6EIP38F8iNYKBaueDORZ hjQJ5Aleh5ngDF6mIqUCEnPkjECuXd92B2bvyi9+9miauclzkNwzljzCQ0pesh9V0p KlWMbMY5BinMexwiESJzVou3BAI45pzlX1LWuKUJhnZCRs+Brw3E+XCzE1YXidLjvJ 82mxJiVCX82QUNqzoNZSvRZtmHY5bhVEEBWTjfDL4V1/W6iYDZbrnFbE/4IHAdwexn svOtdMZeDcLzQ== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 0D8525000D; Fri, 4 Dec 2026 19:59:31 +0000 (UTC) From: Fil Dunsky via B4 Relay Subject: [PATCH v7 0/3] irqchip: Add Cortina Systems CS75xx peripheral interrupt controller Date: Fri, 04 Dec 2026 22:59:29 +0300 Message-Id: <20261204-cs75xx-intc-v7-0-c5e6e23a1a8c@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/13NQQ6CMBCF4auYrq2ZVqZFV97DuCjDVGsUDEWCM dzdAgvF5Uvm++ctIjeBo9iv3qLhLsRQV2nY9UrQxVVnlqFMW2jQRoFCSdFi38tQtSSLTOscFFm HpUji0bAP/VQ7nuYdn8WVqR0T48UlxLZuXtO7Lhvv5rJSdlHuMgkSnLG53yKj3x7OdxduG6rvY ix3+GM1LC0m63XBFgl5Z+nfmq/VoJbWJFtQCS4H50ujf+0wDB+ESmdBMAEAAA== 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.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796414369; l=5139; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=cKdOZnInNMFiCzeL5imV7zfjeLp65PA4+2cAG7Jm4wQ=; b=ehPeOs6s+ONMlfbWNKQ/AR0Ha7sRvkVF6qsnUmVwJsIwnj5KvDTdWQ1rt6sEEIAk92K4s94Zk 6kT6Fwby9ElB7kffiQkiENu12o+F0gHiJ8ZyJLWgwaWxQtTvreYygi5 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 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 | 133 +++++++++++++++++++++ include/linux/irqdomain.h | 7 ++ kernel/irq/irqdomain.c | 3 + 6 files changed, 213 insertions(+) --- base-commit: d4673c92ff7f50ef7de22c887f0909b837c2a34a change-id: 20261015-cs75xx-intc-b422801c7a5d Best regards, -- Fil Dunsky