get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2233015,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2233015/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-i2c/patch/20260505142547.795054-5-johan@kernel.org/",
    "project": {
        "id": 35,
        "url": "http://patchwork.ozlabs.org/api/1.2/projects/35/?format=api",
        "name": "Linux I2C development",
        "link_name": "linux-i2c",
        "list_id": "linux-i2c.vger.kernel.org",
        "list_email": "linux-i2c@vger.kernel.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260505142547.795054-5-johan@kernel.org>",
    "list_archive_url": null,
    "date": "2026-05-05T14:25:43",
    "name": "[4/8] i2c: core: disable runtime PM on adapter registration failure",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "147917dd57c32ed86582a2f380d37cdf50e1ba43",
    "submitter": {
        "id": 64666,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/64666/?format=api",
        "name": "Johan Hovold",
        "email": "johan@kernel.org"
    },
    "delegate": {
        "id": 9049,
        "url": "http://patchwork.ozlabs.org/api/1.2/users/9049/?format=api",
        "username": "wsa",
        "first_name": "Wolfram",
        "last_name": "Sang",
        "email": "wolfram@the-dreams.de"
    },
    "mbox": "http://patchwork.ozlabs.org/project/linux-i2c/patch/20260505142547.795054-5-johan@kernel.org/mbox/",
    "series": [
        {
            "id": 502847,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/502847/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-i2c/list/?series=502847",
            "date": "2026-05-05T14:25:43",
            "name": "i2c: core: adapter registration fixes",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/502847/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2233015/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2233015/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-i2c+bounces-17254-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-i2c@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=So/GGH5l;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org;\n envelope-from=linux-i2c+bounces-17254-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=\"So/GGH5l\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"
        ],
        "Received": [
            "from sto.lore.kernel.org (sto.lore.kernel.org\n [IPv6:2600:3c09:e001:a7::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 4g91Bb5DhMz1yJx\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 06 May 2026 00:30:15 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id 3F5B03027FEF\n\tfor <incoming@patchwork.ozlabs.org>; Tue,  5 May 2026 14:28:43 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 2474C48095C;\n\tTue,  5 May 2026 14:28: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 A5EFF48032B;\n\tTue,  5 May 2026 14:28:34 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id 677D1C2BCF7;\n\tTue,  5 May 2026 14:28:34 +0000 (UTC)",
            "from johan by xi.lan with local (Exim 4.98.2)\n\t(envelope-from <johan@kernel.org>)\n\tid 1wKGlE-00000003Ksy-0Wxo;\n\tTue, 05 May 2026 16:28:32 +0200"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777991314; cv=none;\n b=Y9n/vqBJvm8SaDzbTO7NVjoR/TBXYuO68mNhCDaJRb+HfJ83sgOZG3lu1QeGcBdElanHKyogqeJeOGNVnkJPP94yJ9FqeVOQE7qvNtZMsm7DdBz8HuMJbYJ0enPclEyFaGOPQezJ8xGKuiDhhQlTZDYNPtgtDsi1Q+M6u03DrHY=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777991314; c=relaxed/simple;\n\tbh=GVNjGWQe5bv+gTghSpE+56z4pksH8B5uOoLXv1jc2DM=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=O7LdDdpvc5faZ7qTAbWQWDmvoyOqfGAwwPo0FdxJg63P86ODcyluhL7ixsAQpNFMydcokZdlTqCw8TDr3pGxTqCUY9GQYV+HeSWodNHKDdaK19hRBEwKGsxfxo4ai5Ahgstlst8KmnYtySSvmd49SYmxWrkGBvYmuBmo1b4B6k8=",
        "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=So/GGH5l; 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=1777991314;\n\tbh=GVNjGWQe5bv+gTghSpE+56z4pksH8B5uOoLXv1jc2DM=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=So/GGH5lw10lbCJOq5uU2s0unc/CkzIJy2jJsbB+Ze5g5VIi1Vw+4RwB/lrtvZ38S\n\t ZOsIAXBEEJfJZSzJxvkRkMRDyugKojBl3gYbZiwl958V1qfhu6H0RRREuXXjuuyXH0\n\t Rp088w2dp9r1A+xNl+mYurWgMnQPJwUoK5kNxVfv8Dnh/p6TyulS383wIggkRYt6Su\n\t naMqNYup/6x6NqB5bNDM8KO6XL0fPPU9hJKGlQnKQbm81eGgYmDtRU/9Lyl2J8edfP\n\t bdiepPcW2EdXpKB+WLSWoawd4cHCXWlbKxSDSaauZeLd0tEWkk/5y+s1noaI33Nd1l\n\t 2N6zEfeXT4Cjw==",
        "From": "Johan Hovold <johan@kernel.org>",
        "To": "Wolfram Sang <wsa+renesas@sang-engineering.com>",
        "Cc": "Andi Shyti <andi.shyti@kernel.org>,\n\tlinux-i2c@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org,\n\tJohan Hovold <johan@kernel.org>,\n\tCodrin Ciubotariu <codrin.ciubotariu@microchip.com>",
        "Subject": "[PATCH 4/8] i2c: core: disable runtime PM on adapter registration\n failure",
        "Date": "Tue,  5 May 2026 16:25:43 +0200",
        "Message-ID": "<20260505142547.795054-5-johan@kernel.org>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260505142547.795054-1-johan@kernel.org>",
        "References": "<20260505142547.795054-1-johan@kernel.org>",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-i2c@vger.kernel.org",
        "List-Id": "<linux-i2c.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-i2c+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-i2c+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit"
    },
    "content": "Runtime PM is disabled by driver core when deregistering a device (and\non registration failure) but add an explicit disable to balance the\nenable call when adapter registration fails for symmetry.\n\nFixes: 23a698fe65ec (\"i2c: core: treat EPROBE_DEFER when acquiring SCL/SDA GPIOs\")\nCc: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>\nSigned-off-by: Johan Hovold <johan@kernel.org>\n---\n drivers/i2c/i2c-core-base.c | 1 +\n 1 file changed, 1 insertion(+)",
    "diff": "diff --git a/drivers/i2c/i2c-core-base.c b/drivers/i2c/i2c-core-base.c\nindex 6f198d1325a6..31f7d43e4ab5 100644\n--- a/drivers/i2c/i2c-core-base.c\n+++ b/drivers/i2c/i2c-core-base.c\n@@ -1609,6 +1609,7 @@ static int i2c_register_adapter(struct i2c_adapter *adap)\n \tdevice_del(&adap->dev);\n err_remove_debugfs:\n \tdebugfs_remove_recursive(adap->debugfs);\n+\tpm_runtime_disable(&adap->dev);\n err_put_adap:\n \tinit_completion(&adap->dev_released);\n \tput_device(&adap->dev);\n",
    "prefixes": [
        "4/8"
    ]
}