get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 947,
    "url": "http://patchwork.ozlabs.org/api/patches/947/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/200809222110.m8MLALvH029893@imap1.linux-foundation.org/",
    "project": {
        "id": 7,
        "url": "http://patchwork.ozlabs.org/api/projects/7/?format=api",
        "name": "Linux network development",
        "link_name": "netdev",
        "list_id": "netdev.vger.kernel.org",
        "list_email": "netdev@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<200809222110.m8MLALvH029893@imap1.linux-foundation.org>",
    "list_archive_url": null,
    "date": "2008-09-22T21:10:21",
    "name": "[for,2.6.27?,07/10] ne.c: fix suspend and resume for ISA PnP cards",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "3132191b046f4c28a8615cf58b6aacffb6fd0c7a",
    "submitter": {
        "id": 107,
        "url": "http://patchwork.ozlabs.org/api/people/107/?format=api",
        "name": "Andrew Morton",
        "email": "akpm@linux-foundation.org"
    },
    "delegate": {
        "id": 36,
        "url": "http://patchwork.ozlabs.org/api/users/36/?format=api",
        "username": "jgarzik",
        "first_name": "Jeff",
        "last_name": "Garzik",
        "email": "jgarzik@pobox.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/200809222110.m8MLALvH029893@imap1.linux-foundation.org/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/947/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/947/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<netdev-owner@vger.kernel.org>",
        "X-Original-To": "patchwork-incoming@ozlabs.org",
        "Delivered-To": "patchwork-incoming@ozlabs.org",
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.176.167])\n\tby ozlabs.org (Postfix) with ESMTP id C109BDDEFD\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 23 Sep 2008 07:16:16 +1000 (EST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1753040AbYIVVQM (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tMon, 22 Sep 2008 17:16:12 -0400",
            "(majordomo@vger.kernel.org) by vger.kernel.org id S1753195AbYIVVQK\n\t(ORCPT <rfc822; netdev-outgoing>); Mon, 22 Sep 2008 17:16:10 -0400",
            "from smtp1.linux-foundation.org ([140.211.169.13]:39304 \"EHLO\n\tsmtp1.linux-foundation.org\" rhost-flags-OK-OK-OK-OK)\n\tby vger.kernel.org with ESMTP id S1752922AbYIVVQJ (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Mon, 22 Sep 2008 17:16:09 -0400",
            "from imap1.linux-foundation.org (imap1.linux-foundation.org\n\t[140.211.169.55])\n\tby smtp1.linux-foundation.org (8.14.2/8.13.5/Debian-3ubuntu1.1) with\n\tESMTP id m8MLDDuJ014806\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);\n\tMon, 22 Sep 2008 14:15:05 -0700",
            "from localhost.localdomain (localhost [127.0.0.1])\n\tby imap1.linux-foundation.org\n\t(8.13.5.20060308/8.13.5/Debian-3ubuntu1.1) with ESMTP id\n\tm8MLALvH029893; Mon, 22 Sep 2008 14:10:22 -0700"
        ],
        "Message-Id": "<200809222110.m8MLALvH029893@imap1.linux-foundation.org>",
        "Subject": "[patch for 2.6.27? 07/10] ne.c: fix suspend and resume for ISA PnP\n\tcards",
        "To": "jeff@garzik.org",
        "Cc": "netdev@vger.kernel.org, akpm@linux-foundation.org, david@fries.net,\n\talan@lxorguk.ukuu.org.uk, anemo@mba.ocn.ne.jp, p_gortmaker@yahoo.com",
        "From": "akpm@linux-foundation.org",
        "Date": "Mon, 22 Sep 2008 14:10:21 -0700",
        "X-Spam-Status": "No, hits=-3.358 required=5 tests=AWL, BAYES_00,\n\tOSDL_HEADER_SUBJECT_BRACKETED",
        "X-Spam-Checker-Version": "SpamAssassin 3.2.4-osdl_revision__1.47__",
        "X-MIMEDefang-Filter": "lf$Revision: 1.188 $",
        "X-Scanned-By": "MIMEDefang 2.63 on 140.211.169.13",
        "Sender": "netdev-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<netdev.vger.kernel.org>",
        "X-Mailing-List": "netdev@vger.kernel.org"
    },
    "content": "From: David Fries <david@fries.net>\n\nA call to pnp_stop_dev and pnp_start_dev now shuts down and initializes\nplug and play devices for suspend and resume.\n\nSigned-off-by: David Fries <david@fries.net>\nCc: Atsushi Nemoto <anemo@mba.ocn.ne.jp>\nCc: Paul Gortmaker <p_gortmaker@yahoo.com>\nCc: Alan Cox <alan@lxorguk.ukuu.org.uk>\nCc: Jeff Garzik <jeff@garzik.org>\nSigned-off-by: Andrew Morton <akpm@linux-foundation.org>\n---\n\n drivers/net/ne.c |    9 ++++++++-\n 1 file changed, 8 insertions(+), 1 deletion(-)",
    "diff": "diff -puN drivers/net/ne.c~nec-fix-suspend-and-resume-for-isa-pnp-cards drivers/net/ne.c\n--- a/drivers/net/ne.c~nec-fix-suspend-and-resume-for-isa-pnp-cards\n+++ a/drivers/net/ne.c\n@@ -895,8 +895,12 @@ static int ne_drv_suspend(struct platfor\n {\n \tstruct net_device *dev = platform_get_drvdata(pdev);\n \n-\tif (netif_running(dev))\n+\tif (netif_running(dev)) {\n+\t\tstruct pnp_dev *idev = (struct pnp_dev *)ei_status.priv;\n \t\tnetif_device_detach(dev);\n+\t\tif (idev)\n+\t\t\tpnp_stop_dev(idev);\n+\t}\n \treturn 0;\n }\n \n@@ -905,6 +909,9 @@ static int ne_drv_resume(struct platform\n \tstruct net_device *dev = platform_get_drvdata(pdev);\n \n \tif (netif_running(dev)) {\n+\t\tstruct pnp_dev *idev = (struct pnp_dev *)ei_status.priv;\n+\t\tif (idev)\n+\t\t\tpnp_start_dev(idev);\n \t\tne_reset_8390(dev);\n \t\tNS8390p_init(dev, 1);\n \t\tnetif_device_attach(dev);\n",
    "prefixes": [
        "for",
        "2.6.27?",
        "07/10"
    ]
}