get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.2/patches/2235019/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2235019,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2235019/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260508-regmap-gpio-sparse-fixed-dir-v2-2-deee84df3027@kernel.org/",
    "project": {
        "id": 42,
        "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20260508-regmap-gpio-sparse-fixed-dir-v2-2-deee84df3027@kernel.org>",
    "list_archive_url": null,
    "date": "2026-05-08T12:51:27",
    "name": "[v2,2/2] gpio: regmap: Don't set a fixed direction line",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "110657850c67eb74aff4156fcc5d3af61a267f1f",
    "submitter": {
        "id": 92050,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/92050/?format=api",
        "name": "Linus Walleij",
        "email": "linusw@kernel.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260508-regmap-gpio-sparse-fixed-dir-v2-2-deee84df3027@kernel.org/mbox/",
    "series": [
        {
            "id": 503387,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/503387/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/list/?series=503387",
            "date": "2026-05-08T12:51:25",
            "name": "Improvement spotted during patch review.",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/503387/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2235019/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2235019/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-gpio+bounces-36463-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=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=TNuM9Of1;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-gpio+bounces-36463-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=\"TNuM9Of1\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"
        ],
        "Received": [
            "from sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::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 4gBpyG5xKGz1yCg\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 08 May 2026 22:55:50 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id 7C0A830B7A21\n\tfor <incoming@patchwork.ozlabs.org>; Fri,  8 May 2026 12:51:38 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 127103E0C6F;\n\tFri,  8 May 2026 12:51:35 +0000 (UTC)",
            "from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org\n [10.30.226.201])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id C8B6D3E0C4B;\n\tFri,  8 May 2026 12:51:34 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id 15E60C2BCC7;\n\tFri,  8 May 2026 12:51:32 +0000 (UTC)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1778244694; cv=none;\n b=WWYvCnpq/0MrFNUg8Z/mRKWvBZo3qdq80BGPs4vrGGlnfFKhDAgRRUvlkl0rT6wYYiJWF2iEJLG4FH4XE0maYzc979wa6XztLYMPRMfWdqXSQcKx3sKg7gJtPw+bwri+4uPUGWRcNOJKo5R/eiq9dWHKMtUGey/9sCDdnv/rRAo=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1778244694; c=relaxed/simple;\n\tbh=1VxQGneYMsXJIX225dqHkzOd38aTPB8bOOneM5Nayi0=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=kuWFPZz3g5+sU3+0FIprDjhLwbtRgoU9uugdOwDY4XkWRjRjXG1IsQA6Idsr2aV4052oRPQdGhagPBclL29kT9f7hJ8nE6y1VPMh4RhrB9egiYlQYQkqie66fNjj94F2Yy3xjPq1v+9I6YrXZXvhD9jR4npZ2fywkV9BMYE9CQs=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=TNuM9Of1; arc=none smtp.client-ip=10.30.226.201",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1778244694;\n\tbh=1VxQGneYMsXJIX225dqHkzOd38aTPB8bOOneM5Nayi0=;\n\th=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n\tb=TNuM9Of1kHTccbRfVLYhTkeB0VeVGgtE64fqo8yacSSWyfNw6OyRGO1X/n77go8QT\n\t QS1LjouH/lvB9GHTKTHzFSRLmJxDibJUwpXnEszhJKcztZDfAA6KqNKGsNChYl0NOI\n\t 8CZgDUW1XqQfbshtgcNdWtK5pLQjDbGN9qBvOoo9uifC4JnRJbOraXc9bpiz2hGMv+\n\t GdvpqIldj360fiGk0zI+cIVP1XIvKPLBi4p1JIxwqf14+vwbuW3MLvHr3lz9BLl2OF\n\t sNx8dWo/086iQd+LG4BskF/zJevKVESIYMLYD8NWHOl5cWu4d/ArkUl1I02IlpKPNY\n\t EkEgYmVmDIutQ==",
        "From": "Linus Walleij <linusw@kernel.org>",
        "Date": "Fri, 08 May 2026 14:51:27 +0200",
        "Subject": "[PATCH v2 2/2] gpio: regmap: Don't set a fixed direction line",
        "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",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "\n <20260508-regmap-gpio-sparse-fixed-dir-v2-2-deee84df3027@kernel.org>",
        "References": "\n <20260508-regmap-gpio-sparse-fixed-dir-v2-0-deee84df3027@kernel.org>",
        "In-Reply-To": "\n <20260508-regmap-gpio-sparse-fixed-dir-v2-0-deee84df3027@kernel.org>",
        "To": "Michael Walle <mwalle@kernel.org>,\n Bartosz Golaszewski <brgl@kernel.org>",
        "Cc": "linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org,\n Linus Walleij <linusw@kernel.org>, Sashiko <sashiko-bot@kernel.org>",
        "X-Mailer": "b4 0.15.2"
    },
    "content": "If a GPIO line has a fixed direction, there is no point in\ntrying to set the direction.\n\nThis didn't happen much before because what we supported was\nall lines input or output and then the implementer would\nprobably not specify the direction registers, but with\nsparse fixed direction we can have a mixture so let's take\nthis into account.\n\nSuggested-by: Sashiko <sashiko-bot@kernel.org>\nLink: https://sashiko.dev/#/patchset/20260507-regmap-gpio-sparse-fixed-dir-v1-1-a2e5855e2701%40kernel.org\nSigned-off-by: Linus Walleij <linusw@kernel.org>\n---\n drivers/gpio/gpio-regmap.c | 3 +++\n 1 file changed, 3 insertions(+)",
    "diff": "diff --git a/drivers/gpio/gpio-regmap.c b/drivers/gpio/gpio-regmap.c\nindex f45a432e8ebe..52a67dea8107 100644\n--- a/drivers/gpio/gpio-regmap.c\n+++ b/drivers/gpio/gpio-regmap.c\n@@ -203,6 +203,9 @@ static int gpio_regmap_set_direction(struct gpio_chip *chip,\n \tunsigned int base, val, reg, mask;\n \tint invert, ret;\n \n+\tif (gpio_regmap_fixed_direction(gpio, offset))\n+\t\treturn 0;\n+\n \tif (gpio->reg_dir_out_base) {\n \t\tbase = gpio_regmap_addr(gpio->reg_dir_out_base);\n \t\tinvert = 0;\n",
    "prefixes": [
        "v2",
        "2/2"
    ]
}