get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 814726,
    "url": "http://patchwork.ozlabs.org/api/patches/814726/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170917225927.117917-10-sjg@chromium.org/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api",
        "name": "U-Boot",
        "link_name": "uboot",
        "list_id": "u-boot.lists.denx.de",
        "list_email": "u-boot@lists.denx.de",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20170917225927.117917-10-sjg@chromium.org>",
    "list_archive_url": null,
    "date": "2017-09-17T22:59:20",
    "name": "[U-Boot,09/16] efi: sandbox: Add required linker sections",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "064ef56190c086b05140c66ea646d93f35be4502",
    "submitter": {
        "id": 6170,
        "url": "http://patchwork.ozlabs.org/api/people/6170/?format=api",
        "name": "Simon Glass",
        "email": "sjg@chromium.org"
    },
    "delegate": {
        "id": 3400,
        "url": "http://patchwork.ozlabs.org/api/users/3400/?format=api",
        "username": "agraf",
        "first_name": "Alexander",
        "last_name": "Graf",
        "email": "agraf@suse.de"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20170917225927.117917-10-sjg@chromium.org/mbox/",
    "series": [
        {
            "id": 3549,
            "url": "http://patchwork.ozlabs.org/api/series/3549/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=3549",
            "date": "2017-09-17T22:59:11",
            "name": "efi: Enable basic sandbox support for EFI loader",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/3549/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/814726/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/814726/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<u-boot-bounces@lists.denx.de>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=google.com header.i=@google.com\n\theader.b=\"pDm3yDUT\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xwRGZ59Vmz9s78\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 18 Sep 2017 10:10:14 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 65AA3C21EA5; Mon, 18 Sep 2017 00:10:13 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 411BAC21EBD;\n\tSun, 17 Sep 2017 23:02:06 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 229FBC21E9C; Sun, 17 Sep 2017 23:02:04 +0000 (UTC)",
            "from mail-io0-f182.google.com (mail-io0-f182.google.com\n\t[209.85.223.182])\n\tby lists.denx.de (Postfix) with ESMTPS id 204ADC21DD9\n\tfor <u-boot@lists.denx.de>; Sun, 17 Sep 2017 22:59:40 +0000 (UTC)",
            "by mail-io0-f182.google.com with SMTP id w94so14831468ioi.7\n\tfor <u-boot@lists.denx.de>; Sun, 17 Sep 2017 15:59:40 -0700 (PDT)",
            "from kiwi.bld.corp.google.com ([2620:0:10f2:0:50ee:364d:633f:bd4e])\n\tby smtp.gmail.com with ESMTPSA id\n\tg198sm7905095oic.38.2017.09.17.15.59.37\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tSun, 17 Sep 2017 15:59:37 -0700 (PDT)",
            "by kiwi.bld.corp.google.com (Postfix, from userid 121222)\n\tid CF82F141802; Sun, 17 Sep 2017 16:59:36 -0600 (MDT)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,\n\tRCVD_IN_MSPIKE_H2,\n\tT_DKIM_INVALID autolearn=unavailable autolearn_force=no\n\tversion=3.4.0",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n\ts=20161025; \n\th=sender:from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=nOD0K/WF4u5GUZJ++uWS5GqX7/38PCJcHdsitcb8YcU=;\n\tb=pDm3yDUTUZ1Gdi8vj2q5+8Kdr+eW/iqG4wXHcEqmn4oqW6smTDEv7m6H/er3fM3tur\n\tqYNKSTMG4+XWoyermP9NFYdUe2tIbMwosWzhIVV50RvoraXKnJ+nEZ240Cm3Z68CcIxJ\n\t8dcLEdWHM+qEkdhVt1iTKH/XbUkswjFWPGVgcWlXxhB8ORqFwKBaqbb80RSchm+OzxSv\n\ts+Wsw9ulssuleib9N/4WxiBEkDkFG2g/XsAde9jq9JoUH3Qng23CZxNmRcWILaR6NhY0\n\tCHvg2RtBDsWPbq+c7t1qXwy7ImassiC7PNHahzpRmKco8K7Fdi7XgHH+3/VDpVqFxKrX\n\t3/pw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id\n\t:in-reply-to:references;\n\tbh=nOD0K/WF4u5GUZJ++uWS5GqX7/38PCJcHdsitcb8YcU=;\n\tb=qHrNFULnd1pnL/704oy5w2elY3JxJvJrmjY8cCQ6y/LHphWQ4I9o42JCeR22UeZzgs\n\tDNVfvTEtekgMoaLH83BLZLZkreyzYT6BHrHE8an+st8a2esLEXu/oKXWmvhwQk8mjev4\n\t5fiu/0VVIwBpAC7Ew6Bz54BvFbO98t+dDMYwp/0Qpb/Q8gkQa7YrmiEdrpA4J1k6P3LI\n\thmWHNuw0Xu2SJofWgbaGxYm9/Ce6htXFEO7Bb/8JsEDyl/FGahCR9PeI10aKjzu3iMbz\n\tAJVXLcDJEHLs0sPnATjy9eicXVgM5fz1UJz1ZH3Q+RJqawaUOnDo5gh/CaojjmD74D+p\n\tOqxA==",
        "X-Gm-Message-State": "AHPjjUhGSFV5bCm3evf8esqAwuWTN90kAt220ZC8XLIk01udZtHWM7JK\n\tDdBNjSP8bsrESs6x",
        "X-Google-Smtp-Source": "AOwi7QB48uYVhmGQ4kjQzpX4QEDGJ9Y1kvfipUI8mr6OSuHkgZPU1TfUdlc5SujcuFmhv0wTLv2LqA==",
        "X-Received": "by 10.202.72.22 with SMTP id v22mr642491oia.117.1505689178808;\n\tSun, 17 Sep 2017 15:59:38 -0700 (PDT)",
        "From": "Simon Glass <sjg@chromium.org>",
        "To": "U-Boot Mailing List <u-boot@lists.denx.de>",
        "Date": "Sun, 17 Sep 2017 16:59:20 -0600",
        "Message-Id": "<20170917225927.117917-10-sjg@chromium.org>",
        "X-Mailer": "git-send-email 2.14.1.690.gbb1197296e-goog",
        "In-Reply-To": "<20170917225927.117917-1-sjg@chromium.org>",
        "References": "<20170917225927.117917-1-sjg@chromium.org>",
        "Cc": "Andy Shevchenko <andriy.shevchenko@linux.intel.com>,\n\tHeinrich Schuchardt <xypron.glpk@gmx.de>",
        "Subject": "[U-Boot] [PATCH 09/16] efi: sandbox: Add required linker sections",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.18",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>",
        "List-Archive": "<http://lists.denx.de/pipermail/u-boot/>",
        "List-Post": "<mailto:u-boot@lists.denx.de>",
        "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>",
        "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Errors-To": "u-boot-bounces@lists.denx.de",
        "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>"
    },
    "content": "The EFI loader code requires certain linker sections to exist. Add these\nfor sandbox so that the EFI loader code will link.\n\nSigned-off-by: Simon Glass <sjg@chromium.org>\n---\n\n arch/sandbox/cpu/u-boot.lds | 29 +++++++++++++++++++++++++++++\n arch/sandbox/lib/Makefile   |  2 +-\n arch/sandbox/lib/sections.c | 12 ++++++++++++\n 3 files changed, 42 insertions(+), 1 deletion(-)\n create mode 100644 arch/sandbox/lib/sections.c",
    "diff": "diff --git a/arch/sandbox/cpu/u-boot.lds b/arch/sandbox/cpu/u-boot.lds\nindex 7e92b4ac66..38a74bcaf4 100644\n--- a/arch/sandbox/cpu/u-boot.lds\n+++ b/arch/sandbox/cpu/u-boot.lds\n@@ -19,6 +19,35 @@ SECTIONS\n \t__u_boot_sandbox_option_end = .;\n \n \t__bss_start = .;\n+\n+\t\t.__efi_runtime_start : {\n+\t\t*(.__efi_runtime_start)\n+\t}\n+\n+\t.efi_runtime : {\n+\t\t*(efi_runtime_text)\n+\t\t*(efi_runtime_data)\n+\t}\n+\n+\t.__efi_runtime_stop : {\n+\t\t*(.__efi_runtime_stop)\n+\t}\n+\n+\t.efi_runtime_rel_start :\n+\t{\n+\t\t*(.__efi_runtime_rel_start)\n+\t}\n+\n+\t.efi_runtime_rel : {\n+\t\t*(.relefi_runtime_text)\n+\t\t*(.relefi_runtime_data)\n+\t}\n+\n+\t.efi_runtime_rel_stop :\n+\t{\n+\t\t*(.__efi_runtime_rel_stop)\n+\t}\n+\n }\n \n INSERT BEFORE .data;\ndiff --git a/arch/sandbox/lib/Makefile b/arch/sandbox/lib/Makefile\nindex 2e7802feac..d2171579b7 100644\n--- a/arch/sandbox/lib/Makefile\n+++ b/arch/sandbox/lib/Makefile\n@@ -7,7 +7,7 @@\n # SPDX-License-Identifier:\tGPL-2.0+\n #\n \n-obj-y\t+= interrupts.o\n+obj-y\t+= interrupts.o sections.o\n ifndef CONFIG_SPL_BUILD\n obj-$(CONFIG_PCI)\t+= pci_io.o\n endif\ndiff --git a/arch/sandbox/lib/sections.c b/arch/sandbox/lib/sections.c\nnew file mode 100644\nindex 0000000000..6455e0f088\n--- /dev/null\n+++ b/arch/sandbox/lib/sections.c\n@@ -0,0 +1,12 @@\n+/*\n+ * Copyright 2013 Albert ARIBAUD <albert.u.boot@aribaud.net>\n+ *\n+ * SPDX-License-Identifier:\tGPL-2.0+\n+ */\n+\n+char __efi_runtime_start[0] __attribute__((section(\".__efi_runtime_start\")));\n+char __efi_runtime_stop[0] __attribute__((section(\".__efi_runtime_stop\")));\n+char __efi_runtime_rel_start[0]\n+\t\t__attribute__((section(\".__efi_runtime_rel_start\")));\n+char __efi_runtime_rel_stop[0]\n+\t\t__attribute__((section(\".__efi_runtime_rel_stop\")));\n",
    "prefixes": [
        "U-Boot",
        "09/16"
    ]
}