Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2232125/?format=api
{ "id": 2232125, "url": "http://patchwork.ozlabs.org/api/patches/2232125/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/patch/CAAMcf8C_A9dJ_v4QRKtb9eGNOpJ7BZNOGsFP4i2WFOZxOVBPnQ@mail.gmail.com/", "project": { "id": 42, "url": "http://patchwork.ozlabs.org/api/projects/42/?format=api", "name": "Linux GPIO development", "link_name": "linux-gpio", "list_id": "linux-gpio.vger.kernel.org", "list_email": "linux-gpio@vger.kernel.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<CAAMcf8C_A9dJ_v4QRKtb9eGNOpJ7BZNOGsFP4i2WFOZxOVBPnQ@mail.gmail.com>", "list_archive_url": null, "date": "2026-05-02T21:52:00", "name": "gpio-mt7621 unroutable IRQs to bank0", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "7d6fa893bbafed33f67739286edfce75eda32a2a", "submitter": { "id": 66975, "url": "http://patchwork.ozlabs.org/api/people/66975/?format=api", "name": "Vicente Bergas", "email": "vicencb@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-gpio/patch/CAAMcf8C_A9dJ_v4QRKtb9eGNOpJ7BZNOGsFP4i2WFOZxOVBPnQ@mail.gmail.com/mbox/", "series": [ { "id": 502552, "url": "http://patchwork.ozlabs.org/api/series/502552/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/list/?series=502552", "date": "2026-05-02T21:52:00", "name": "gpio-mt7621 unroutable IRQs to bank0", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/502552/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2232125/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2232125/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-gpio+bounces-35988-incoming=patchwork.ozlabs.org@vger.kernel.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-gpio@vger.kernel.org" ], "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=D/fYaeLq;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-gpio+bounces-35988-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=\"D/fYaeLq\"", "smtp.subspace.kernel.org;\n arc=pass smtp.client-ip=209.85.222.41", "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=gmail.com" ], "Received": [ "from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g7M836mr5z1yJV\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 03 May 2026 07:52:19 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id CAC7F30088B8\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 2 May 2026 21:52:16 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 1A80C2FF176;\n\tSat, 2 May 2026 21:52:14 +0000 (UTC)", "from mail-ua1-f41.google.com (mail-ua1-f41.google.com\n [209.85.222.41])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 8D94720010A\n\tfor <linux-gpio@vger.kernel.org>; Sat, 2 May 2026 21:52:12 +0000 (UTC)", "by mail-ua1-f41.google.com with SMTP id\n a1e0cc1a2514c-956849ae1efso880014241.2\n for <linux-gpio@vger.kernel.org>;\n Sat, 02 May 2026 14:52:12 -0700 (PDT)" ], "ARC-Seal": [ "i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777758733; cv=pass;\n b=HzkGwFwximqtx3bzjjy1PAJ4Urtpp6S6oREO/TaZNw5O60MwKJSffn3ysUDPkVD+NsSgnWf8oooAn8WD9HwLF9giV6TfoYe5tCH0nzO2C5maZ9drbX1M4h+O+W9rnJqLUoy0SnXEsTwhW2p7XiPjNOoS1ZX5YjCI2qfZiOg8EMA=", "i=1; a=rsa-sha256; t=1777758731; cv=none;\n d=google.com; s=arc-20240605;\n b=Gnyaak+sBwLG2S7YY5yke7EX/vVJ7mBPLBFk/taQxuTosH+FokWYhQd70ciCS9Nmxq\n bkBphmw/QxlhESjioVhxScXMxSrfZm+5WyGEs5eEGKewu5HXT4L6PU7uGzw76sbHlL2x\n OivQxJhzWXYSn5/wMtrRQKJ+K5BsJA1Qfln0MWXRaF7KyZ+zdliAokbCctdXcJCdq496\n TfOxrIHXci/vqrp6m1F30PH22Lil1BEsBXTin4cf8xhP4CSpDwKAhmzQ5g51w7lRLAKz\n 2R9pT54pCnUI6CVngQXcOKH0GvTCr5YDnoZDun8IyIGlUgzuo8tj+sPCjAzqadJo9u9x\n Qx5g==" ], "ARC-Message-Signature": [ "i=2; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777758733; c=relaxed/simple;\n\tbh=LqQtj6QggZSNGk9hzIxmtPC+2GmjdVQKRjPTyze2yP4=;\n\th=MIME-Version:From:Date:Message-ID:Subject:To:Cc:Content-Type;\n b=p0gONPggdN1Iwauulk4bFTtO3ewpo2Q/Hj93n2mK/dKWthvuEQu5A9E9vq+b1ELQRnBmQxIR3e5OkfYUCC9B669RQSGKfJV6ezuU/fMaZyQ7KtTCmAJXEYkzNVGCjLhyUNYZU3a7GbAjMtavJDj2Hwhqa/btWUbaE0tvjQzqS8E=", "i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n h=cc:to:subject:message-id:date:from:mime-version:dkim-signature;\n bh=sPZjd2zvcbyFlXlX1KLQTQuzLyVUuoHKA2p+mdP4d9c=;\n fh=zz9ESERmLYyazJqlO51AXvF2AL8bRU9IgsRVe/5gkkI=;\n b=jV+NA6xHA3YPnfF4tDtQRAj5ZunZo6UnTwgkhjr9OuthSXyTuz+NDOsNcpRdL6g8EH\n pIWOWWio2AJcpz16MbRa4Jb2M3EIRgNBupBnHFC9e7Cj4O/0g+T5aNkl6sSv+J1pPPfz\n bhCftfWmaoct5l+asHaMVCZC49pre5RQN7Fvn+ySEdV1s14C+NpW1qLYInl794TOqfGk\n pyv6gVUokdljq2OQoz2J9lZyN7L8CzWAfSegyDLOGXMPlvh3RHcn5IKVy9p4mEcYmw6R\n X8HO6vZvdJvB9Gfm6C5dbowrCNk+E1mPmUq/hpqNPBQ+CAYR32PDEe44bagR0QN8cHNL\n OmTw==;\n darn=vger.kernel.org" ], "ARC-Authentication-Results": [ "i=2; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com;\n spf=pass smtp.mailfrom=gmail.com;\n dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=D/fYaeLq; arc=pass smtp.client-ip=209.85.222.41", "i=1; mx.google.com; arc=none" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1777758731; x=1778363531;\n darn=vger.kernel.org;\n h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject\n :date:message-id:reply-to;\n bh=sPZjd2zvcbyFlXlX1KLQTQuzLyVUuoHKA2p+mdP4d9c=;\n b=D/fYaeLquJGFPvzpZLgHWsitLupWkUeKA0WG+Sev3zRPmWVBlyyIDkRR36Bn+99cQG\n vp6TxpUANP4j4t3u6kFIX8MCVdatWGx2GdHQmXj9Tzb7PFsq8+S3WaAbNoC5y+ECmJVG\n GEbON8OKpnDTHOcS/BGLh3rAMh++F5ty2VAivLcLntIsm47B79nJ9UljqxNlECEEqUeM\n tG9TCA7lSud0m6+FhI8kY0/zRYqmoSetRyRhzcW/iUweXVhd1aXXWwPoBJqvCcHNQu55\n prBs09e7lCLQSXiHrm62Vc8gHayfLnh7Z7HnjK3Sc2P2FrTKS/4BqDsaOD/VUXDMMi1e\n hfug==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777758731; x=1778363531;\n h=cc:to:subject:message-id:date:from:mime-version:x-gm-gg\n :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;\n bh=sPZjd2zvcbyFlXlX1KLQTQuzLyVUuoHKA2p+mdP4d9c=;\n b=C368SFUPHZ+iPfGBxSuc0MS3IoqtgDuURQBegitIxY0c/lqtuTwNtk+OkWZUQssTNT\n O+WIzOYr3Yfb09yh/la9oWpVuDxNB5R7FVFgzgBH8XErz3XsN69emZucoGdbBv6y9GDB\n jzg4vluGs+NbQDSYZ9gdiQvxlHCl10DgjgBcxCE63oPmqxRxJg4nwkMCpFk+mjcJHkdR\n bA/pmMY3/y2smmXeWrMqXJcQGo430rCelA38nI9Tg8mXJWPSRCKagwtY/3CrWdfCLwBf\n n/J093DVDVvYlVoqifZAqfovdnlcYE88F0Xi+1TLA0rGkjA3eNjlfmm8jm+qCOy2o3Xe\n gw6g==", "X-Forwarded-Encrypted": "i=1;\n AFNElJ8o0gDtW4rQCSOelxwJ5dyRXg49WxrFCUKS5EC0OhW0AShKuiOpLkl9521L+S7a53LRos/A3bcPI6vS@vger.kernel.org", "X-Gm-Message-State": "AOJu0YxoEx+urBShBO0uEuL45JtAA+Ivv0RCXQAhufOMaNwOQBvm5C3H\n\tl4yPpyIP0wo765BbZfrQgcn89CL/It0rEwTPR3bh5794CDzUYkLhmKCnPCwoox0utiZ6R06RdGW\n\t7EWyXa466jfpQ5d/h5eAYt33RfWRnwOFkxJds", "X-Gm-Gg": "AeBDiet4l9o53jZPey97gWlvtTOoGESbEdR6Rq4sFNt0Uk7JSQajKOKHEB/dkRn62Uh\n\t+ZQPEyGubRKAgpRcLbdtrDfjn3doiVBu5gvZQ2DzQwiLnLzady3X0/m89e/4FlPmrVKRiTXEEhS\n\tYJBVMH3aY4Cgflm75GLeC5ASjKs3FdNgjt5woaBSqjEHPWdxuAF/5WQqQEO0zFwufGHoHRJTLrB\n\tbbm+Tfk0MlYIbGg6etvOaZvP5nA8GDCW5vXJ7QWZDiypMgUuDuUFtzhRzG+m0vjDdwIQw7wS+Yn\n\taaWITwarFEQGkXGDTV0AspEyF04Rb7rFEhSb65M9xdplPU3D", "X-Received": "by 2002:a05:6102:4b07:b0:608:cdd9:21ad with SMTP id\n ada2fe7eead31-62d84a5e573mr2023470137.5.1777758731352; Sat, 02 May 2026\n 14:52:11 -0700 (PDT)", "Precedence": "bulk", "X-Mailing-List": "linux-gpio@vger.kernel.org", "List-Id": "<linux-gpio.vger.kernel.org>", "List-Subscribe": "<mailto:linux-gpio+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-gpio+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "From": "Vicente Bergas <vicencb@gmail.com>", "Date": "Sat, 2 May 2026 23:52:00 +0200", "X-Gm-Features": "AVHnY4LyRBywdXlbR__5FvY6Hmd9edTzaPB4z2QZngbpCQrAUA62aIk0zb2Ffgk", "Message-ID": "\n <CAAMcf8C_A9dJ_v4QRKtb9eGNOpJ7BZNOGsFP4i2WFOZxOVBPnQ@mail.gmail.com>", "Subject": "gpio-mt7621 unroutable IRQs to bank0", "To": "Linus Walleij <linus.walleij@linaro.org>,\n\tSergio Paracuellos <sergio.paracuellos@gmail.com>,\n Bartosz Golaszewski <brgl@kernel.org>,\n\tThomas Gleixner <tglx@kernel.org>, Grant Likely <grant.likely@secretlab.ca>,\n\tAnna-Maria Behnsen <anna-maria@linutronix.de>", "Cc": "Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,\n linux-gpio@vger.kernel.org", "Content-Type": "text/plain; charset=\"UTF-8\"" }, "content": "Hi,\nGrant Likely noticed a potential issue and\ndocumented it as a comment in kernel/irq/irqdomain.c:\n * We might want to match the legacy controller last since\n * it might potentially be set to match all interrupts in\n * the absence of a device node. This isn't a problem so far\n * yet though...\n\nThere is a bug that is affecting me and\nit is triggered by the forseen potential issue.\n\ndrivers/gpio/gpio-mt7621.c is registering 96 GPIOs,\nall of them capable of generating IRQs.\nBut the `struct irq_chip` can only handle 32 IRQs,\nso, 3 banks are instantiated.\n\nThe DTS file specifies the interrupt for one device as\n interrupt-parent = <&gpio>;\n interrupts = <0 IRQ_TYPE_EDGE_FALLING>;\nwhich should be routed to Bank0 GPIO0 but\nit is instead routed to Bank2. This is the bug.\n\nThe call trace that leads to the problem is:\n drivers/i2c/i2c-core-base.c:i2c_device_probe\n drivers/base/property.c:fwnode_irq_get\n drivers/of/irq.c:of_irq_get\n include/linux/irqdomain.h:irq_find_host\n include/linux/irqdomain.h:irq_find_matching_host\n include/linux/irqdomain.h:irq_find_matching_fwnode\n kernel/irq/irqdomain.c:irq_find_matching_fwspec\n\nAs a way to prove that this is indeed the problem,\nthe following workaround makes it work.\nIt just inverts the sorting order of all matches,\nso it picks Bank0 instead of Bank2.\n\n\nFor a bit more context, the platform used is an mt7628an.\nThe problematic device is:\n&i2c {\n pinctrl-names = \"default\";\n pinctrl-0 = <&i2c_pins>;\n status = \"okay\";\n ft6336u: touchscreen@38 {\n compatible = \"focaltech,ft6236\";\n reg = <0x38>;\n interrupt-parent = <&gpio>;\n interrupts = <0 IRQ_TYPE_EDGE_FALLING>;\n reset-gpios = <&gpio 2 GPIO_ACTIVE_LOW>;\n };\n};\n\nPlease, can you fix this bug?\n\nI'll will be able to test, but because my platform is only supported\nafter applying openwrt patches, i can only test on v6.18.y.\n\nRegards,\n Vicente.", "diff": "--- a/kernel/irq/irqdomain.c\n+++ b/kernel/irq/irqdomain.c\n@@ -538,7 +538,6 @@ irq_find_matching_fwspec\n\n if (rc) {\n found = h;\n- break;\n }\n }\n mutex_unlock(&irq_domain_mutex);\n", "prefixes": [] }