get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2217651,
    "url": "http://patchwork.ozlabs.org/api/patches/2217651/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/patch/1774864401-177149-1-git-send-email-shawn.lin@rock-chips.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": "<1774864401-177149-1-git-send-email-shawn.lin@rock-chips.com>",
    "list_archive_url": null,
    "date": "2026-03-30T09:53:21",
    "name": "gpio: rockchip: convert to dynamic GPIO base allocation",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "020e3d4dfc797af6b86de1024543969eb23f9967",
    "submitter": {
        "id": 66993,
        "url": "http://patchwork.ozlabs.org/api/people/66993/?format=api",
        "name": "Shawn Lin",
        "email": "shawn.lin@rock-chips.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-gpio/patch/1774864401-177149-1-git-send-email-shawn.lin@rock-chips.com/mbox/",
    "series": [
        {
            "id": 497993,
            "url": "http://patchwork.ozlabs.org/api/series/497993/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/list/?series=497993",
            "date": "2026-03-30T09:53:21",
            "name": "gpio: rockchip: convert to dynamic GPIO base allocation",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/497993/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2217651/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2217651/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-gpio+bounces-34426-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 (1024-bit key;\n unprotected) header.d=rock-chips.com header.i=@rock-chips.com\n header.a=rsa-sha256 header.s=default header.b=BrFMQqF5;\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-34426-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (1024-bit key) header.d=rock-chips.com header.i=@rock-chips.com\n header.b=\"BrFMQqF5\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=220.197.32.69",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=rock-chips.com",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=rock-chips.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 4fknDZ5fPpz1xrn\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 30 Mar 2026 21:14:54 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 6A06630146A9\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 30 Mar 2026 10:08:57 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id C326B2C21C2;\n\tMon, 30 Mar 2026 10:08:55 +0000 (UTC)",
            "from mail-m3269.qiye.163.com (mail-m3269.qiye.163.com\n [220.197.32.69])\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 BF13E3B8BB1\n\tfor <linux-gpio@vger.kernel.org>; Mon, 30 Mar 2026 10:08:51 +0000 (UTC)",
            "from localhost.localdomain (unknown [58.22.7.114])\n\tby smtp.qiye.163.com (Hmail) with ESMTP id 38d16663a;\n\tMon, 30 Mar 2026 17:53:24 +0800 (GMT+08:00)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774865335; cv=none;\n b=nybo1OqBdMKBXQpOFxcyiGv0J/6Ua0oGMgrnzCObbmr/VNjd3rFPTrioPuI1DTbIjhJo149MUS2Yp8lZyqToGViqDX9GijsY6Shd1s2U3n1+kJfJg6EJq7/+K2cvisN8mdECkM0btbQ4gOhWQ31PGjpE5MKVCI7bS78ZGlXmDzk=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774865335; c=relaxed/simple;\n\tbh=EnGv9fwAu+qOd2TBv7rbXm8NPbXre/r07erLTstlZ/I=;\n\th=From:To:Cc:Subject:Date:Message-Id;\n b=JVdCOWtJ6nah93qxP2ihrq3E3Kq/8GWZctpG9yoDPQBXenFJbVXG1VSgd9hOVLXAnRgbuW5fl69RWSrohyRJ4ou8CTHnr5MWv2WX41eGGHljnMdPrciXACB2cd1AjpdE7HK4y4OKKhw2xIxMLNWryeYW8HR0Uy5Q1J84oGDsDkE=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=rock-chips.com;\n spf=pass smtp.mailfrom=rock-chips.com;\n dkim=pass (1024-bit key) header.d=rock-chips.com header.i=@rock-chips.com\n header.b=BrFMQqF5; arc=none smtp.client-ip=220.197.32.69",
        "From": "Shawn Lin <shawn.lin@rock-chips.com>",
        "To": "Linus Walleij <linusw@kernel.org>,\n\tBartosz Golaszewski <brgl@kernel.org>,\n\tHeiko Stuebner <heiko@sntech.de>",
        "Cc": "linux-gpio@vger.kernel.org,\n\tlinux-rockchip@lists.infradead.org,\n\tye.zhang@rock-chips.com,\n\tShawn Lin <shawn.lin@rock-chips.com>",
        "Subject": "[PATCH] gpio: rockchip: convert to dynamic GPIO base allocation",
        "Date": "Mon, 30 Mar 2026 17:53:21 +0800",
        "Message-Id": "<1774864401-177149-1-git-send-email-shawn.lin@rock-chips.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "X-HM-Tid": "0a9d3e298fef09cckunm3d006f22e5d629",
        "X-HM-MType": "1",
        "X-HM-Spam-Status": "e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly\n\ttZV1koWUFDSUNOT01LS0k3V1ktWUFJV1kPCRoVCBIfWUFZGk4YHVZJHx0YSU5CT0xMTxpWFRQJFh\n\toXVRMBExYaEhckFA4PWVdZGBILWUFZTkNVSUlVTFVKSk9ZV1kWGg8SFR0UWUFZT0tIVUpLSU9PT0\n\thVSktLVUpCS0tZBg++",
        "DKIM-Signature": "a=rsa-sha256;\n\tb=BrFMQqF5bRKjh0JmY4iB/LDDmGcn6MJoWAHKs5H1YMW0F8vRIpWmTsD4IXVZN2Hg3Gm2YbsZNWhiFfwFziOJfdy4ttNQ43f4cSXvHjVfA74mvgfImveYUoTss44vUUSu17psdCPFs1CS7VvKlhUHEqhpRZUTKGQhZ1JcCANw0/4=;\n s=default; c=relaxed/relaxed; d=rock-chips.com; v=1;\n\tbh=zBgjeDrg+peaeJ/KCAvRmYyV+lBFW34M3AWXK7qHhu0=;\n\th=date:mime-version:subject:message-id:from;",
        "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>"
    },
    "content": "This driver is used on device tree based platform. Use dynamic\nGPIO numberspace base to suppress the warning:\n\ngpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.\ngpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.\ngpio gpiochip2: Static allocation of GPIO base is deprecated, use dynamic allocation.\ngpio gpiochip3: Static allocation of GPIO base is deprecated, use dynamic allocation.\ngpio gpiochip4: Static allocation of GPIO base is deprecated, use dynamic allocation.\n\nSigned-off-by: Shawn Lin <shawn.lin@rock-chips.com>\n---\n\n drivers/gpio/gpio-rockchip.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/gpio/gpio-rockchip.c b/drivers/gpio/gpio-rockchip.c\nindex ac1b939..08ea644 100644\n--- a/drivers/gpio/gpio-rockchip.c\n+++ b/drivers/gpio/gpio-rockchip.c\n@@ -582,7 +582,7 @@ static int rockchip_gpiolib_register(struct rockchip_pin_bank *bank)\n \tbank->gpio_chip = rockchip_gpiolib_chip;\n \n \tgc = &bank->gpio_chip;\n-\tgc->base = bank->pin_base;\n+\tgc->base = -1;\n \tgc->ngpio = bank->nr_pins;\n \tgc->label = bank->name;\n \tgc->parent = bank->dev;\n",
    "prefixes": []
}