get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 812119,
    "url": "http://patchwork.ozlabs.org/api/patches/812119/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170910112149.21358-30-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-30-robdclark@gmail.com>",
    "list_archive_url": null,
    "date": "2017-09-10T11:21:46",
    "name": "[U-Boot,v2,20/21] efi_loader: Correctly figure out size for vidconsole",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "22447ec458c82b001a2e8e2c2f84f8b7f4852fe1",
    "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-30-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/812119/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/812119/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=\"FLqNBvcD\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xqpxr2SB3z9sDB\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun, 10 Sep 2017 21:39:44 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid D4743C21F6A; Sun, 10 Sep 2017 11:31:38 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 7E3CBC21EA8;\n\tSun, 10 Sep 2017 11:29:26 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 1DBD3C21F12; Sun, 10 Sep 2017 11:24:13 +0000 (UTC)",
            "from mail-qt0-f193.google.com (mail-qt0-f193.google.com\n\t[209.85.216.193])\n\tby lists.denx.de (Postfix) with ESMTPS id 3507FC21F5B\n\tfor <u-boot@lists.denx.de>; Sun, 10 Sep 2017 11:24:04 +0000 (UTC)",
            "by mail-qt0-f193.google.com with SMTP id b1so1748041qtc.0\n\tfor <u-boot@lists.denx.de>; Sun, 10 Sep 2017 04:24:04 -0700 (PDT)",
            "from localhost ([2601:184:4780:aac0:25f8:dd96:a084:785a])\n\tby smtp.gmail.com with ESMTPSA id\n\ta91sm4608856qka.90.2017.09.10.04.24.01\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tSun, 10 Sep 2017 04:24:02 -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=vtK1zZTLszv9J+4U8WH5KLG+0f5uZYnvDQoIBqpAXI4=;\n\tb=FLqNBvcDzWl+xPdi1uy7SNJqaf5h2slDJUNiRes2rQLmLYIMPQqBOPyGyQaAKQpuCQ\n\tKn275vLQdFIHtkK4Vjij/wn1aieRmZVymmzUgqqSijR+WFeiqjKKCoJsIUYFq9odyJw1\n\tq3XUvA1eZ2Q4R+P7EYIFj/dEgAZA4kT8gwvbdaLxacVNuP+FoFOe8yoiMxHqeyYKJUrZ\n\tf5yCn28rpTpJBUA2yAQmwuejp3gcOj87FUfPBL01NWAYXGeKfAG4sL2SRxuHQrNx/+4y\n\tdMfzLd0/uDtAno0J6VIRtPMU6Lh0ze2X3zp8fqMOFlJJ1+B6cOVcElgcKgssX7Z1RFf2\n\trrtQ==",
        "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=vtK1zZTLszv9J+4U8WH5KLG+0f5uZYnvDQoIBqpAXI4=;\n\tb=FIyGO5kLpUSZC7U3drjtrRIvrhqVA4SPcLucQ/xcL5pVUirCgi78nxguPid2tfMe8g\n\td7jEt1FP1OZWADSgQCCkZi/MmbYvL+BjGi1PoLGY5ERvmpStlSP7e2WzBsuiRoTW7OSx\n\tpjRo5BwiP+m+sPIyz2v2/9Qxy2ZgmRjPNX7irJLJrJTUObtJemiuJ/D884pQn3aCwZUa\n\t92UG6z9wbtCrw2CoyXqpSDhL+tfELSxguWhaBqkxJkjAuTz6YizWics9VXn+zle5tDhi\n\tjdcl/5fAmUjFvElPQWmkic9IJ4ycUFM0cX2AqMluD2HNhyRsuTUD91VJ1MYX96Pj1xj8\n\t7YqQ==",
        "X-Gm-Message-State": "AHPjjUgpplo08I/S53M0vtI8z9IV2cROhKTCCn94JbJK/934lLAvqzyC\n\tBVK461D3myhogy4BARY=",
        "X-Google-Smtp-Source": "AOwi7QBx3Z0YISaGH6IhfzUh3vj8OaGfn5Ds5XMX+rMV27atAoRPUgqxvGzBXUj7KCZYQqRvLcj5LA==",
        "X-Received": "by 10.200.36.132 with SMTP id s4mr11390958qts.4.1505042642947;\n\tSun, 10 Sep 2017 04:24:02 -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:46 -0400",
        "Message-Id": "<20170910112149.21358-30-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 20/21] efi_loader: Correctly figure out size for\n\tvidconsole",
        "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": "If stdout is vidconsole, we cannot rely on ANSI escape sequences to\nquery the size, as vidconsole cannot reply on stdin.  Instead special-\ncase this if stdout is vidconsole.\n\nSigned-off-by: Rob Clark <robdclark@gmail.com>\n---\n lib/efi_loader/efi_console.c | 16 +++++++++++++++-\n 1 file changed, 15 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/lib/efi_loader/efi_console.c b/lib/efi_loader/efi_console.c\nindex e8c02870eb..9048a8d32c 100644\n--- a/lib/efi_loader/efi_console.c\n+++ b/lib/efi_loader/efi_console.c\n@@ -8,7 +8,10 @@\n \n #include <common.h>\n #include <charset.h>\n+#include <dm/device.h>\n #include <efi_loader.h>\n+#include <stdio_dev.h>\n+#include <video_console.h>\n \n static bool console_size_queried;\n \n@@ -222,12 +225,23 @@ static efi_status_t EFIAPI efi_cout_query_mode(\n \tEFI_ENTRY(\"%p, %ld, %p, %p\", this, mode_number, columns, rows);\n \n \tif (!console_size_queried) {\n+\t\tconst char *stdout_name = env_get(\"stdout\");\n \t\tint rows, cols;\n \n \t\tconsole_size_queried = true;\n \n-\t\tif (query_console_serial(&rows, &cols))\n+\t\tif (stdout_name && !strcmp(stdout_name, \"vidconsole\") &&\n+\t\t    IS_ENABLED(CONFIG_DM_VIDEO)) {\n+\t\t\tstruct stdio_dev *stdout_dev =\n+\t\t\t\tstdio_get_by_name(\"vidconsole\");\n+\t\t\tstruct udevice *dev = stdout_dev->priv;\n+\t\t\tstruct vidconsole_priv *priv =\n+\t\t\t\tdev_get_uclass_priv(dev);\n+\t\t\trows = priv->rows;\n+\t\t\tcols = priv->cols;\n+\t\t} else if (query_console_serial(&rows, &cols)) {\n \t\t\tgoto out;\n+\t\t}\n \n \t\t/* Test if we can have Mode 1 */\n \t\tif (cols >= 80 && rows >= 50) {\n",
    "prefixes": [
        "U-Boot",
        "v2",
        "20/21"
    ]
}