get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 971354,
    "url": "http://patchwork.ozlabs.org/api/patches/971354/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20180918235702.26573-9-keith.busch@intel.com/",
    "project": {
        "id": 28,
        "url": "http://patchwork.ozlabs.org/api/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": "<20180918235702.26573-9-keith.busch@intel.com>",
    "list_archive_url": null,
    "date": "2018-09-18T23:57:00",
    "name": "[PATCHv3,08/10] PCI/ERR: Report current recovery status for udev",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "192b9de19e16f7dca9802e54aa1391f528ff4375",
    "submitter": {
        "id": 19950,
        "url": "http://patchwork.ozlabs.org/api/people/19950/?format=api",
        "name": "Keith Busch",
        "email": "keith.busch@intel.com"
    },
    "delegate": {
        "id": 6763,
        "url": "http://patchwork.ozlabs.org/api/users/6763/?format=api",
        "username": "bhelgaas",
        "first_name": "Bjorn",
        "last_name": "Helgaas",
        "email": "bhelgaas@google.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20180918235702.26573-9-keith.busch@intel.com/mbox/",
    "series": [
        {
            "id": 66288,
            "url": "http://patchwork.ozlabs.org/api/series/66288/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=66288",
            "date": "2018-09-18T23:56:52",
            "name": "PCI error handling",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/66288/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/971354/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/971354/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linux-pci-owner@vger.kernel.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=linux-pci-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdmarc=fail (p=none dis=none) header.from=intel.com"
        ],
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 42FKcm1Hc7z9sCS\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 19 Sep 2018 09:55:36 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1730680AbeISFaf (ORCPT <rfc822;incoming@patchwork.ozlabs.org>);\n\tWed, 19 Sep 2018 01:30:35 -0400",
            "from mga02.intel.com ([134.134.136.20]:47647 \"EHLO mga02.intel.com\"\n\trhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP\n\tid S1730679AbeISFaf (ORCPT <rfc822;linux-pci@vger.kernel.org>);\n\tWed, 19 Sep 2018 01:30:35 -0400",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n\tby orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t18 Sep 2018 16:55:34 -0700",
            "from unknown (HELO localhost.lm.intel.com) ([10.232.112.44])\n\tby orsmga008.jf.intel.com with ESMTP; 18 Sep 2018 16:55:33 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.53,391,1531810800\"; d=\"scan'208\";a=\"74357540\"",
        "From": "Keith Busch <keith.busch@intel.com>",
        "To": "Linux PCI <linux-pci@vger.kernel.org>,\n\tBjorn Helgaas <bhelgaas@google.com>",
        "Cc": "Benjamin Herrenschmidt <benh@kernel.crashing.org>,\n\tSinan Kaya <okaya@kernel.org>,\n\tThomas Tai <thomas.tai@oracle.com>, poza@codeaurora.org,\n\tLukas Wunner <lukas@wunner.de>, Christoph Hellwig <hch@lst.de>,\n\tMika Westerberg <mika.westerberg@linux.intel.com>,\n\tKeith Busch <keith.busch@intel.com>",
        "Subject": "[PATCHv3 08/10] PCI/ERR: Report current recovery status for udev",
        "Date": "Tue, 18 Sep 2018 17:57:00 -0600",
        "Message-Id": "<20180918235702.26573-9-keith.busch@intel.com>",
        "X-Mailer": "git-send-email 2.13.6",
        "In-Reply-To": "<20180918235702.26573-1-keith.busch@intel.com>",
        "References": "<20180918235702.26573-1-keith.busch@intel.com>",
        "Sender": "linux-pci-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<linux-pci.vger.kernel.org>",
        "X-Mailing-List": "linux-pci@vger.kernel.org"
    },
    "content": "A device still participates in error recovery even if it doesn't have\nthe error callbacks. This patch provides the status for user event\nwatchers.\n\nSigned-off-by: Keith Busch <keith.busch@intel.com>\n---\n drivers/pci/pcie/err.c | 5 ++---\n 1 file changed, 2 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/pci/pcie/err.c b/drivers/pci/pcie/err.c\nindex 362a717c831a..31e8a4314384 100644\n--- a/drivers/pci/pcie/err.c\n+++ b/drivers/pci/pcie/err.c\n@@ -70,9 +70,8 @@ static int report_error_detected(struct pci_dev *dev,\n \t} else {\n \t\terr_handler = dev->driver->err_handler;\n \t\tvote = err_handler->error_detected(dev, state);\n-\t\tpci_uevent_ers(dev, PCI_ERS_RESULT_NONE);\n \t}\n-\n+\tpci_uevent_ers(dev, vote);\n \t*result = merge_result(*result, vote);\n \tdevice_unlock(&dev->dev);\n \treturn 0;\n@@ -140,8 +139,8 @@ static int report_resume(struct pci_dev *dev, void *data)\n \n \terr_handler = dev->driver->err_handler;\n \terr_handler->resume(dev);\n-\tpci_uevent_ers(dev, PCI_ERS_RESULT_RECOVERED);\n out:\n+\tpci_uevent_ers(dev, PCI_ERS_RESULT_RECOVERED);\n \tdevice_unlock(&dev->dev);\n \treturn 0;\n }\n",
    "prefixes": [
        "PATCHv3",
        "08/10"
    ]
}