get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2228570,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2228570/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260427035341.1425576-4-superm1@kernel.org/",
    "project": {
        "id": 28,
        "url": "http://patchwork.ozlabs.org/api/1.2/projects/28/?format=api",
        "name": "Linux PCI development",
        "link_name": "linux-pci",
        "list_id": "linux-pci.vger.kernel.org",
        "list_email": "linux-pci@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260427035341.1425576-4-superm1@kernel.org>",
    "list_archive_url": null,
    "date": "2026-04-27T03:53:39",
    "name": "[3/5] PCI/PM: Run bridge power up actions as part of restore phase",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "15b86971b4386293e0bc24b1589ec0b212ec4304",
    "submitter": {
        "id": 88834,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/88834/?format=api",
        "name": "Mario Limonciello",
        "email": "superm1@kernel.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260427035341.1425576-4-superm1@kernel.org/mbox/",
    "series": [
        {
            "id": 501568,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/501568/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=501568",
            "date": "2026-04-27T03:53:41",
            "name": "Improvements to PCI hibernate path",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/501568/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2228570/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2228570/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-pci+bounces-53190-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-pci@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=AW7RDIri;\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-pci+bounces-53190-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=\"AW7RDIri\"",
            "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 4g3qbt0XlVz1xvV\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 27 Apr 2026 14:00:42 +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 B28D33038D38\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 27 Apr 2026 03:54:08 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id A56E636F430;\n\tMon, 27 Apr 2026 03:53:49 +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 82FC536F405;\n\tMon, 27 Apr 2026 03:53:49 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id B29E1C2BCB8;\n\tMon, 27 Apr 2026 03:53:48 +0000 (UTC)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777262029; cv=none;\n b=LnuwxK6nXHzFiIF2XDbSfw+miJF1Q+D5h40Zf+ZcPdjCi5OAh7Krb1V0uif8NDgE8SVj9GNwlr+Uj1bdqYYo5P8Opm/RSDT6AhxsE+s56C2jgnSyUx2ie7SNFQH2/QhdpRRx87YJewOd9Dau4Twux7hgoo2rrp+FdJbLZ+FFsmk=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777262029; c=relaxed/simple;\n\tbh=jsEb1yLjA2XTL0QV8lS7eXoA5i4gmq03FD7bi6mGHC0=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=bsAOzZVFOXHubFLVG0Hl3iQXLrLst+qRi8H7tJ/9NW7R7PD+QC+IYFNvdyx7/EJPFdzk61WHKdQnlekT7DWbr1BUJoXR4ivnmgApRBXBUQxz8GoRv+yZr2cvqYClx5QiDkE/cQ3dqzKWlJvA2iDYH0+ipSgdgoWwW0zwrMhGcvY=",
        "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=AW7RDIri; 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=1777262029;\n\tbh=jsEb1yLjA2XTL0QV8lS7eXoA5i4gmq03FD7bi6mGHC0=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=AW7RDIri5j6c1te6kR0SWB2Mqdw70uESFJPnqpN44RskdAaXg1lnYqrJjU0qLMVY4\n\t Sh0vNRv8DT7EQX9MLmNhF0Tm+z0N7Bckjcbb0nzdu2+P7w9rkwSZiyQTJh98R2rLpI\n\t azJDQTX2DdDLw38kfF5o3iu7X1glsEC5FG3C+/RaYdU3RM+1G3HPabfzTkixl2NS2d\n\t MviLr0RmTGHT+HuP7xKK6KYtTdAQsa9ZczHJ/2aLmbNmNadalEu2UIf1Q/Vt54PC7V\n\t vQBp4F2CyepWQJ7g+d40P2LrXdd+fUZzIAeQnL+qbGhUt+mkb56pIpn0hajG68oAkD\n\t 7miqXPnAfLzJA==",
        "From": "\"Mario Limonciello (AMD)\" <superm1@kernel.org>",
        "To": "Bjorn Helgaas <bhelgaas@google.com>,\n\tlinux-pci@vger.kernel.org (open list:PCI SUBSYSTEM)",
        "Cc": "linux-pci@vger.kernel.org (open list:PCI SUBSYSTEM),\n\tlinux-kernel@vger.kernel.org (open list),\n\t\"Rafael J . Wysocki\" <rafael@kernel.org>,\n\tLukas Wunner <lukas@wunner.de>,\n\t\"Mario Limonciello (AMD)\" <superm1@kernel.org>,\n\tEric Naim <dnaim@cachyos.org>",
        "Subject": "[PATCH 3/5] PCI/PM: Run bridge power up actions as part of restore\n phase",
        "Date": "Sun, 26 Apr 2026 22:53:39 -0500",
        "Message-ID": "<20260427035341.1425576-4-superm1@kernel.org>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260427035341.1425576-1-superm1@kernel.org>",
        "References": "<20260427035341.1425576-1-superm1@kernel.org>",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-pci@vger.kernel.org",
        "List-Id": "<linux-pci.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-pci+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-pci+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit"
    },
    "content": "Suspend resume actions will check the state of the device and whether\nbus PM should be skipped.  These same actions make sense during hibernation\nimage restore.  Apply them there as well.\n\nTested-by: Eric Naim <dnaim@cachyos.org>\nSigned-off-by: Mario Limonciello (AMD) <superm1@kernel.org>\n---\n drivers/pci/pci-driver.c | 5 +++++\n 1 file changed, 5 insertions(+)",
    "diff": "diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c\nindex bfb521eb0eed7..793af4af2971b 100644\n--- a/drivers/pci/pci-driver.c\n+++ b/drivers/pci/pci-driver.c\n@@ -1273,10 +1273,15 @@ static int pci_pm_restore_noirq(struct device *dev)\n {\n \tstruct pci_dev *pci_dev = to_pci_dev(dev);\n \tconst struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;\n+\tpci_power_t prev_state = pci_dev->current_state;\n+\tbool skip_bus_pm = pci_dev->skip_bus_pm;\n \n \tpci_pm_default_resume_early(pci_dev);\n \tpci_fixup_device(pci_fixup_resume_early, pci_dev);\n \n+\tif (!skip_bus_pm && prev_state == PCI_D3cold)\n+\t\tpci_pm_bridge_power_up_actions(pci_dev);\n+\n \tif (pci_has_legacy_pm_support(pci_dev))\n \t\treturn 0;\n \n",
    "prefixes": [
        "3/5"
    ]
}