get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 812122,
    "url": "http://patchwork.ozlabs.org/api/patches/812122/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170910112149.21358-23-robdclark@gmail.com/",
    "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": "<20170910112149.21358-23-robdclark@gmail.com>",
    "list_archive_url": null,
    "date": "2017-09-10T11:21:39",
    "name": "[U-Boot,v2,13/21] efi_loader: make pool allocations cacheline aligned",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "d3dca99e9c2fa790c1593c4cacefc927543933c9",
    "submitter": {
        "id": 18760,
        "url": "http://patchwork.ozlabs.org/api/people/18760/?format=api",
        "name": "Rob Clark",
        "email": "robdclark@gmail.com"
    },
    "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/20170910112149.21358-23-robdclark@gmail.com/mbox/",
    "series": [
        {
            "id": 2383,
            "url": "http://patchwork.ozlabs.org/api/series/2383/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=2383",
            "date": "2017-09-10T11:21:17",
            "name": "efi_loader: enough UEFI for standard distro boot",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/2383/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/812122/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/812122/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=gmail.com header.i=@gmail.com\n\theader.b=\"lISHHo7v\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xqpyy5233z9sDB\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun, 10 Sep 2017 21:40:42 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 74F02C21F8C; Sun, 10 Sep 2017 11:31:52 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id E4009C21F04;\n\tSun, 10 Sep 2017 11:29:43 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid BE801C21F0F; Sun, 10 Sep 2017 11:23:50 +0000 (UTC)",
            "from mail-qt0-f195.google.com (mail-qt0-f195.google.com\n\t[209.85.216.195])\n\tby lists.denx.de (Postfix) with ESMTPS id BD07BC21F3E\n\tfor <u-boot@lists.denx.de>; Sun, 10 Sep 2017 11:23:41 +0000 (UTC)",
            "by mail-qt0-f195.google.com with SMTP id q8so4090472qtb.1\n\tfor <u-boot@lists.denx.de>; Sun, 10 Sep 2017 04:23:41 -0700 (PDT)",
            "from localhost ([2601:184:4780:aac0:25f8:dd96:a084:785a])\n\tby smtp.gmail.com with ESMTPSA id\n\tf4sm4491825qte.76.2017.09.10.04.23.39\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tSun, 10 Sep 2017 04:23:39 -0700 (PDT)"
        ],
        "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=FREEMAIL_FROM,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,\n\tT_DKIM_INVALID\n\tautolearn=unavailable autolearn_force=no version=3.4.0",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=rRpS4m7+k9Kgg68zb96oaEj5ZZmnh1UimVhSWh7Vh34=;\n\tb=lISHHo7vdGyKqJ1RmbKU3PSerbKbyOAdN42q7xFac8dR3InrhiO+z/X8+0ANCO7oxJ\n\tTPVrkNvsc7bOHFak2twJxJl7s9v+CWU+Wu+lzrzdQ+5JLZUcSsrpJtLz3/OuMLL4Y/QF\n\tGbWYD/5xVUGdtlj4P/tdyQUrbQ0xg4JOTF7MM40Ca5wHxvJnIGwTRQ/o6UJSPD7h0gGa\n\tZDTtcz4tlpoFG/FXh+6A4rI62UTiysyS/yMpMQdwOtO3Z36DylbeJh7lRQpxa5d0Xm7O\n\tvXsj2g0oc/JdfK2PUW++CPI/VAxold6mHORMy8zcTJ7ZIS1VxuRq3FlZHj4TXjXJLtZD\n\teK7A==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=rRpS4m7+k9Kgg68zb96oaEj5ZZmnh1UimVhSWh7Vh34=;\n\tb=l4vT3MmR2V3NJO1hSm+0PrJ5k4/OXHQhGVBa9bwQr3+N3onm+yBJlmQTCwmw35s36Q\n\t1u/dWDkPNdXF+v6qPf821gS2ACtMWB/HsAGlP+Hb0KH1y2iJNOaj7yDfbOQQWKxWAlAC\n\tu/nJdLQfv165cGM5y5Y/GDM0Z1bMCE3P0qTa+mKX1THp/3sVZCJbWu3EaOyiEH1EudfI\n\tm7juSG05HYpCrYd/fdF31RZs0HMuXbWusiAhGM41GMW+7XXPY6akJdjaiomrkRE4LehT\n\tDwbgdtmyx1HyYfeqjNnkQ8ACiGjodaCz9JXeeU9SRgdOpvLBCIqMO3q+Kv8Q6etoTOZt\n\tu+zg==",
        "X-Gm-Message-State": "AHPjjUheHdgAH+sQ8hYOcHSYto240xErPFUQKLSp4ouXWjOhNhDNYVqm\n\toSQskkT3mKMcNkc4Ryw=",
        "X-Google-Smtp-Source": "AOwi7QDlxRYAyJzSKiDr3NrcDpGCqQIozbHO4GT7Zojc7m1aJK8FJrYJauqXC8IbWp0wzneZFdZXuQ==",
        "X-Received": "by 10.200.24.187 with SMTP id s56mr2032516qtj.64.1505042620546; \n\tSun, 10 Sep 2017 04:23:40 -0700 (PDT)",
        "From": "Rob Clark <robdclark@gmail.com>",
        "To": "U-Boot Mailing List <u-boot@lists.denx.de>",
        "Date": "Sun, 10 Sep 2017 07:21:39 -0400",
        "Message-Id": "<20170910112149.21358-23-robdclark@gmail.com>",
        "X-Mailer": "git-send-email 2.13.5",
        "In-Reply-To": "<20170910112149.21358-1-robdclark@gmail.com>",
        "References": "<20170910112149.21358-1-robdclark@gmail.com>",
        "Cc": "Heinrich Schuchardt <xypron.glpk@gmx.de>",
        "Subject": "[U-Boot] [PATCH v2 13/21] efi_loader: make pool allocations\n\tcacheline aligned",
        "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": "This avoids printf() spam about file reads (such as loading an image)\ninto unaligned buffers (and the associated memcpy()).  And generally\nseems like a good idea.\n\nSigned-off-by: Rob Clark <robdclark@gmail.com>\n---\n lib/efi_loader/efi_memory.c | 5 +++--\n 1 file changed, 3 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/efi_memory.c\nindex 9e079f1fa3..1f0b9d0449 100644\n--- a/lib/efi_loader/efi_memory.c\n+++ b/lib/efi_loader/efi_memory.c\n@@ -43,7 +43,7 @@ void *efi_bounce_buffer;\n  */\n struct efi_pool_allocation {\n \tu64 num_pages;\n-\tchar data[];\n+\tchar data[] __attribute__((aligned(ARCH_DMA_MINALIGN)));\n };\n \n /*\n@@ -356,7 +356,8 @@ efi_status_t efi_allocate_pool(int pool_type, unsigned long size,\n {\n \tefi_status_t r;\n \tefi_physical_addr_t t;\n-\tu64 num_pages = (size + sizeof(u64) + EFI_PAGE_MASK) >> EFI_PAGE_SHIFT;\n+\tu64 num_pages = (size + sizeof(struct efi_pool_allocation) +\n+\t\t\t EFI_PAGE_MASK) >> EFI_PAGE_SHIFT;\n \n \tif (size == 0) {\n \t\t*buffer = NULL;\n",
    "prefixes": [
        "U-Boot",
        "v2",
        "13/21"
    ]
}