Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/809834/?format=api
{ "id": 809834, "url": "http://patchwork.ozlabs.org/api/patches/809834/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1504555943-12893-6-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-6-git-send-email-pantelis.antoniou@konsulko.com>", "list_archive_url": null, "date": "2017-09-04T20:12:14", "name": "[U-Boot,v3,05/14] fit: Allow multiple images per property", "commit_ref": "ad026adbcf0d719e736eb58a9059cbbebb2d2423", "pull_url": null, "state": "accepted", "archived": false, "hash": "c169b4df00ae2473a880ba33219dcf56586261e5", "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-6-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/809834/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/809834/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=\"kmytnnT/\"; dkim-atps=neutral" ], "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xmLnV3wbTz9t2R\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 5 Sep 2017 06:20:30 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid 4A97BC21F68; Mon, 4 Sep 2017 20:14:47 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id A67A7C21F29;\n\tMon, 4 Sep 2017 20:13:54 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid 35BCDC21DD7; Mon, 4 Sep 2017 20:13:04 +0000 (UTC)", "from mail-wm0-f41.google.com (mail-wm0-f41.google.com\n\t[74.125.82.41])\n\tby lists.denx.de (Postfix) with ESMTPS id 76177C21F3D\n\tfor <u-boot@lists.denx.de>; Mon, 4 Sep 2017 20:13:01 +0000 (UTC)", "by mail-wm0-f41.google.com with SMTP id v2so10138575wmf.0\n\tfor <u-boot@lists.denx.de>; Mon, 04 Sep 2017 13:13:01 -0700 (PDT)", "from localhost.localdomain ([195.97.110.117])\n\tby smtp.gmail.com with ESMTPSA id\n\tu8sm3720435wrc.92.2017.09.04.13.12.59\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tMon, 04 Sep 2017 13:13:00 -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=LGG7PcAx37H3StSKmbTW3CpuZfKZJYHZeBSuz925Wlg=;\n\tb=kmytnnT/qDdZaM995dS+RiJCnLJB5jlAefD4JeBloHxFZ3eJ9Sr3cgdAGALRXXlxMc\n\tayah3YiTtaggLQMTfneH0KEal/ot9MIC6TItJbAX8Gf/mcdR4EcqQ3v8Aa/F4oF8z657\n\tUBsALFm3MUcDTlHKuzUZPS1Fzmsh8IWOkIYK8=", "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=LGG7PcAx37H3StSKmbTW3CpuZfKZJYHZeBSuz925Wlg=;\n\tb=l80HMR1u+r01S2lylxUREcwup/uqubq/H/WKri86o6U+w8FDMbTW5kcsdRR4hmHSkL\n\tr+WaQCzkTfO7XLo5dzMFkRksaEu7/HClqr6hYhhOs1axuYkF0NvpVzEMcE1ANosbjgVN\n\tTX+0KvUwzmNKB0VXHSye+vQjfaqbhJapWGiOd0wyzvpXzPjOJE9dgnehjpwX392cTv/L\n\tLSOIiuIbO+EJ4kIn2fLnB+ro4xYU/eg2NqzF1cExcbRgWnzdF9BD3itngcTuZ3B5Rz/b\n\tHfLSTlxDNmWPfjlVka6ir9uBO1aZ0yLdRcaNBrlbkPiSmdneY4CUFLQfLVDRiYkM8C/d\n\tvT7g==", "X-Gm-Message-State": "AHPjjUiZ+9oO4z9+WR6LQmv5snKT8ExVaSVPXpPAwSJYG9do7Aj2TafO\n\toNGKZ9GPO+vaQxoZ", "X-Google-Smtp-Source": "ADKCNb5Tl71nRBOh01LSY5oxGFA8IQHw7trpHQq2NaZj1qaGGJAAG34cQ3oNmKtomqCB5Nvzo1xLNg==", "X-Received": "by 10.28.142.81 with SMTP id q78mr1130270wmd.136.1504555981181; \n\tMon, 04 Sep 2017 13:13:01 -0700 (PDT)", "From": "Pantelis Antoniou <pantelis.antoniou@konsulko.com>", "To": "Tom Rini <trini@konsulko.com>", "Date": "Mon, 4 Sep 2017 23:12:14 +0300", "Message-Id": "<1504555943-12893-6-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 05/14] fit: Allow multiple images per property", "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": "As part of the fdt overlay support which need it, allow\na list of configurations per property.\n\nSigned-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>\n---\n common/image-fit.c | 18 +++++++++++++++---\n 1 file changed, 15 insertions(+), 3 deletions(-)", "diff": "diff --git a/common/image-fit.c b/common/image-fit.c\nindex 109ecfa..74e5557 100644\n--- a/common/image-fit.c\n+++ b/common/image-fit.c\n@@ -1484,20 +1484,32 @@ int fit_conf_get_node(const void *fit, const char *conf_uname)\n \treturn noffset;\n }\n \n-int fit_conf_get_prop_node(const void *fit, int noffset,\n+int fit_conf_get_prop_node_count(const void *fit, int noffset,\n \t\tconst char *prop_name)\n {\n-\tchar *uname;\n+\treturn fdt_stringlist_count(fit, noffset, prop_name);\n+}\n+\n+int fit_conf_get_prop_node_index(const void *fit, int noffset,\n+\t\tconst char *prop_name, int index)\n+{\n+\tconst char *uname;\n \tint len;\n \n \t/* get kernel image unit name from configuration kernel property */\n-\tuname = (char *)fdt_getprop(fit, noffset, prop_name, &len);\n+\tuname = fdt_stringlist_get(fit, noffset, prop_name, index, &len);\n \tif (uname == NULL)\n \t\treturn len;\n \n \treturn fit_image_get_node(fit, uname);\n }\n \n+int fit_conf_get_prop_node(const void *fit, int noffset,\n+\t\tconst char *prop_name)\n+{\n+\treturn fit_conf_get_prop_node_index(fit, noffset, prop_name, 0);\n+}\n+\n /**\n * fit_conf_print - prints out the FIT configuration details\n * @fit: pointer to the FIT format image header\n", "prefixes": [ "U-Boot", "v3", "05/14" ] }