get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 961277,
    "url": "http://patchwork.ozlabs.org/api/patches/961277/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20180823104334.16083-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": "<20180823104334.16083-2-jens.wiklander@linaro.org>",
    "list_archive_url": null,
    "date": "2018-08-23T10:43:20",
    "name": "[U-Boot,v2,01/15] 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/20180823104334.16083-2-jens.wiklander@linaro.org/mbox/",
    "series": [
        {
            "id": 62144,
            "url": "http://patchwork.ozlabs.org/api/series/62144/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=62144",
            "date": "2018-08-23T10:43:19",
            "name": "AVB using OP-TEE",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/62144/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/961277/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/961277/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=\"VTtKhsux\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 41x1JL1Nf7z9s3C\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 23 Aug 2018 20:44:50 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid CB942C21F0B; Thu, 23 Aug 2018 10:44:14 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id D2C45C21DAF;\n\tThu, 23 Aug 2018 10:43:44 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid E77E4C21DAF; Thu, 23 Aug 2018 10:43:42 +0000 (UTC)",
            "from mail-lj1-f193.google.com (mail-lj1-f193.google.com\n\t[209.85.208.193])\n\tby lists.denx.de (Postfix) with ESMTPS id 92AF2C21D8A\n\tfor <u-boot@lists.denx.de>; Thu, 23 Aug 2018 10:43:42 +0000 (UTC)",
            "by mail-lj1-f193.google.com with SMTP id p6-v6so3780901ljc.5\n\tfor <u-boot@lists.denx.de>; Thu, 23 Aug 2018 03:43:42 -0700 (PDT)",
            "from jax.ideon.se ([85.235.10.227])\n\tby smtp.gmail.com with ESMTPSA id\n\ty5-v6sm679771ljj.75.2018.08.23.03.43.40\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 23 Aug 2018 03:43:41 -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=j+kvqfSyg1CJWcHDhfVVXVXwi2uXT6XpteOIAJqhq6A=;\n\tb=VTtKhsuxLD++TXBUX2hGbfYKnXcBT6v4Ijd2u8Vo+5aWYlZ7IzzRlPdoTMwT7SBOVm\n\tTo+KSB2rMpPOQm/ex/akFYBWnU/CzD85iASTeBau/X2eeQ3lj1EY2uEsjeRHZe+ZH3ke\n\t/9HR5fCUkcKpg0Vd5cl9HW9ovHBvD1DkZVj2I=",
        "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=j+kvqfSyg1CJWcHDhfVVXVXwi2uXT6XpteOIAJqhq6A=;\n\tb=dnnFWP2CLXLVl4zgphvu5NL77FZAqB5SkNIUXgJPwB0W7U85rUKwWPBHYBvwmr7yvi\n\tJCtJYFlOGbC8QeQUdraehPbrwcGQOuVZxWgRU4BRaFA41nHqFuy1LOQhVLUeDu3DKhpX\n\tbfnLStuobBmPOVHubo3Z16ZZoPeS5BZmOeWPTZIP3jT5i0TAJ9CnbLJw+EvzbgXBEqng\n\tUgy57SAXM8CJHLAHD2I1Jyha7OYWZPZBeQrvxyojmTs9Ha2pm991zrdKHcu4rZHF7nP5\n\t6HX0/slHJlexWNNN/WQnmsomhafiki8VVaAdKABJuR5SFEAyGEpzNzm2F2+TRCaemsPo\n\ta8Vg==",
        "X-Gm-Message-State": "AOUpUlFs+r0yJZMhpVAMDP7w9ORPcVSV7ZSrPlgFVEYhQYdRCsxODnO6\n\toZKBqgcYnEiDVXcbEREypzB3t1o9oOc=",
        "X-Google-Smtp-Source": "AA+uWPxyK5JQRixbsexJ9j8wRugRLB1ndRJvVNnpniOKzC8TB5M99wYS5fM2h+Ip5xHS+VeQxLl0ig==",
        "X-Received": "by 2002:a2e:85d5:: with SMTP id\n\th21-v6mr38762424ljj.103.1535021021797; \n\tThu, 23 Aug 2018 03:43:41 -0700 (PDT)",
        "From": "Jens Wiklander <jens.wiklander@linaro.org>",
        "To": "u-boot@lists.denx.de",
        "Date": "Thu, 23 Aug 2018 12:43:20 +0200",
        "Message-Id": "<20180823104334.16083-2-jens.wiklander@linaro.org>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20180823104334.16083-1-jens.wiklander@linaro.org>",
        "References": "<20180823104334.16083-1-jens.wiklander@linaro.org>",
        "Cc": "Tom Rini <trini@konsulko.com>, Pierre Aubert <p.aubert@staubli.com>",
        "Subject": "[U-Boot] [PATCH v2 01/15] 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\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",
        "v2",
        "01/15"
    ]
}