get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 797328,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/797328/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170803164705.10591-2-robdclark@gmail.com/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20170803164705.10591-2-robdclark@gmail.com>",
    "list_archive_url": null,
    "date": "2017-08-03T16:47:00",
    "name": "[U-Boot,2/3] video: simplefb",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "81c55d9278e988aabd73ed57196854aaccf626b8",
    "submitter": {
        "id": 18760,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/18760/?format=api",
        "name": "Rob Clark",
        "email": "robdclark@gmail.com"
    },
    "delegate": {
        "id": 1700,
        "url": "http://patchwork.ozlabs.org/api/1.2/users/1700/?format=api",
        "username": "ag",
        "first_name": "Anatolij",
        "last_name": "Gustschin",
        "email": "agust@denx.de"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20170803164705.10591-2-robdclark@gmail.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/797328/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/797328/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=\"plwe6pdB\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xNbbS6cp9z9s7v\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri,  4 Aug 2017 02:48:20 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid A2AACC21D57; Thu,  3 Aug 2017 16:47:31 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 66037C21DBA;\n\tThu,  3 Aug 2017 16:47:27 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid E6ED6C21D57; Thu,  3 Aug 2017 16:47:20 +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 2F8DEC21DBA\n\tfor <u-boot@lists.denx.de>; Thu,  3 Aug 2017 16:47:17 +0000 (UTC)",
            "by mail-qk0-f195.google.com with SMTP id a77so1791837qkb.2\n\tfor <u-boot@lists.denx.de>; Thu, 03 Aug 2017 09:47:17 -0700 (PDT)",
            "from localhost ([144.121.20.162]) by smtp.gmail.com with ESMTPSA id\n\tz1sm24326137qtz.62.2017.08.03.09.47.14\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tThu, 03 Aug 2017 09:47:14 -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=kQudr+31GY9UswiH2M7YcoEDCsrPRlF04DO4LJA6XiY=;\n\tb=plwe6pdBaMT6JtesMJ33ks7Q9VPffB2/IX5tpigL7noOcMJiuWzlITqIZ/P8vfo67i\n\t6qUeQ0lLCF1MmnZdfeVm2Ue1wsv0fPanCYBy1ntPVBpflxo7h37JurVjugvIMA55ZhF+\n\tWxEqB21hPRbAhCn74z0OD6ACLFq0MfvxBV3iVY7oTdT2mHSK8BXbQ4Kp6Fo7FxKaUNRf\n\t8EmGtvnGUtVjR/n48zGa1Z0iqSZbzpoFSYTsYDggK2Zup5Br8YBlrSu2pgBTZ3xMIVj0\n\tDEcMdqzOfhSEFZfV7tKy+nNzIFgwYPHlN2RksL0pAY268ig3u51/owHFs9fyp22QFMW4\n\trvDw==",
        "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=kQudr+31GY9UswiH2M7YcoEDCsrPRlF04DO4LJA6XiY=;\n\tb=TWbum5oNdxoV37B7/CDi9GTLwsG3RzCyfJw0EdNo+6VWa5vNwsN0iTvPt0/O0MHXR9\n\tMiKEZM0ihW784oO7k0I52bVLYH3uiArXYk4/986EANU6tf7JsrscBkK99LMak4C+gl0I\n\tQbLpVkMFfIOgkWBXPnLzTlCxzc/QfZA/48hyoUNtU5l+KEJokL7tnks/AmWCrmqgpB4Z\n\tJQ5SOY097JEp96CeL7moXuwm2siqemgkk1/G43yTGOUBl9lTKqjv/aAu9iGFUxIcbp6m\n\thgAIOAUa0dh4zkqnClWys4u7cRHlduGTRlaNjnYesKQX9PK47faUvrjuI19qG4X4nB0n\n\tvhYg==",
        "X-Gm-Message-State": "AHYfb5jb54M9b+X3wXV/+RAjBNVmI1DsOYLG0pEo8yKCfiY35CRqubhw\n\tAt/uzvh4yyoXHrV5oKY=",
        "X-Received": "by 10.55.180.198 with SMTP id d189mr3020171qkf.103.1501778835743;\n\tThu, 03 Aug 2017 09:47:15 -0700 (PDT)",
        "From": "Rob Clark <robdclark@gmail.com>",
        "To": "U-Boot Mailing List <u-boot@lists.denx.de>",
        "Date": "Thu,  3 Aug 2017 12:47:00 -0400",
        "Message-Id": "<20170803164705.10591-2-robdclark@gmail.com>",
        "X-Mailer": "git-send-email 2.13.0",
        "In-Reply-To": "<20170803164705.10591-1-robdclark@gmail.com>",
        "References": "<20170803164705.10591-1-robdclark@gmail.com>",
        "Subject": "[U-Boot] [PATCH 2/3] video: simplefb",
        "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": "Not really qcom specific, but for now qcom/lk is the one firmware that\nis (afaiu) setting up the appropriate dt node for pre-configured\ndisplay.  Uses the generic simple-framebuffer DT bindings so this should\nbe useful on other platforms.\n\nSigned-off-by: Rob Clark <robdclark@gmail.com>\n---\n drivers/video/Kconfig    | 10 +++++++\n drivers/video/Makefile   |  2 +-\n drivers/video/simplefb.c | 71 ++++++++++++++++++++++++++++++++++++++++++++++++\n 3 files changed, 82 insertions(+), 1 deletion(-)\n create mode 100644 drivers/video/simplefb.c",
    "diff": "diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig\nindex 61dfed8c06..8eb0359231 100644\n--- a/drivers/video/Kconfig\n+++ b/drivers/video/Kconfig\n@@ -628,4 +628,14 @@ config VIDEO_DW_HDMI\n \t  rather requires a SoC-specific glue driver to call it), it\n \t  can not be enabled from the configuration menu.\n \n+config VIDEO_SIMPLE\n+\tbool \"Simple display driver for preconfigured display\"\n+\thelp\n+\t  Enables a simple generic display driver which utilizes the\n+\t  simple-framebuffer devicetree bindings.\n+\n+\t  This driver assumes that the display hardware has been initialized\n+\t  before u-boot starts, and u-boot will simply render to the pre-\n+\t  allocated frame buffer surface.\n+\n endmenu\ndiff --git a/drivers/video/Makefile b/drivers/video/Makefile\nindex ac5371f2ae..52f50f647b 100644\n--- a/drivers/video/Makefile\n+++ b/drivers/video/Makefile\n@@ -57,7 +57,7 @@ obj-$(CONFIG_FORMIKE) += formike.o\n obj-$(CONFIG_LG4573) += lg4573.o\n obj-$(CONFIG_AM335X_LCD) += am335x-fb.o\n obj-$(CONFIG_VIDEO_DW_HDMI) += dw_hdmi.o\n-\n+obj-$(CONFIG_VIDEO_SIMPLE) += simplefb.o\n obj-${CONFIG_VIDEO_TEGRA124} += tegra124/\n obj-${CONFIG_EXYNOS_FB} += exynos/\n obj-${CONFIG_VIDEO_ROCKCHIP} += rockchip/\ndiff --git a/drivers/video/simplefb.c b/drivers/video/simplefb.c\nnew file mode 100644\nindex 0000000000..035a9761b9\n--- /dev/null\n+++ b/drivers/video/simplefb.c\n@@ -0,0 +1,71 @@\n+/*\n+ * (C) Copyright 2017 Rob Clark\n+ *\n+ * SPDX-License-Identifier:\tGPL-2.0+\n+ */\n+\n+#include <common.h>\n+#include <dm.h>\n+#include <fdtdec.h>\n+#include <fdt_support.h>\n+#include <video.h>\n+\n+static int simple_video_probe(struct udevice *dev)\n+{\n+\tstruct video_uc_platdata *plat = dev_get_uclass_platdata(dev);\n+\tstruct video_priv *uc_priv = dev_get_uclass_priv(dev);\n+\tconst void *blob = gd->fdt_blob;\n+\tconst int node = dev_of_offset(dev);\n+\tconst char *format;\n+\tfdt_addr_t base;\n+\tfdt_size_t size;\n+\n+\tbase = fdtdec_get_addr_size_auto_parent(blob, dev_of_offset(dev->parent),\n+\t\t\tnode, \"reg\", 0, &size, false);\n+\tif (base == FDT_ADDR_T_NONE) {\n+\t\tdebug(\"%s: Failed to decode memory region\\n\", __func__);\n+\t\treturn -EINVAL;\n+\t}\n+\n+\tdebug(\"%s: base=%llx, size=%llu\\n\", __func__, base, size);\n+\n+\t// TODO is there some way to reserve the framebuffer\n+\t// region so it isn't clobbered?\n+\tplat->base = base;\n+\tplat->size = size;\n+\n+\tvideo_set_flush_dcache(dev, true);\n+\n+\tdebug(\"%s: Query resolution...\\n\", __func__);\n+\n+\tuc_priv->xsize = fdtdec_get_uint(blob, node, \"width\", 0);\n+\tuc_priv->ysize = fdtdec_get_uint(blob, node, \"height\", 0);\n+\tuc_priv->rot = 0;\n+\n+\tformat = fdt_getprop(blob, node, \"format\", NULL);\n+\tdebug(\"%s: %dx%d@%s\\n\", __func__, uc_priv->xsize, uc_priv->ysize, format);\n+\n+\tif (strcmp(format, \"r5g6b5\") == 0) {\n+\t\tuc_priv->bpix = VIDEO_BPP16;\n+\t} else if (strcmp(format, \"a8b8g8r8\") == 0) {\n+\t\tuc_priv->bpix = VIDEO_BPP32;\n+\t} else {\n+\t\tprintf(\"%s: invalid format: %s\\n\", __func__, format);\n+\t\treturn -EINVAL;\n+\t}\n+\n+\treturn 0;\n+}\n+\n+static const struct udevice_id simple_video_ids[] = {\n+\t{ .compatible = \"simple-framebuffer\" },\n+\t{ }\n+};\n+\n+U_BOOT_DRIVER(simple_video) = {\n+\t.name\t= \"simple_video\",\n+\t.id\t= UCLASS_VIDEO,\n+\t.of_match = simple_video_ids,\n+\t.probe\t= simple_video_probe,\n+\t.flags\t= DM_FLAG_PRE_RELOC,\n+};\n",
    "prefixes": [
        "U-Boot",
        "2/3"
    ]
}