get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 813659,
    "url": "http://patchwork.ozlabs.org/api/patches/813659/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170913220546.19560-21-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": "<20170913220546.19560-21-robdclark@gmail.com>",
    "list_archive_url": null,
    "date": "2017-09-13T22:05:43",
    "name": "[U-Boot,v3,20/21] efi_loader: Correctly figure out size for vidconsole",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "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/20170913220546.19560-21-robdclark@gmail.com/mbox/",
    "series": [
        {
            "id": 2990,
            "url": "http://patchwork.ozlabs.org/api/series/2990/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=2990",
            "date": "2017-09-13T22:05:23",
            "name": "efi_loader: enough UEFI for standard distro boot",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/2990/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/813659/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/813659/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=\"CZZWr+aZ\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xsx3N2lxfz9sxR\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 14 Sep 2017 08:21:52 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 1106FC2217C; Wed, 13 Sep 2017 22:11:26 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 4BC2CC22616;\n\tWed, 13 Sep 2017 22:08:44 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid B3D90C22625; Wed, 13 Sep 2017 22:06:57 +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 07AFFC2257F\n\tfor <u-boot@lists.denx.de>; Wed, 13 Sep 2017 22:06:54 +0000 (UTC)",
            "by mail-qt0-f195.google.com with SMTP id t46so942351qtj.3\n\tfor <u-boot@lists.denx.de>; Wed, 13 Sep 2017 15:06:53 -0700 (PDT)",
            "from localhost ([2601:184:4780:aac0:25f8:dd96:a084:785a])\n\tby smtp.gmail.com with ESMTPSA id\n\ts7sm9872594qkf.4.2017.09.13.15.06.51\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tWed, 13 Sep 2017 15:06:51 -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=CZZWr+aZ+0bGwQsRMyVu6H21zKVUsJPeebt7qc74hiVLuY5OWehTnzCi1q738YNDpb\n\tD/nk2SLrDVR2vNq0ODXuTHly8tQhLmuz1zJ3M61ZqCOxjJBI+g/CQFIjJP3N7NGjGE9W\n\t5wBQdsRHMWE8zZN5Hlud2xSGWrXMWJiSza2GHudDa284+HmY6YqHf5wOC/KA/bs4xdm0\n\tvkDNz4NCDj0TyLwODRvonlY3Zl8UWZgeb7Xbq4h8MmjQj1pn2a1TAXCIYPKV+Y6GgUWh\n\tCbIh/9HGMYJHS1d4mIkqHy2p1jgjop/7Ike0xv50uhTk2kzF29+MsPyimmrLuEFgX7tt\n\teiLg==",
        "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=DCK122Yq3bFBns+mXFHRUJwFuCAWL/HakWE1+8XgNoQ1X5ZwDEl4yHbeGENSy1xmqu\n\t1y9K1ZSW+s9TlXjBqmWy8KL3JuObKRTCXaMQG8/1dv20UmyjNW9k6coVljcQvWPbJvAm\n\tG1KFHfHFT309A/dk8Q8l1ArJwqYEWXYFhdOPj7UhM6JAM8NczX6dz/uHCval1ui8/N1L\n\toxV/Bwb+OgnrRrGV+Uvltx9vK22o3vR+PGejN4UXcEWjAa5MzuiRxa23KIC4OcNErfuD\n\tdejj6zd5sn4axOTlfy/6RPRxdzmwtFeg8/o9F7xx2rpZoXEQkA1QANO60EUOArl5zkHb\n\tEV7Q==",
        "X-Gm-Message-State": "AHPjjUiZ4JEdnNrqRKHvaYJIxX/9oVu6UL0a+MzGvFbGx6au8c5ueniq\n\t8yyqJTxw6WHUDTbkxoc=",
        "X-Google-Smtp-Source": "AOwi7QAbI5G8EwB2WJ12nhpBCu0rm90R59bF58pP8CqaokOva4luSAsMYpKWwI9U4zzQETJ1nc4obw==",
        "X-Received": "by 10.200.15.210 with SMTP id f18mr29063129qtk.226.1505340412749;\n\tWed, 13 Sep 2017 15:06:52 -0700 (PDT)",
        "From": "Rob Clark <robdclark@gmail.com>",
        "To": "U-Boot Mailing List <u-boot@lists.denx.de>",
        "Date": "Wed, 13 Sep 2017 18:05:43 -0400",
        "Message-Id": "<20170913220546.19560-21-robdclark@gmail.com>",
        "X-Mailer": "git-send-email 2.13.5",
        "In-Reply-To": "<20170913220546.19560-1-robdclark@gmail.com>",
        "References": "<20170913220546.19560-1-robdclark@gmail.com>",
        "Cc": "Heinrich Schuchardt <xypron.glpk@gmx.de>",
        "Subject": "[U-Boot] [PATCH v3 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",
        "v3",
        "20/21"
    ]
}