get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1287,
    "url": "http://patchwork.ozlabs.org/api/patches/1287/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1222264869.4257.13.camel@johannes.berg/",
    "project": {
        "id": 2,
        "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api",
        "name": "Linux PPC development",
        "link_name": "linuxppc-dev",
        "list_id": "linuxppc-dev.lists.ozlabs.org",
        "list_email": "linuxppc-dev@lists.ozlabs.org",
        "web_url": "https://github.com/linuxppc/wiki/wiki",
        "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git",
        "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/",
        "list_archive_url": "https://lore.kernel.org/linuxppc-dev/",
        "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/",
        "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}"
    },
    "msgid": "<1222264869.4257.13.camel@johannes.berg>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/1222264869.4257.13.camel@johannes.berg/",
    "date": "2008-09-24T14:01:09",
    "name": "powerpc: fix 64-bit hibernation with 64k pages",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "71509ab7ccdbe61e12fa9685f23e740ff729e560",
    "submitter": {
        "id": 265,
        "url": "http://patchwork.ozlabs.org/api/people/265/?format=api",
        "name": "Johannes Berg",
        "email": "johannes@sipsolutions.net"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1222264869.4257.13.camel@johannes.berg/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/1287/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1287/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org>",
        "X-Original-To": [
            "patchwork-incoming@ozlabs.org",
            "linuxppc-dev@ozlabs.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@ozlabs.org",
            "linuxppc-dev@ozlabs.org"
        ],
        "Received": [
            "from ozlabs.org (localhost [127.0.0.1])\n\tby ozlabs.org (Postfix) with ESMTP id 7A00CDE400\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 25 Sep 2008 00:02:19 +1000 (EST)",
            "from sipsolutions.net (xc.sipsolutions.net [83.246.72.84])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(Client did not present a certificate)\n\tby ozlabs.org (Postfix) with ESMTPS id 7FEEDDDF3A\n\tfor <linuxppc-dev@ozlabs.org>; Thu, 25 Sep 2008 00:02:06 +1000 (EST)",
            "by sipsolutions.net with esmtpsa\n\t(TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.69) (envelope-from <johannes@sipsolutions.net>)\n\tid 1KiUwC-00068x-CB; Wed, 24 Sep 2008 16:02:02 +0200"
        ],
        "Subject": "[PATCH] powerpc: fix 64-bit hibernation with 64k pages",
        "From": "Johannes Berg <johannes@sipsolutions.net>",
        "To": "linuxppc-dev list <linuxppc-dev@ozlabs.org>",
        "Date": "Wed, 24 Sep 2008 16:01:09 +0200",
        "Message-Id": "<1222264869.4257.13.camel@johannes.berg>",
        "Mime-Version": "1.0",
        "X-Mailer": "Evolution 2.22.3.1 ",
        "X-BeenThere": "linuxppc-dev@ozlabs.org",
        "X-Mailman-Version": "2.1.11",
        "Precedence": "list",
        "List-Id": "Linux on PowerPC Developers Mail List <linuxppc-dev.ozlabs.org>",
        "List-Unsubscribe": "<https://ozlabs.org/mailman/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@ozlabs.org?subject=unsubscribe>",
        "List-Archive": "<http://ozlabs.org/pipermail/linuxppc-dev>",
        "List-Post": "<mailto:linuxppc-dev@ozlabs.org>",
        "List-Help": "<mailto:linuxppc-dev-request@ozlabs.org?subject=help>",
        "List-Subscribe": "<https://ozlabs.org/mailman/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@ozlabs.org?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Sender": "linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org",
        "Errors-To": "linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org"
    },
    "content": "Brown paper bag patch, the fact that it didn't work is entirely my fault\nfor hardcoding 512 in the original patch.\n\nSigned-off-by: Johannes Berg <johannes@sipsolutions.net>\n---\nContains the revert for the earlier patch just in case; probably better\nto not apply the earlier patch and only the first hunk of this.\n\n---\n arch/powerpc/Kconfig               |    2 +-\n arch/powerpc/kernel/swsusp_asm64.S |    2 +-\n 2 files changed, 2 insertions(+), 2 deletions(-)",
    "diff": "--- wireless-testing.orig/arch/powerpc/kernel/swsusp_asm64.S\t2008-09-24 15:32:07.119071976 +0200\n+++ wireless-testing/arch/powerpc/kernel/swsusp_asm64.S\t2008-09-24 15:32:15.723824535 +0200\n@@ -133,7 +133,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_ALTIVEC)\n \n \tcmpdi\tr12,0\n \tbeq-\tnothing_to_copy\n-\tli\tr15,512\n+\tli\tr15,PAGE_SIZE>>3\n copyloop:\n \tld\tr13,pbe_address(r12)\n \tld\tr14,pbe_orig_address(r12)\n--- wireless-testing.orig/arch/powerpc/Kconfig\t2008-09-24 15:32:36.483825650 +0200\n+++ wireless-testing/arch/powerpc/Kconfig\t2008-09-24 15:32:42.837826811 +0200\n@@ -194,7 +194,7 @@ config HIBERNATE_32\n \n config HIBERNATE_64\n \tbool\n-\tdepends on BROKEN || (PPC_PMAC64 && !PPC_64K_PAGES && EXPERIMENTAL)\n+\tdepends on BROKEN || (PPC_PMAC64 && EXPERIMENTAL)\n \tdefault y\n \n config ARCH_HIBERNATION_POSSIBLE\n",
    "prefixes": []
}