get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 809836,
    "url": "http://patchwork.ozlabs.org/api/patches/809836/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1504555943-12893-15-git-send-email-pantelis.antoniou@konsulko.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": "<1504555943-12893-15-git-send-email-pantelis.antoniou@konsulko.com>",
    "list_archive_url": null,
    "date": "2017-09-04T20:12:23",
    "name": "[U-Boot,v3,14/14] test: overlay: Add unit test for stacked overlay",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "e6cce0347fc57f157cce3cf4d1ebea7d99ed51ac",
    "submitter": {
        "id": 64098,
        "url": "http://patchwork.ozlabs.org/api/people/64098/?format=api",
        "name": "Pantelis Antoniou",
        "email": "pantelis.antoniou@konsulko.com"
    },
    "delegate": {
        "id": 3184,
        "url": "http://patchwork.ozlabs.org/api/users/3184/?format=api",
        "username": "sjg",
        "first_name": "Simon",
        "last_name": "Glass",
        "email": "sjg@chromium.org"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1504555943-12893-15-git-send-email-pantelis.antoniou@konsulko.com/mbox/",
    "series": [
        {
            "id": 1453,
            "url": "http://patchwork.ozlabs.org/api/series/1453/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=1453",
            "date": "2017-09-04T20:12:09",
            "name": "uboot overlays, FIT image & unittest",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/1453/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/809836/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/809836/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\" (1024-bit key;\n\tunprotected) header.d=konsulko.com header.i=@konsulko.com\n\theader.b=\"IujoVAlO\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xmLp50Hq2z9t2R\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue,  5 Sep 2017 06:21:01 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid C6B6EC21EE1; Mon,  4 Sep 2017 20:16:52 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 9062CC21F1C;\n\tMon,  4 Sep 2017 20:16:50 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid A09EAC21EF7; Mon,  4 Sep 2017 20:13:21 +0000 (UTC)",
            "from mail-wm0-f54.google.com (mail-wm0-f54.google.com\n\t[74.125.82.54])\n\tby lists.denx.de (Postfix) with ESMTPS id 95048C21F67\n\tfor <u-boot@lists.denx.de>; Mon,  4 Sep 2017 20:13:17 +0000 (UTC)",
            "by mail-wm0-f54.google.com with SMTP id v2so10141191wmf.0\n\tfor <u-boot@lists.denx.de>; Mon, 04 Sep 2017 13:13:17 -0700 (PDT)",
            "from localhost.localdomain ([195.97.110.117])\n\tby smtp.gmail.com with ESMTPSA id\n\tu8sm3720435wrc.92.2017.09.04.13.13.15\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tMon, 04 Sep 2017 13:13:16 -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=RCVD_IN_DNSWL_NONE,\n\tRCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,\n\tT_DKIM_INVALID autolearn=unavailable\n\tautolearn_force=no version=3.4.0",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com;\n\ts=google; \n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=EiiquOuYww0ExSYvhacceNPdH2wtNIIQ6xbmA7ajnqE=;\n\tb=IujoVAlO+ox404igwki8bT8k/mBE+SHd8huTvA9W3UXjFjWCuomrp70GX3UJ80Bfgf\n\t2T4TGP3D3bwwTzqrH2UJNt3ATYs7bkXJ8siGMkbeLNrIDB8zeNDPBh7TwgJFwwXCpYS6\n\twTodYD+nK5Xy+W2lWkHckiQCyyPRRceE/BXok=",
        "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=EiiquOuYww0ExSYvhacceNPdH2wtNIIQ6xbmA7ajnqE=;\n\tb=apg0k+jDTwdaUCW1+HgO2xEPCreSNUgjl0EXp/sqd8ZgKgbt38Pa1ew54SO5oPjTOU\n\tPCM2yqGb67j/+LDSs7Usft7BUlmVqcsBEKamNQIARzjK5ALZF07Am4LF7HO9fbFftajK\n\tGvdhdmsNykXVpBKfhqBWwuCJlp22HbtWIalryq/qHoyKp9D1oT2M9kAYsJE/2cYHmUz+\n\tlf/n6K88kCciymbGw6stSBI38UG9GkAQdrtG1sR1UlEtP85Ks6SP1Ld0UrLmx3x24wFy\n\tZVyGOufzbxSY2T3FDFo6Mjtgx/2M564JrU1TuD/T6psu470X6tFKjEArTdCG8pmUuIQr\n\tEaNg==",
        "X-Gm-Message-State": "AHPjjUhRBVwDUWaR8LJ9mHh2pykL6Y7UJXMVa35SWaCSybvk7egm6vr3\n\tcTd1tpqw+qh9Piiy",
        "X-Google-Smtp-Source": "ADKCNb6t7lPFki6e0u9V0Rl7ve6roTKLCCRyik0UbW5tuEzJebtOUkLwznoiFXxSDqMSKSy6gkaGsg==",
        "X-Received": "by 10.28.9.137 with SMTP id 131mr1029304wmj.87.1504555997272;\n\tMon, 04 Sep 2017 13:13:17 -0700 (PDT)",
        "From": "Pantelis Antoniou <pantelis.antoniou@konsulko.com>",
        "To": "Tom Rini <trini@konsulko.com>",
        "Date": "Mon,  4 Sep 2017 23:12:23 +0300",
        "Message-Id": "<1504555943-12893-15-git-send-email-pantelis.antoniou@konsulko.com>",
        "X-Mailer": "git-send-email 2.1.4",
        "In-Reply-To": "<1504555943-12893-1-git-send-email-pantelis.antoniou@konsulko.com>",
        "References": "<1504555943-12893-1-git-send-email-pantelis.antoniou@konsulko.com>",
        "Cc": "Marek Vasut <marex@denx.de>,\n\tPantelis Antoniou <pantelis.antoniou@konsulko.com>,\n\tTero Kristo <t-kristo@ti.com>, u-boot@lists.denx.de,\n\tMaxime Ripard <maxime.ripard@free-electrons.com>,\n\tStefan Roese <sr@denx.de>, Alan Ott <alan@signal11.us>",
        "Subject": "[U-Boot] [PATCH v3 14/14] test: overlay: Add unit test for stacked\n\toverlay",
        "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": "Verify that stacked overlays work.\n\nSigned-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>\n---\n test/overlay/Makefile                     |  1 +\n test/overlay/cmd_ut_overlay.c             | 34 ++++++++++++++++++++++++++++++-\n test/overlay/test-fdt-overlay-stacked.dts | 21 +++++++++++++++++++\n 3 files changed, 55 insertions(+), 1 deletion(-)\n create mode 100644 test/overlay/test-fdt-overlay-stacked.dts",
    "diff": "diff --git a/test/overlay/Makefile b/test/overlay/Makefile\nindex 907f085..416645c 100644\n--- a/test/overlay/Makefile\n+++ b/test/overlay/Makefile\n@@ -13,3 +13,4 @@ DTC_FLAGS += -@\n # DT overlays\n obj-y += test-fdt-base.dtb.o\n obj-y += test-fdt-overlay.dtb.o\n+obj-y += test-fdt-overlay-stacked.dtb.o\ndiff --git a/test/overlay/cmd_ut_overlay.c b/test/overlay/cmd_ut_overlay.c\nindex 7106f42..24891ee 100644\n--- a/test/overlay/cmd_ut_overlay.c\n+++ b/test/overlay/cmd_ut_overlay.c\n@@ -20,6 +20,7 @@\n \n extern u32 __dtb_test_fdt_base_begin;\n extern u32 __dtb_test_fdt_overlay_begin;\n+extern u32 __dtb_test_fdt_overlay_stacked_begin;\n \n static int ut_fdt_getprop_u32_by_index(void *fdt, const char *path,\n \t\t\t\t    const char *name, int index,\n@@ -201,6 +202,19 @@ static int fdt_overlay_local_phandles(struct unit_test_state *uts)\n }\n OVERLAY_TEST(fdt_overlay_local_phandles, 0);\n \n+static int fdt_overlay_stacked(struct unit_test_state *uts)\n+{\n+\tvoid *fdt = uts->priv;\n+\tu32 val = 0;\n+\n+\tut_assertok(ut_fdt_getprop_u32(fdt, \"/new-local-node\",\n+\t\t\t\t       \"stacked-test-int-property\", &val));\n+\tut_asserteq(43, val);\n+\n+\treturn CMD_RET_SUCCESS;\n+}\n+OVERLAY_TEST(fdt_overlay_stacked, 0);\n+\n int do_ut_overlay(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])\n {\n \tstruct unit_test *tests = ll_entry_start(struct unit_test,\n@@ -210,7 +224,8 @@ int do_ut_overlay(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])\n \tstruct unit_test *test;\n \tvoid *fdt_base = &__dtb_test_fdt_base_begin;\n \tvoid *fdt_overlay = &__dtb_test_fdt_overlay_begin;\n-\tvoid *fdt_base_copy, *fdt_overlay_copy;\n+\tvoid *fdt_overlay_stacked = &__dtb_test_fdt_overlay_stacked_begin;\n+\tvoid *fdt_base_copy, *fdt_overlay_copy, *fdt_overlay_stacked_copy;\n \n \tuts = calloc(1, sizeof(*uts));\n \tif (!uts)\n@@ -228,6 +243,10 @@ int do_ut_overlay(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])\n \tif (!fdt_overlay_copy)\n \t\treturn -ENOMEM;\n \n+\tfdt_overlay_stacked_copy = malloc(FDT_COPY_SIZE);\n+\tif (!fdt_overlay_stacked_copy)\n+\t\treturn -ENOMEM;\n+\n \t/*\n \t * Resize the FDT to 4k so that we have room to operate on\n \t *\n@@ -245,9 +264,21 @@ int do_ut_overlay(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])\n \tut_assertok(fdt_open_into(fdt_overlay, fdt_overlay_copy,\n \t\t\t\t  FDT_COPY_SIZE));\n \n+\t/*\n+\t * Resize the stacked overlay to 4k so that we have room to operate on\n+\t *\n+\t * (and relocate it since the memory might be mapped\n+\t * read-only)\n+\t */\n+\tut_assertok(fdt_open_into(fdt_overlay_stacked, fdt_overlay_stacked_copy,\n+\t\t\t\t  FDT_COPY_SIZE));\n+\n \t/* Apply the overlay */\n \tut_assertok(fdt_overlay_apply(fdt_base_copy, fdt_overlay_copy));\n \n+\t/* Apply the stacked overlay */\n+\tut_assertok(fdt_overlay_apply(fdt_base_copy, fdt_overlay_stacked_copy));\n+\n \tif (argc == 1)\n \t\tprintf(\"Running %d environment tests\\n\", n_ents);\n \n@@ -263,6 +294,7 @@ int do_ut_overlay(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])\n \n \tprintf(\"Failures: %d\\n\", uts->fail_count);\n \n+\tfree(fdt_overlay_stacked_copy);\n \tfree(fdt_overlay_copy);\n \tfree(fdt_base_copy);\n \tfree(uts);\ndiff --git a/test/overlay/test-fdt-overlay-stacked.dts b/test/overlay/test-fdt-overlay-stacked.dts\nnew file mode 100644\nindex 0000000..9fb7c7b\n--- /dev/null\n+++ b/test/overlay/test-fdt-overlay-stacked.dts\n@@ -0,0 +1,21 @@\n+/*\n+ * Copyright (c) 2016 NextThing Co\n+ * Copyright (c) 2016 Free Electrons\n+ * Copyright (c) 2018 Konsulko Group\n+ *\n+ * SPDX-License-Identifier:\tGPL-2.0+\n+ */\n+\n+/dts-v1/;\n+/plugin/;\n+\n+/ {\n+\t/* Test that we can reference an overlay symbol */\n+\tfragment@0 {\n+\t\ttarget = <&local>;\n+\n+\t\t__overlay__ {\n+\t\t\tstacked-test-int-property = <43>;\n+\t\t};\n+\t};\n+};\n",
    "prefixes": [
        "U-Boot",
        "v3",
        "14/14"
    ]
}