get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1165,
    "url": "http://patchwork.ozlabs.org/api/patches/1165/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20080923195404.GA10935@www.tglx.de/",
    "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": "<20080923195404.GA10935@www.tglx.de>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20080923195404.GA10935@www.tglx.de/",
    "date": "2008-09-23T19:54:04",
    "name": "[RFC] powerpc/boot: add kernel,end node to the cuboot target",
    "commit_ref": null,
    "pull_url": null,
    "state": "rejected",
    "archived": true,
    "hash": "833b0ca32b1a9b70d139499750134f7c85c66383",
    "submitter": {
        "id": 86,
        "url": "http://patchwork.ozlabs.org/api/people/86/?format=api",
        "name": "Sebastian Andrzej Siewior",
        "email": "bigeasy@linutronix.de"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20080923195404.GA10935@www.tglx.de/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/1165/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1165/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 67B20DE69F\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 24 Sep 2008 05:54:28 +1000 (EST)",
            "from www.tglx.de (www.tglx.de [62.245.132.106])\n\t(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\n\t(Client did not present a certificate)\n\tby ozlabs.org (Postfix) with ESMTPS id F2017DE1FC\n\tfor <linuxppc-dev@ozlabs.org>; Wed, 24 Sep 2008 05:54:12 +1000 (EST)",
            "from www.tglx.de (www.tglx.de [127.0.0.1])\n\tby www.tglx.de (8.13.8/8.13.8/TGLX-2007100201) with ESMTP id\n\tm8NJs4eW011997\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)\n\tfor <linuxppc-dev@ozlabs.org>; Tue, 23 Sep 2008 21:54:04 +0200",
            "(from bigeasy@localhost)\n\tby www.tglx.de (8.13.8/8.13.8/Submit) id m8NJs4WB011996\n\tfor linuxppc-dev@ozlabs.org; Tue, 23 Sep 2008 21:54:04 +0200"
        ],
        "Date": "Tue, 23 Sep 2008 21:54:04 +0200",
        "From": "Sebastian Siewior <bigeasy@linutronix.de>",
        "To": "linuxppc-dev@ozlabs.org",
        "Subject": "[RFC] powerpc/boot: add kernel,end node to the cuboot target",
        "Message-ID": "<20080923195404.GA10935@www.tglx.de>",
        "Mime-Version": "1.0",
        "Content-Disposition": "inline",
        "User-Agent": "Mutt/1.4.2.2i",
        "X-Key-Id": "97C4700B",
        "X-Key-Fingerprint": "09E2 D1F3 9A3A FF13 C3D3  961C 0688 1C1E 97C4 700B",
        "X-Virus-Scanned": "ClamAV 0.93.2/8314/Tue Sep 23 02:50:20 2008 on www.tglx.de",
        "X-Virus-Status": "Clean",
        "X-Spam-Status": "No, score=-1.4 required=5.0 tests=ALL_TRUSTED,\n\tAWL autolearn=ham version=3.2.4",
        "X-Spam-Checker-Version": "SpamAssassin 3.2.4 (2008-01-01) on www.tglx.de",
        "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": "this could be used by the kexec userland code.\n\nSigned-off-by: Sebastian Siewior <bigeasy@linutronix.de>\n---\nThis is done by the 64bit kexec code allready. The 32bit doesn't use the\ndevice tree at all. I'm not sure whether the node has to be a 32bit or\n64bit value.\n\n arch/powerpc/boot/main.c |    6 +++---\n 1 files changed, 3 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/arch/powerpc/boot/main.c b/arch/powerpc/boot/main.c\nindex 27f6af1..a8714cf 100644\n--- a/arch/powerpc/boot/main.c\n+++ b/arch/powerpc/boot/main.c\n@@ -27,7 +27,7 @@ struct addr_range {\n \n #undef DEBUG\n \n-static struct addr_range prep_kernel(void)\n+static struct addr_range prep_kernel(void *chosen)\n {\n \tchar elfheader[256];\n \tvoid *vmlinuz_addr = _vmlinux_start;\n@@ -72,7 +72,7 @@ static struct addr_range prep_kernel(void)\n \t\tfatal(\"ran out of data!  only got 0x%x of 0x%lx bytes.\\n\\r\",\n \t\t\t\tlen, ei.loadsize);\n \tprintf(\"done 0x%x bytes\\n\\r\", len);\n-\n+\tsetprop_val(chosen, \"linux,kernel-end\", (u32)(ei.memsize));\n \tflush_cache(addr, ei.loadsize);\n \n \treturn (struct addr_range){addr, ei.memsize};\n@@ -180,7 +180,7 @@ void start(void)\n \tif (!chosen)\n \t\tchosen = create_node(NULL, \"chosen\");\n \n-\tvmlinux = prep_kernel();\n+\tvmlinux = prep_kernel(chosen);\n \tinitrd = prep_initrd(vmlinux, chosen,\n \t\t\t     loader_info.initrd_addr, loader_info.initrd_size);\n \tprep_cmdline(chosen);\n",
    "prefixes": [
        "RFC"
    ]
}