get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 812143,
    "url": "http://patchwork.ozlabs.org/api/patches/812143/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170910132236.14318-4-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": "<20170910132236.14318-4-robdclark@gmail.com>",
    "list_archive_url": null,
    "date": "2017-09-10T13:22:24",
    "name": "[U-Boot,v1,03/12] efi_loader: add EFI_UNICODE_COLLATION_PROTOCOL stub",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "b5608f536501a73a021d5d1c48f104bb3f09eae9",
    "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/20170910132236.14318-4-robdclark@gmail.com/mbox/",
    "series": [
        {
            "id": 2401,
            "url": "http://patchwork.ozlabs.org/api/series/2401/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=2401",
            "date": "2017-09-10T13:22:21",
            "name": "efi_loader+video: support for Shell.efi",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/2401/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/812143/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/812143/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=\"MqLl4sid\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xqsKk1XyBz9s8J\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun, 10 Sep 2017 23:27:06 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid BA1C3C21F0A; Sun, 10 Sep 2017 13:24:11 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 08FB2C21F36;\n\tSun, 10 Sep 2017 13:23:20 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 48AF5C21F26; Sun, 10 Sep 2017 13:22:56 +0000 (UTC)",
            "from mail-qk0-f195.google.com (mail-qk0-f195.google.com\n\t[209.85.220.195])\n\tby lists.denx.de (Postfix) with ESMTPS id D9C68C21F28\n\tfor <u-boot@lists.denx.de>; Sun, 10 Sep 2017 13:22:52 +0000 (UTC)",
            "by mail-qk0-f195.google.com with SMTP id o77so4071010qke.2\n\tfor <u-boot@lists.denx.de>; Sun, 10 Sep 2017 06:22:52 -0700 (PDT)",
            "from localhost ([2601:184:4780:aac0:25f8:dd96:a084:785a])\n\tby smtp.gmail.com with ESMTPSA id\n\t48sm4538925qty.29.2017.09.10.06.22.50\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tSun, 10 Sep 2017 06:22:50 -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=VLevONSjqVfJnJYbW80jG7Q8IPFI4445jP68p46tfd8=;\n\tb=MqLl4sidANuOu0wL+dSmtMfpAgkVsBfnyYwxwlRB2OvCfn6uYzB/+BXIoJSoK0scz+\n\to7oRjqngmajVnisRoWhmRxppbvdujY9hrpw8hXL9D223XzyJurp0oNtpOieXtkXg/yBR\n\tVGZJm6Z6Tp1SLYmOmmtkNVXeHZ+MeGvfbkvwfW8W9tP1+QUVsctJvU8H10hH2PDAUarO\n\tdVhTxWpvp0U2gvszi2lJ0NIqfgVRnT4vrFdfvHztGjnOTb2oiHgCXZFNn8j7V2AWgRTq\n\tI8vgRP7dMPwaJ0QeKhzhOQGdbEEc0Ux/2n+LFRc4HjeyLdR81ezEOGksRovC5KLXCSka\n\tPKpQ==",
        "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=VLevONSjqVfJnJYbW80jG7Q8IPFI4445jP68p46tfd8=;\n\tb=DSn9bSzdCYkiUk/uD818Fa+ioHzIUxtv/z4liWYsxxxliANXdCM3J6gf322P99Sdqg\n\tk45vzdq4KikrPkCbYaiGdXkx/Hx/xYhz8EVdlC03vR/sniUvOkhukJRvQXnRTnBCWiZA\n\tuIfrwJFqwZOW9IH9JkG1GSokXGzFI2wZrp3LPfjBTcwgDC3FA6dyl6ySrD9jxZsUH+4Y\n\tl1DOH+vrmfHHF5sRvXA2U1VAkV3D5Brn/aABb9yek7ecnTE0Lm0aD+zbrWB7m2nflpZU\n\tq2Okq/dhzt9X4QkJx05tFgL8B39327eBYJQNJk3kEeZRnDdKH4wmoUKvM97SGa2J/SFx\n\txz7g==",
        "X-Gm-Message-State": "AHPjjUitKjnE38ZSM/hJzG0jNaspLny4EombCWz4ylGaKuQ0oNMOypH0\n\tz6eUBGkoe3frWJL9rPI=",
        "X-Google-Smtp-Source": "AOwi7QBUCPG9ToHMC0FUSwAAxiEloVwfStWv94EJ/s0ISrdNypi27I+h6WsRq72F78ln2/k6YadFSQ==",
        "X-Received": "by 10.55.49.73 with SMTP id x70mr12162302qkx.238.1505049771587; \n\tSun, 10 Sep 2017 06:22:51 -0700 (PDT)",
        "From": "Rob Clark <robdclark@gmail.com>",
        "To": "U-Boot Mailing List <u-boot@lists.denx.de>",
        "Date": "Sun, 10 Sep 2017 09:22:24 -0400",
        "Message-Id": "<20170910132236.14318-4-robdclark@gmail.com>",
        "X-Mailer": "git-send-email 2.13.5",
        "In-Reply-To": "<20170910132236.14318-1-robdclark@gmail.com>",
        "References": "<20170910132236.14318-1-robdclark@gmail.com>",
        "Cc": "Heinrich Schuchardt <xypron.glpk@gmx.de>, Peter Jones <pjones@redhat.com>,\n\tLeif Lindholm <leif.lindholm@linaro.org>",
        "Subject": "[U-Boot] [PATCH v1 03/12] efi_loader: add\n\tEFI_UNICODE_COLLATION_PROTOCOL stub",
        "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": "From: Leif Lindholm <leif.lindholm@linaro.org>\n\nSigned-off-by: Leif Lindholm <leif.lindholm@linaro.org>\n---\n include/efi_api.h             | 33 +++++++++++++++++++\n include/efi_loader.h          |  2 ++\n lib/efi_loader/Makefile       |  2 +-\n lib/efi_loader/efi_boottime.c |  3 ++\n lib/efi_loader/efi_unicode.c  | 73 +++++++++++++++++++++++++++++++++++++++++++\n 5 files changed, 112 insertions(+), 1 deletion(-)\n create mode 100644 lib/efi_loader/efi_unicode.c",
    "diff": "diff --git a/include/efi_api.h b/include/efi_api.h\nindex 932a3429a8..25f774f253 100644\n--- a/include/efi_api.h\n+++ b/include/efi_api.h\n@@ -740,6 +740,39 @@ struct efi_hii_string_protocol\n \t\tUINTN *secondary_languages_size);\n };\n \n+#define EFI_UNICODE_COLLATION_PROTOCOL2_GUID \\\n+\tEFI_GUID(0xa4c751fc, 0x23ae, 0x4c3e, \\\n+\t\t 0x92, 0xe9, 0x49, 0x64, 0xcf, 0x63, 0xf3, 0x49)\n+\n+struct efi_unicode_collation_protocol\n+{\n+\tINTN(EFIAPI *stri_coll)(\n+\t\tstruct efi_unicode_collation_protocol *this,\n+\t\tefi_string_t s1,\n+\t\tefi_string_t s2);\n+\tbool(EFIAPI *metai_match)(\n+\t\tstruct efi_unicode_collation_protocol *this,\n+\t\tefi_string_t string,\n+\t\tefi_string_t pattern);\n+\tvoid(EFIAPI *str_lwr)(\n+\t\tstruct efi_unicode_collation_protocol *this,\n+\t\tefi_string_t string);\n+\tvoid(EFIAPI *str_upr)(\n+\t\tstruct efi_unicode_collation_protocol *this,\n+\t\tefi_string_t string);\n+\tvoid(EFIAPI *fat_to_str)(\n+\t\tstruct efi_unicode_collation_protocol *this,\n+\t\tUINTN fat_size,\n+\t\tuint8_t *fat,\n+\t\tefi_string_t string);\n+\tbool(EFIAPI *str_to_fat)(\n+\t\tstruct efi_unicode_collation_protocol *this,\n+\t\tefi_string_t string,\n+\t\tUINTN fat_size,\n+\t\tuint8_t *fat);\n+\tuint8_t *supported_languages;\n+};\n+\n #define EFI_GOP_GUID \\\n \tEFI_GUID(0x9042a9de, 0x23dc, 0x4a38, \\\n \t\t 0x96, 0xfb, 0x7a, 0xde, 0xd0, 0x80, 0x51, 0x6a)\ndiff --git a/include/efi_loader.h b/include/efi_loader.h\nindex a89bb2fcd9..6668338d0b 100644\n--- a/include/efi_loader.h\n+++ b/include/efi_loader.h\n@@ -62,6 +62,7 @@ extern const struct efi_device_path_utilities_protocol efi_device_path_utilities\n extern const struct efi_hii_config_routing_protocol efi_hii_config_routing;\n extern const struct efi_hii_database_protocol efi_hii_database;\n extern const struct efi_hii_string_protocol efi_hii_string;\n+extern const struct efi_unicode_collation_protocol efi_unicode_collation;\n \n uint16_t *efi_dp_str(struct efi_device_path *dp);\n \n@@ -76,6 +77,7 @@ extern const efi_guid_t efi_guid_device_path_utilities_protocol;\n extern const efi_guid_t efi_guid_hii_config_routing_protocol;\n extern const efi_guid_t efi_guid_hii_database_protocol;\n extern const efi_guid_t efi_guid_hii_string_protocol;\n+extern const efi_guid_t efi_guid_unicode_collation_protocol2;\n \n extern unsigned int __efi_runtime_start, __efi_runtime_stop;\n extern unsigned int __efi_runtime_rel_start, __efi_runtime_rel_stop;\ndiff --git a/lib/efi_loader/Makefile b/lib/efi_loader/Makefile\nindex e8fd6823a3..82b703bb39 100644\n--- a/lib/efi_loader/Makefile\n+++ b/lib/efi_loader/Makefile\n@@ -16,7 +16,7 @@ always := $(efiprogs-y)\n obj-$(CONFIG_CMD_BOOTEFI_HELLO) += helloworld_efi.o\n obj-y += efi_image_loader.o efi_boottime.o efi_runtime.o efi_console.o\n obj-y += efi_memory.o efi_device_path_to_text.o efi_device_path.o\n-obj-y += efi_device_path_utilities.o efi_hii.o\n+obj-y += efi_device_path_utilities.o efi_hii.o efi_unicode.o\n obj-y += efi_file.o efi_variable.o efi_bootmgr.o\n obj-$(CONFIG_LCD) += efi_gop.o\n obj-$(CONFIG_DM_VIDEO) += efi_gop.o\ndiff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c\nindex 4d1a16051b..04358e8aca 100644\n--- a/lib/efi_loader/efi_boottime.c\n+++ b/lib/efi_loader/efi_boottime.c\n@@ -788,6 +788,9 @@ void efi_setup_loaded_image(struct efi_loaded_image *info, struct efi_object *ob\n \tobj->protocols[7].guid = &efi_guid_hii_config_routing_protocol;\n \tobj->protocols[7].protocol_interface = (void *)&efi_hii_config_routing;\n \n+\tobj->protocols[8].guid = &efi_guid_unicode_collation_protocol2;\n+\tobj->protocols[8].protocol_interface = (void *)&efi_unicode_collation;\n+\n \tinfo->file_path = file_path;\n \tinfo->device_handle = efi_dp_find_obj(device_path, NULL);\n \ndiff --git a/lib/efi_loader/efi_unicode.c b/lib/efi_loader/efi_unicode.c\nnew file mode 100644\nindex 0000000000..fdf1a99812\n--- /dev/null\n+++ b/lib/efi_loader/efi_unicode.c\n@@ -0,0 +1,73 @@\n+/*\n+*  EFI Unicode interface\n+ *\n+ *  Copyright (c) 2017 Leif Lindholm\n+ *\n+ *  SPDX-License-Identifier:     GPL-2.0+\n+ */\n+\n+#include <common.h>\n+#include <efi_loader.h>\n+\n+const efi_guid_t efi_guid_unicode_collation_protocol2 =\n+\tEFI_UNICODE_COLLATION_PROTOCOL2_GUID;\n+\n+INTN stri_coll(struct efi_unicode_collation_protocol *this,\n+\t       efi_string_t s1,\n+\t       efi_string_t s2)\n+{\n+\tEFI_ENTRY(\"%p, \\\"%ls\\\", \\\"%ls\\\"\", this, s1, s2);\n+\treturn EFI_EXIT(0);\n+}\n+\n+bool metai_match(struct efi_unicode_collation_protocol *this,\n+\t\t efi_string_t string,\n+\t\t efi_string_t pattern)\n+{\n+\tEFI_ENTRY(\"%p, \\\"%ls\\\", \\\"%ls\\\"\", this, string, pattern);\n+\treturn EFI_EXIT(false);\n+}\n+\n+void str_lwr(struct efi_unicode_collation_protocol *this,\n+\t     efi_string_t string)\n+{\n+\tEFI_ENTRY(\"%p, \\\"%ls\\\"\", this, string);\n+\tEFI_EXIT(0);\n+\treturn;\n+}\n+\n+void str_upr(struct efi_unicode_collation_protocol *this,\n+\t     efi_string_t string)\n+{\n+\tEFI_ENTRY(\"%p, \\\"%ls\\\"\", this, string);\n+\tEFI_EXIT(0);\n+\treturn;\n+}\n+\n+void fat_to_str(struct efi_unicode_collation_protocol *this,\n+\t\tUINTN fat_size,\n+\t\tuint8_t *fat,\n+\t\tefi_string_t string)\n+{\n+\tEFI_ENTRY(\"%p, %lu, \\\"%s\\\", %p\", this, fat_size, fat, string);\n+\tEFI_EXIT(0);\n+\treturn;\n+}\n+\n+bool str_to_fat(struct efi_unicode_collation_protocol *this,\n+\t\tefi_string_t string,\n+\t\tUINTN fat_size,\n+\t\tuint8_t *fat)\n+{\n+\tEFI_ENTRY(\"%p, \\\"%ls\\\", %lu, %p\", this, string, fat_size, fat);\n+\treturn EFI_EXIT(false);\n+}\n+\n+const struct efi_unicode_collation_protocol efi_unicode_collation = {\n+\t.stri_coll = stri_coll,\n+\t.metai_match = metai_match,\n+\t.str_lwr = str_lwr,\n+\t.str_upr = str_upr,\n+\t.fat_to_str = fat_to_str,\n+\t.str_to_fat = str_to_fat\n+};\n",
    "prefixes": [
        "U-Boot",
        "v1",
        "03/12"
    ]
}