get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 810316,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/810316/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/1504653683-11543-2-git-send-email-jschoenh@amazon.de/",
    "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": "<1504653683-11543-2-git-send-email-jschoenh@amazon.de>",
    "list_archive_url": null,
    "date": "2017-09-05T23:21:23",
    "name": "[2/2] PCI: Remove unused function __pci_reset_function()",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "6fb76a55af03d5a4ca2c3c975c33adb4b446da58",
    "submitter": {
        "id": 72300,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/72300/?format=api",
        "name": "Jan H. Schönherr",
        "email": "jschoenh@amazon.de"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/1504653683-11543-2-git-send-email-jschoenh@amazon.de/mbox/",
    "series": [
        {
            "id": 1664,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/1664/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=1664",
            "date": "2017-09-05T23:21:23",
            "name": "[1/2] PCI: Remove reset argument from pci_iov_{add,remove}_virtfn()",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/1664/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/810316/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/810316/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; dkim=pass (1024-bit key;\n\tunprotected) header.d=amazon.de header.i=@amazon.de\n\theader.b=\"fUCYqyVU\"; dkim-atps=neutral"
        ],
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xn2ml1rLJz9s7C\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed,  6 Sep 2017 09:22:15 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752849AbdIEXWN (ORCPT <rfc822;incoming@patchwork.ozlabs.org>);\n\tTue, 5 Sep 2017 19:22:13 -0400",
            "from smtp-fw-6002.amazon.com ([52.95.49.90]:50723 \"EHLO\n\tsmtp-fw-6002.amazon.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752664AbdIEXWM (ORCPT\n\t<rfc822;linux-pci@vger.kernel.org>); Tue, 5 Sep 2017 19:22:12 -0400",
            "from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO\n\temail-inbound-relay-1a-e34f1ddc.us-east-1.amazon.com) ([10.43.8.6])\n\tby smtp-border-fw-out-6002.iad6.amazon.com with\n\tESMTP/TLS/DHE-RSA-AES256-SHA; 05 Sep 2017 23:22:04 +0000",
            "from u28d244cd5724546b2f74.ant.amazon.com\n\t(iad7-ws-svc-lb50-vlan2.amazon.com [10.0.93.210])\n\tby email-inbound-relay-1a-e34f1ddc.us-east-1.amazon.com\n\t(8.14.7/8.14.7) with ESMTP id v85NLvLK042639\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);\n\tTue, 5 Sep 2017 23:21:59 GMT",
            "from u28d244cd5724546b2f74.ant.amazon.com (localhost [127.0.0.1])\n\tby u28d244cd5724546b2f74.ant.amazon.com\n\t(8.14.4/8.14.4/Debian-2ubuntu2.1) with ESMTP id v85NLuDQ011664; \n\tWed, 6 Sep 2017 01:21:56 +0200",
            "(from jschoenh@localhost)\n\tby u28d244cd5724546b2f74.ant.amazon.com (8.14.4/8.14.4/Submit) id\n\tv85NLrEK011658; Wed, 6 Sep 2017 01:21:53 +0200"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=amazon.de; i=@amazon.de; q=dns/txt; s=amazon201209;\n\tt=1504653732; x=1536189732;\n\th=from:to:cc:subject:date:message-id:in-reply-to:\n\treferences:mime-version:content-transfer-encoding;\n\tbh=8R+7bNT+ZKlkrv+f5f0fMLcUccE6IJRnywrzk+6Uz9g=;\n\tb=fUCYqyVU2OSaGPD43Eij1PTfrG4fn9XD0Ua5jZ6eFjT/hRDDYxRNa31n\n\te2mIPIsIu21pXCIpSQaFua5XNy10BL7337Wmm8NIjOWTwwaC6T6zYMS2O\n\tY9GDhq6tkeAZTGAqDJtoWqwRjXsFWTV+lpIfq5YuVLQIx7Uk00py9Ocot Y=;",
        "X-IronPort-AV": "E=Sophos;i=\"5.41,481,1498521600\"; d=\"scan'208\";a=\"303737485\"",
        "From": "=?utf-8?q?Jan_H=2E_Sch=C3=B6nherr?= <jschoenh@amazon.de>",
        "To": "Bjorn Helgaas <bhelgaas@google.com>",
        "Cc": "=?utf-8?q?Jan_H=2E_Sch=C3=B6nherr?= <jschoenh@amazon.de>,\n\tlinux-pci@vger.kernel.org, Russell Currey <ruscur@russell.cc>, \n\tlinuxppc-dev@lists.ozlabs.org",
        "Subject": "[PATCH 2/2] PCI: Remove unused function __pci_reset_function()",
        "Date": "Wed,  6 Sep 2017 01:21:23 +0200",
        "Message-Id": "<1504653683-11543-2-git-send-email-jschoenh@amazon.de>",
        "X-Mailer": "git-send-email 2.3.1.dirty",
        "In-Reply-To": "<1504653683-11543-1-git-send-email-jschoenh@amazon.de>",
        "References": "<1504653683-11543-1-git-send-email-jschoenh@amazon.de>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "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": "The last caller of __pci_reset_function() has been removed. Remove\nthe function as well.\n\nSigned-off-by: Jan H. Schönherr <jschoenh@amazon.de>\n---\n drivers/pci/pci.c   | 35 +++--------------------------------\n include/linux/pci.h |  1 -\n 2 files changed, 3 insertions(+), 33 deletions(-)",
    "diff": "diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c\nindex fdf65a6..dabcf5a 100644\n--- a/drivers/pci/pci.c\n+++ b/drivers/pci/pci.c\n@@ -4115,35 +4115,6 @@ static void pci_dev_restore(struct pci_dev *dev)\n }\n \n /**\n- * __pci_reset_function - reset a PCI device function\n- * @dev: PCI device to reset\n- *\n- * Some devices allow an individual function to be reset without affecting\n- * other functions in the same device.  The PCI device must be responsive\n- * to PCI config space in order to use this function.\n- *\n- * The device function is presumed to be unused when this function is called.\n- * Resetting the device will make the contents of PCI configuration space\n- * random, so any caller of this must be prepared to reinitialise the\n- * device including MSI, bus mastering, BARs, decoding IO and memory spaces,\n- * etc.\n- *\n- * Returns 0 if the device function was successfully reset or negative if the\n- * device doesn't support resetting a single function.\n- */\n-int __pci_reset_function(struct pci_dev *dev)\n-{\n-\tint ret;\n-\n-\tpci_dev_lock(dev);\n-\tret = __pci_reset_function_locked(dev);\n-\tpci_dev_unlock(dev);\n-\n-\treturn ret;\n-}\n-EXPORT_SYMBOL_GPL(__pci_reset_function);\n-\n-/**\n  * __pci_reset_function_locked - reset a PCI device function while holding\n  * the @dev mutex lock.\n  * @dev: PCI device to reset\n@@ -4233,8 +4204,8 @@ int pci_probe_reset_function(struct pci_dev *dev)\n  *\n  * This function does not just reset the PCI portion of a device, but\n  * clears all the state associated with the device.  This function differs\n- * from __pci_reset_function in that it saves and restores device state\n- * over the reset.\n+ * from __pci_reset_function_locked() in that it saves and restores device state\n+ * over the reset and takes the PCI device lock.\n  *\n  * Returns 0 if the device function was successfully reset or negative if the\n  * device doesn't support resetting a single function.\n@@ -4269,7 +4240,7 @@ EXPORT_SYMBOL_GPL(pci_reset_function);\n  *\n  * This function does not just reset the PCI portion of a device, but\n  * clears all the state associated with the device.  This function differs\n- * from __pci_reset_function() in that it saves and restores device state\n+ * from __pci_reset_function_locked() in that it saves and restores device state\n  * over the reset.  It also differs from pci_reset_function() in that it\n  * requires the PCI device lock to be held.\n  *\ndiff --git a/include/linux/pci.h b/include/linux/pci.h\nindex 4acf321..b55e0cf 100644\n--- a/include/linux/pci.h\n+++ b/include/linux/pci.h\n@@ -1066,7 +1066,6 @@ int pcie_set_mps(struct pci_dev *dev, int mps);\n int pcie_get_minimum_link(struct pci_dev *dev, enum pci_bus_speed *speed,\n \t\t\t  enum pcie_link_width *width);\n void pcie_flr(struct pci_dev *dev);\n-int __pci_reset_function(struct pci_dev *dev);\n int __pci_reset_function_locked(struct pci_dev *dev);\n int pci_reset_function(struct pci_dev *dev);\n int pci_reset_function_locked(struct pci_dev *dev);\n",
    "prefixes": [
        "2/2"
    ]
}