get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2234944,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2234944/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260508105448.31799-8-tzungbi@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": "<20260508105448.31799-8-tzungbi@kernel.org>",
    "list_archive_url": null,
    "date": "2026-05-08T10:54:46",
    "name": "[v10,7/9] gpio: Remove unused `chip` and `srcu` in struct gpio_device",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "2c6152fec358e36cceb6c12c1cf470f0ecc35f95",
    "submitter": {
        "id": 83557,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/83557/?format=api",
        "name": "Tzung-Bi Shih",
        "email": "tzungbi@kernel.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260508105448.31799-8-tzungbi@kernel.org/mbox/",
    "series": [
        {
            "id": 503368,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/503368/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/list/?series=503368",
            "date": "2026-05-08T10:54:39",
            "name": "drivers/base: Introduce revocable",
            "version": 10,
            "mbox": "http://patchwork.ozlabs.org/series/503368/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2234944/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2234944/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-gpio+bounces-36451-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=kmBCNkXY;\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-36451-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=\"kmBCNkXY\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"
        ],
        "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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4gBmKS5C6Hz1yCg\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 08 May 2026 20:57:16 +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 2CF7B3074AF4\n\tfor <incoming@patchwork.ozlabs.org>; Fri,  8 May 2026 10:56:01 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 67EE63603DA;\n\tFri,  8 May 2026 10:55:48 +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 21B371D5147;\n\tFri,  8 May 2026 10:55:47 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id 57849C2BCC7;\n\tFri,  8 May 2026 10:55:44 +0000 (UTC)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1778237748; cv=none;\n b=bbswSGRACBFD/ECa2Ha1VOgIqQUl821h6jMFgVo/zsx5WNOpEzAZy98wpgF7cBgzVVit+y3LcuQ7ESVuRd2sX5zNR93xm1g106wL5+ei2/VQ6+Lhdms7ix4YfR+gpNZzDrZCc4Dip6fjXqCIRWR61Y+4pRHMQdstTTVLPtt1/i0=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1778237748; c=relaxed/simple;\n\tbh=Ymg3TCq7DX+ntINjdzsNs6+Gc+nY6vehgZqOomECS9g=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=g4d4uaWqD4eQJnSFno6BZ9Za2m6qUZ5/VLIhHbPuTadrWGpNj5lOvD/uG/2MfAVxP36mrdK562AJyCjmhxdh2J3tVONrWd6BKjffKDxHe8BuvJMl1IiJhW44MZEDRLPoQNnfFM4Hp7BaPI2RWONhEXiTqKZDt+pLiiAR4jUIlRA=",
        "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=kmBCNkXY; 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=1778237747;\n\tbh=Ymg3TCq7DX+ntINjdzsNs6+Gc+nY6vehgZqOomECS9g=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=kmBCNkXYhfH3HcQddaisskqlCblAE6d/+SaJUja2CmGsFEDTOAUNy7jTuE9RSdkiS\n\t 7hsWWTZln8UPuN2gqn4KMij/gktT/XqOK0Qf/SNy6d8RePilCxQq+GYgJTqrAl3qXl\n\t s5vYCrV4FWbQszIZDQGnYs6IbP0tG57KQAvdmHCDoA1iDunRbgGitaFyu0QL1QaNSR\n\t B0UNR+IUeFgDhX5fviT8J/HPDej7ML7omL/KwgtvpmUBINchasfIRKyOd2GwcbYFEk\n\t UXOIqj7iO9fW/DI3ovSTMruIrta4TRbWOildGB8KkJS6qd40zc8OmNSCbQFdZx4o5K\n\t JlnVZDR/oZEBQ==",
        "From": "Tzung-Bi Shih <tzungbi@kernel.org>",
        "To": "Arnd Bergmann <arnd@arndb.de>,\n\tGreg Kroah-Hartman <gregkh@linuxfoundation.org>,\n\tBartosz Golaszewski <brgl@kernel.org>,\n\tLinus Walleij <linusw@kernel.org>",
        "Cc": "Benson Leung <bleung@chromium.org>,\n\ttzungbi@kernel.org,\n\tlinux-kernel@vger.kernel.org,\n\tchrome-platform@lists.linux.dev,\n\tdriver-core@lists.linux.dev,\n\tlinux-doc@vger.kernel.org,\n\tlinux-gpio@vger.kernel.org,\n\t\"Rafael J. Wysocki\" <rafael@kernel.org>,\n\tDanilo Krummrich <dakr@kernel.org>,\n\tJonathan Corbet <corbet@lwn.net>,\n\tShuah Khan <shuah@kernel.org>,\n\tLaurent Pinchart <laurent.pinchart@ideasonboard.com>,\n\tWolfram Sang <wsa+renesas@sang-engineering.com>,\n\tJason Gunthorpe <jgg@nvidia.com>,\n\tJohan Hovold <johan@kernel.org>,\n\t\"Paul E . McKenney\" <paulmck@kernel.org>",
        "Subject": "[PATCH v10 7/9] gpio: Remove unused `chip` and `srcu` in struct\n gpio_device",
        "Date": "Fri,  8 May 2026 18:54:46 +0800",
        "Message-ID": "<20260508105448.31799-8-tzungbi@kernel.org>",
        "X-Mailer": "git-send-email 2.51.0",
        "In-Reply-To": "<20260508105448.31799-1-tzungbi@kernel.org>",
        "References": "<20260508105448.31799-1-tzungbi@kernel.org>",
        "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-Transfer-Encoding": "8bit"
    },
    "content": "`chip` and `srcu` in struct gpio_device are unused as their usages are\nreplaced to use revocable.  Remove them.\n\nSigned-off-by: Tzung-Bi Shih <tzungbi@kernel.org>\n---\nv10:\n- No changes.\n\nv9: https://lore.kernel.org/all/20260427135841.96266-8-tzungbi@kernel.org\n- New to the series.\n- No changes.\n\nv4 - v8:\n- Doesn't exist.\n\nv3: https://lore.kernel.org/all/20260213092958.864411-12-tzungbi@kernel.org\n- No changes.\n\nv2: https://lore.kernel.org/all/20260203061059.975605-12-tzungbi@kernel.org\n- No changes.\n\nv1: https://lore.kernel.org/all/20260116081036.352286-24-tzungbi@kernel.org\n\n---\n drivers/gpio/gpiolib.c | 26 +-------------------------\n drivers/gpio/gpiolib.h |  4 ----\n 2 files changed, 1 insertion(+), 29 deletions(-)",
    "diff": "diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c\nindex d2d9807da98d..5ce12f3b753f 100644\n--- a/drivers/gpio/gpiolib.c\n+++ b/drivers/gpio/gpiolib.c\n@@ -428,8 +428,6 @@ static int gpiochip_get_direction(struct gpio_chip *gc, unsigned int offset)\n {\n \tint ret;\n \n-\tlockdep_assert_held(&gc->gpiodev->srcu);\n-\n \tif (WARN_ON(!gc->get_direction))\n \t\treturn -EOPNOTSUPP;\n \n@@ -879,7 +877,6 @@ static void gpiodev_release(struct device *dev)\n \tida_free(&gpio_ida, gdev->id);\n \tkfree_const(gdev->label);\n \tkfree(gdev->descs);\n-\tcleanup_srcu_struct(&gdev->srcu);\n \tkfree(gdev);\n }\n \n@@ -1154,14 +1151,9 @@ int gpiochip_add_data_with_key(struct gpio_chip *gc, void *data,\n \t\tgoto err_free_gdev;\n \tgdev->id = ret;\n \n-\tret = init_srcu_struct(&gdev->srcu);\n-\tif (ret)\n-\t\tgoto err_free_ida;\n-\trcu_assign_pointer(gdev->chip, gc);\n-\n \tret = init_srcu_struct(&gdev->desc_srcu);\n \tif (ret)\n-\t\tgoto err_cleanup_gdev_srcu;\n+\t\tgoto err_free_ida;\n \n \tret = dev_set_name(&gdev->dev, GPIOCHIP_NAME \"%d\", gdev->id);\n \tif (ret)\n@@ -1355,8 +1347,6 @@ int gpiochip_add_data_with_key(struct gpio_chip *gc, void *data,\n \n err_cleanup_desc_srcu:\n \tcleanup_srcu_struct(&gdev->desc_srcu);\n-err_cleanup_gdev_srcu:\n-\tcleanup_srcu_struct(&gdev->srcu);\n err_free_ida:\n \tida_free(&gpio_ida, gdev->id);\n err_free_gdev:\n@@ -1393,8 +1383,6 @@ void gpiochip_remove(struct gpio_chip *gc)\n \tsynchronize_srcu(&gpio_devices_srcu);\n \n \t/* Numb the device, cancelling all outstanding operations */\n-\trcu_assign_pointer(gdev->chip, NULL);\n-\tsynchronize_srcu(&gdev->srcu);\n \trevocable_revoke(&gdev->chip_rev);\n \tgpio_device_teardown_shared(gdev);\n \tgpiochip_irqchip_remove(gc);\n@@ -2905,8 +2893,6 @@ static int gpiochip_direction_input(struct gpio_chip *gc, unsigned int offset)\n {\n \tint ret;\n \n-\tlockdep_assert_held(&gc->gpiodev->srcu);\n-\n \tif (WARN_ON(!gc->direction_input))\n \t\treturn -EOPNOTSUPP;\n \n@@ -2922,8 +2908,6 @@ static int gpiochip_direction_output(struct gpio_chip *gc, unsigned int offset,\n {\n \tint ret;\n \n-\tlockdep_assert_held(&gc->gpiodev->srcu);\n-\n \tif (WARN_ON(!gc->direction_output))\n \t\treturn -EOPNOTSUPP;\n \n@@ -3011,8 +2995,6 @@ static int gpiochip_set(struct gpio_chip *gc, unsigned int offset, int value)\n {\n \tint ret;\n \n-\tlockdep_assert_held(&gc->gpiodev->srcu);\n-\n \tif (WARN_ON(unlikely(!gc->set)))\n \t\treturn -EOPNOTSUPP;\n \n@@ -3360,8 +3342,6 @@ static int gpiochip_get(struct gpio_chip *gc, unsigned int offset)\n {\n \tint ret;\n \n-\tlockdep_assert_held(&gc->gpiodev->srcu);\n-\n \t/* Make sure this is called after checking for gc->get(). */\n \tret = gc->get(gc, offset);\n \tif (ret > 1) {\n@@ -3417,8 +3397,6 @@ static int gpiod_get_raw_value_commit(const struct gpio_desc *desc)\n static int gpio_chip_get_multiple(struct gpio_chip *gc,\n \t\t\t\t  unsigned long *mask, unsigned long *bits)\n {\n-\tlockdep_assert_held(&gc->gpiodev->srcu);\n-\n \tif (gc->get_multiple) {\n \t\tint ret;\n \n@@ -3762,8 +3740,6 @@ static int gpiochip_set_multiple(struct gpio_chip *gc,\n \tunsigned int i;\n \tint ret;\n \n-\tlockdep_assert_held(&gc->gpiodev->srcu);\n-\n \tif (gc->set_multiple) {\n \t\tret = gc->set_multiple(gc, mask, bits);\n \t\tif (ret > 0)\ndiff --git a/drivers/gpio/gpiolib.h b/drivers/gpio/gpiolib.h\nindex 90ad9b7fdfdd..efbff4a1cd4e 100644\n--- a/drivers/gpio/gpiolib.h\n+++ b/drivers/gpio/gpiolib.h\n@@ -32,7 +32,6 @@ struct fwnode_handle;\n  * @chrdev: character device for the GPIO device\n  * @id: numerical ID number for the GPIO chip\n  * @owner: helps prevent removal of modules exporting active GPIOs\n- * @chip: pointer to the corresponding gpiochip, holding static\n  * data for this device\n  * @descs: array of ngpio descriptors.\n  * @valid_mask: If not %NULL, holds bitmask of GPIOs which are valid to be\n@@ -55,7 +54,6 @@ struct fwnode_handle;\n  *                 process context\n  * @device_notifier: used to notify character device wait queues about the GPIO\n  *                   device being unregistered\n- * @srcu: protects the pointer to the underlying GPIO chip\n  * @chip_rev: revocable provider handle for the corresponding struct gpio_chip.\n  * @pin_ranges: range of pins served by the GPIO driver\n  *\n@@ -69,7 +67,6 @@ struct gpio_device {\n \tstruct cdev\t\tchrdev;\n \tint\t\t\tid;\n \tstruct module\t\t*owner;\n-\tstruct gpio_chip __rcu\t*chip;\n \tstruct gpio_desc\t*descs;\n \tunsigned long\t\t*valid_mask;\n \tstruct srcu_struct\tdesc_srcu;\n@@ -83,7 +80,6 @@ struct gpio_device {\n \trwlock_t\t\tline_state_lock;\n \tstruct workqueue_struct\t*line_state_wq;\n \tstruct blocking_notifier_head device_notifier;\n-\tstruct srcu_struct\tsrcu;\n \tstruct revocable\tchip_rev;\n \n #ifdef CONFIG_PINCTRL\n",
    "prefixes": [
        "v10",
        "7/9"
    ]
}