get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 965474,
    "url": "http://patchwork.ozlabs.org/api/patches/965474/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20180903144711.31585-2-jens.wiklander@linaro.org/",
    "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": "<20180903144711.31585-2-jens.wiklander@linaro.org>",
    "list_archive_url": null,
    "date": "2018-09-03T14:46:52",
    "name": "[U-Boot,v3,01/20] dm: fdt: scan for devices under /firmware too",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "6b96e769bf34eab002c049db9c71ca7a38b40b31",
    "submitter": {
        "id": 66201,
        "url": "http://patchwork.ozlabs.org/api/people/66201/?format=api",
        "name": "Jens Wiklander",
        "email": "jens.wiklander@linaro.org"
    },
    "delegate": {
        "id": 3651,
        "url": "http://patchwork.ozlabs.org/api/users/3651/?format=api",
        "username": "trini",
        "first_name": "Tom",
        "last_name": "Rini",
        "email": "trini@ti.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20180903144711.31585-2-jens.wiklander@linaro.org/mbox/",
    "series": [
        {
            "id": 63875,
            "url": "http://patchwork.ozlabs.org/api/series/63875/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=63875",
            "date": "2018-09-03T14:46:51",
            "name": "AVB using OP-TEE",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/63875/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/965474/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/965474/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\tdmarc=fail (p=none dis=none) header.from=linaro.org",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=linaro.org header.i=@linaro.org\n\theader.b=\"eoWk0O2r\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 423tBl5WyJz9s55\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue,  4 Sep 2018 00:48:47 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 4940AC21ECF; Mon,  3 Sep 2018 14:47:58 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id A9B1CC21E39;\n\tMon,  3 Sep 2018 14:47:23 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 87A44C21E02; Mon,  3 Sep 2018 14:47:21 +0000 (UTC)",
            "from mail-lf1-f68.google.com (mail-lf1-f68.google.com\n\t[209.85.167.68])\n\tby lists.denx.de (Postfix) with ESMTPS id 33EC0C21DF9\n\tfor <u-boot@lists.denx.de>; Mon,  3 Sep 2018 14:47:21 +0000 (UTC)",
            "by mail-lf1-f68.google.com with SMTP id x207-v6so663914lff.3\n\tfor <u-boot@lists.denx.de>; Mon, 03 Sep 2018 07:47:21 -0700 (PDT)",
            "from jax.ideon.se ([85.235.10.227])\n\tby smtp.gmail.com with ESMTPSA id\n\tw18-v6sm3343431ljd.73.2018.09.03.07.47.18\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 03 Sep 2018 07:47:19 -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_MSPIKE_H2,\n\tT_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=iQSx05HMMUi4xwXlVR+Lc/rZdgi5IRf7YE6TG4glvE8=;\n\tb=eoWk0O2ra0hW580skXb9KIYU5DkdUDkea23UyGWNiuMl8lQM8A8Piyn1Y3xsrgELo7\n\ta0DXAQPC9LyjaE9+MpWg2r87IAl6IycnL1Yen2bz8hp31MaMFcyoxp2rb4VqcOml1Eit\n\tmWW3t7rY0Vb49Vuf3MRI2EiX0Z97lwdfLUFeM=",
        "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=iQSx05HMMUi4xwXlVR+Lc/rZdgi5IRf7YE6TG4glvE8=;\n\tb=Fm3X0PXiDQ+5tZIjAT/nJU1Y85l+JtsZkwx3TyOcG7uzrxe2EXglVBO8LgRfpZe2Zo\n\t4akNGq7GNsCyjJ7MOUNr82cWoGb15Qrw62hKFJiLvJUsmpFlMd0jw5SyzrU0K680mMwO\n\to3sXwtuTPKxjO0fgResUpWDdSzU8ESYcMKRC7eSLo6yc35FPwDxyTrYtqxGVLDjvKmMK\n\tJddXXRbr5ngFsPH6JeI4g18NSsX0NhM9ti15k+zS8pDzMZkSaKRXjkN8ST/adkiDWNCV\n\tB4YhwG3s4vt/bLllKktvDN/vUoqkGjWyxe4tFGJfmUmQfzJiF5Qhggq6a/4aZ+n+C4Dd\n\t5AQA==",
        "X-Gm-Message-State": "APzg51AD+a4jHlsCfT6MFdW2mTNYeUmy9mf44c7FxXWoBuaA7qZoM3H+\n\tAbBg28Ipd6k5CwthhTojKEr4VPxHWq8=",
        "X-Google-Smtp-Source": "ANB0Vdb0Y7anrxdlsHhesqYIkbY0k2JSxlfvrfU7YJMfmZRYN4Ah5FfufwUp5Vwyvn3XUAKUh8OkXA==",
        "X-Received": "by 2002:a19:94c3:: with SMTP id\n\to64-v6mr17730433lfk.70.1535986040235; \n\tMon, 03 Sep 2018 07:47:20 -0700 (PDT)",
        "From": "Jens Wiklander <jens.wiklander@linaro.org>",
        "To": "u-boot@lists.denx.de",
        "Date": "Mon,  3 Sep 2018 16:46:52 +0200",
        "Message-Id": "<20180903144711.31585-2-jens.wiklander@linaro.org>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20180903144711.31585-1-jens.wiklander@linaro.org>",
        "References": "<20180903144711.31585-1-jens.wiklander@linaro.org>",
        "Cc": "Tom Rini <trini@konsulko.com>, Pierre Aubert <p.aubert@staubli.com>",
        "Subject": "[U-Boot] [PATCH v3 01/20] dm: fdt: scan for devices under /firmware\n\ttoo",
        "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": "Just as /chosen may contain devices /firmware may contain devices, scan\nfor devices under /firmware too.\n\nReviewed-by: Simon Glass <sjg@chromium.org>\nSigned-off-by: Jens Wiklander <jens.wiklander@linaro.org>\n---\n drivers/core/root.c | 15 ++++++++++-----\n 1 file changed, 10 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/drivers/core/root.c b/drivers/core/root.c\nindex 72bcc7d7f2a3..0dca507e1187 100644\n--- a/drivers/core/root.c\n+++ b/drivers/core/root.c\n@@ -265,9 +265,15 @@ static int dm_scan_fdt_node(struct udevice *parent, const void *blob,\n \tfor (offset = fdt_first_subnode(blob, offset);\n \t     offset > 0;\n \t     offset = fdt_next_subnode(blob, offset)) {\n-\t\t/* \"chosen\" node isn't a device itself but may contain some: */\n-\t\tif (!strcmp(fdt_get_name(blob, offset, NULL), \"chosen\")) {\n-\t\t\tpr_debug(\"parsing subnodes of \\\"chosen\\\"\\n\");\n+\t\tconst char *node_name = fdt_get_name(blob, offset, NULL);\n+\n+\t\t/*\n+\t\t * The \"chosen\" and \"firmware\" nodes aren't devices\n+\t\t * themselves but may contain some:\n+\t\t */\n+\t\tif (!strcmp(node_name, \"chosen\") ||\n+\t\t    !strcmp(node_name, \"firmware\")) {\n+\t\t\tpr_debug(\"parsing subnodes of \\\"%s\\\"\\n\", node_name);\n \n \t\t\terr = dm_scan_fdt_node(parent, blob, offset,\n \t\t\t\t\t       pre_reloc_only);\n@@ -286,8 +292,7 @@ static int dm_scan_fdt_node(struct udevice *parent, const void *blob,\n \t\terr = lists_bind_fdt(parent, offset_to_ofnode(offset), NULL);\n \t\tif (err && !ret) {\n \t\t\tret = err;\n-\t\t\tdebug(\"%s: ret=%d\\n\", fdt_get_name(blob, offset, NULL),\n-\t\t\t      ret);\n+\t\t\tdebug(\"%s: ret=%d\\n\", node_name, ret);\n \t\t}\n \t}\n \n",
    "prefixes": [
        "U-Boot",
        "v3",
        "01/20"
    ]
}