get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2230379,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2230379/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260429175016.7915-5-djeffery@redhat.com/",
    "project": {
        "id": 28,
        "url": "http://patchwork.ozlabs.org/api/1.1/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
    },
    "msgid": "<20260429175016.7915-5-djeffery@redhat.com>",
    "date": "2026-04-29T17:50:15",
    "name": "[4/5] PCI: Enable async shutdown support",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "b31759ed026d061a3a66ef55586eed5ae68deeb8",
    "submitter": {
        "id": 24471,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/24471/?format=api",
        "name": "David Jeffery",
        "email": "djeffery@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260429175016.7915-5-djeffery@redhat.com/mbox/",
    "series": [
        {
            "id": 502117,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/502117/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=502117",
            "date": "2026-04-29T17:50:11",
            "name": "shut down devices asynchronously",
            "version": 15,
            "mbox": "http://patchwork.ozlabs.org/series/502117/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2230379/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2230379/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <linux-pci+bounces-53408-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 (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=SYT9hqcE;\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-53408-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com\n header.b=\"SYT9hqcE\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=170.10.129.124",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=quarantine dis=none) header.from=redhat.com",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=redhat.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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g5Pzm2WZqz1xqf\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 03:53:24 +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 85495306C7D9\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 17:51:23 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 1A8733B961D;\n\tWed, 29 Apr 2026 17:51:20 +0000 (UTC)",
            "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\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 B30F939B497\n\tfor <linux-pci@vger.kernel.org>; Wed, 29 Apr 2026 17:51:18 +0000 (UTC)",
            "from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-685-VbipQuUTOhiPukFtFJk__Q-1; Wed,\n 29 Apr 2026 13:51:14 -0400",
            "from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id BCF881800347;\n\tWed, 29 Apr 2026 17:51:11 +0000 (UTC)",
            "from fedora-work.redhat.com (unknown [10.22.80.165])\n\tby mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id 41FCC30001BB;\n\tWed, 29 Apr 2026 17:51:06 +0000 (UTC)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777485080; cv=none;\n b=Dm0zacUJbJqLgjteg1yKCIemdY96UfpsyzxUc7sydfgJqXSSFQ7ouyh6npiD/TogSQoQjzUSNVf865/y/OR8s6Sm/vC9SZL+Z4W+liixCFdcA7hOoN8MGugioDXBeTzYte52tmui/ZrucJCz7bu2r8+IlZDWulg76Ryxxw0tmuM=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777485080; c=relaxed/simple;\n\tbh=Z3ca1mwVV9tvMoPvpLPM4RlOmGhZUMxjiOj6IqI81pc=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=JjEWFrr/oQIwGpkp0LvrzyoZJuodA4E6RQrOTtF1dX9J2+fpoj6SEnVi1E7ZHVr29SdT13Jg6u2Oempnu0IziSHHKSQRoQOR/HXdLfAFPtUEp6/KEQPaMWwwF/8Av4HAtoFFkfFS18aY5uUPetj3Ddw7aYElSrXShlW51pR2xZM=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=quarantine dis=none) header.from=redhat.com;\n spf=pass smtp.mailfrom=redhat.com;\n dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com\n header.b=SYT9hqcE; arc=none smtp.client-ip=170.10.129.124",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n\ts=mimecast20190719; t=1777485077;\n\th=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n\t to:to:cc:cc:mime-version:mime-version:\n\t content-transfer-encoding:content-transfer-encoding:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=U54ViaHQ6SdACiN5txV3sQNUzriUf70Auy/2LcwcU0s=;\n\tb=SYT9hqcE925287qkD5zy5lkotU0WkgY66R1u3rKnZf2VY3On9xSapIjVBXbOuI/u6A4cf9\n\t4lImwNTcLEPb+PSlmIadtwdyiKh52yWwbjxw4/HwrNf9nmc9Gpboo/ggYW9MEAMyAT4fLo\n\tZ+ARvnWgLTelW+KSW6xzHoIeKVSVLPU=",
        "X-MC-Unique": "VbipQuUTOhiPukFtFJk__Q-1",
        "X-Mimecast-MFC-AGG-ID": "VbipQuUTOhiPukFtFJk__Q_1777485071",
        "From": "David Jeffery <djeffery@redhat.com>",
        "To": "linux-kernel@vger.kernel.org,\n\tdriver-core@lists.linux.dev,\n\tlinux-pci@vger.kernel.org,\n\tlinux-scsi@vger.kernel.org,\n\tGreg Kroah-Hartman <gregkh@linuxfoundation.org>,\n\t\"Rafael J. Wysocki\" <rafael@kernel.org>,\n\tDanilo Krummrich <dakr@kernel.org>",
        "Cc": "Tarun Sahu <tarunsahu@google.com>, Pasha Tatashin <tatashin@google.com>,\n\t=?utf-8?b?TWljaGHFgiBDxYJhcGnFhHNraQ==?= <mclapinski@google.com>,\n Jordan Richards <jordanrichards@google.com>, Ewan Milne <emilne@redhat.com>,\n John Meneghini <jmeneghi@redhat.com>, \"Lombardi,\n Maurizio\" <mlombard@redhat.com>, Stuart Hayes <stuart.w.hayes@gmail.com>,\n Laurence Oberman <loberman@redhat.com>, Bart Van Assche <bvanassche@acm.org>,\n Bjorn Helgaas <helgaas@kernel.org>,\n \"Martin K . Petersen\" <martin.petersen@oracle.com>,\n John Garry <john.g.garry@oracle.com>, kexec@lists.infradead.org,\n David Jeffery <djeffery@redhat.com>,\n Pasha Tatashin <pasha.tatashin@soleen.com>",
        "Subject": "[PATCH 4/5] PCI: Enable async shutdown support",
        "Date": "Wed, 29 Apr 2026 13:50:15 -0400",
        "Message-ID": "<20260429175016.7915-5-djeffery@redhat.com>",
        "In-Reply-To": "<20260429175016.7915-1-djeffery@redhat.com>",
        "References": "<20260429175016.7915-1-djeffery@redhat.com>",
        "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",
        "X-Scanned-By": "MIMEDefang 3.4.1 on 10.30.177.4"
    },
    "content": "Like its async suspend support, allow PCI device shutdown to be performed\nasynchronously to reduce shutdown time.\n\nSigned-off-by: David Jeffery <djeffery@redhat.com>\nSigned-off-by: Stuart Hayes <stuart.w.hayes@gmail.com>\nTested-by: Laurence Oberman <loberman@redhat.com>\nReviewed-by: Martin K. Petersen <martin.petersen@oracle.com>\nReviewed-by: Pasha Tatashin <pasha.tatashin@soleen.com>\n---\n drivers/pci/probe.c | 2 ++\n 1 file changed, 2 insertions(+)",
    "diff": "diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c\nindex b63cd0c310bc..86e855090553 100644\n--- a/drivers/pci/probe.c\n+++ b/drivers/pci/probe.c\n@@ -1045,6 +1045,7 @@ static int pci_register_host_bridge(struct pci_host_bridge *bridge)\n \n \tbus->bridge = get_device(&bridge->dev);\n \tdevice_enable_async_suspend(bus->bridge);\n+\tdevice_enable_async_shutdown(bus->bridge);\n \tpci_set_bus_of_node(bus);\n \tpci_set_bus_msi_domain(bus);\n \tif (bridge->msi_domain && !dev_get_msi_domain(&bus->dev) &&\n@@ -2753,6 +2754,7 @@ void pci_device_add(struct pci_dev *dev, struct pci_bus *bus)\n \tpci_reassigndev_resource_alignment(dev);\n \n \tpci_init_capabilities(dev);\n+\tdevice_enable_async_shutdown(&dev->dev);\n \n \t/*\n \t * Add the device to our list of discovered devices\n",
    "prefixes": [
        "4/5"
    ]
}