Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2086691/?format=api
{ "id": 2086691, "url": "http://patchwork.ozlabs.org/api/patches/2086691/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20250516114148.3862114-3-m-shah@ti.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": "<20250516114148.3862114-3-m-shah@ti.com>", "list_archive_url": null, "date": "2025-05-16T11:41:48", "name": "[2/2,v2] tools: binman: ftest.py: Add testcase for bootph-* propagation", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "5c2323cb808ccd133f306b6ca7478d9647215866", "submitter": { "id": 90252, "url": "http://patchwork.ozlabs.org/api/people/90252/?format=api", "name": "Moteen Shah", "email": "m-shah@ti.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/20250516114148.3862114-3-m-shah@ti.com/mbox/", "series": [ { "id": 457156, "url": "http://patchwork.ozlabs.org/api/series/457156/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=457156", "date": "2025-05-16T11:41:46", "name": "Propagate bootph-all and bootph-some-ram property to all supernodes", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/457156/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2086691/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2086691/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=ti.com header.i=@ti.com header.a=rsa-sha256\n header.s=ti-com-17Q1 header.b=cbWOh6be;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)", "phobos.denx.de;\n dmarc=pass (p=quarantine dis=none) header.from=ti.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de", "phobos.denx.de;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=ti.com header.i=@ti.com header.b=\"cbWOh6be\";\n\tdkim-atps=neutral", "phobos.denx.de;\n dmarc=pass (p=quarantine dis=none) header.from=ti.com", "phobos.denx.de; spf=pass smtp.mailfrom=m-shah@ti.com" ], "Received": [ "from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature ECDSA (secp384r1))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4ZzQCy4YzLz1yYW\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 16 May 2025 21:42:06 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 9859182935;\n\tFri, 16 May 2025 13:42:10 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id E5EC882A33; Fri, 16 May 2025 13:42:09 +0200 (CEST)", "from fllvem-ot04.ext.ti.com (fllvem-ot04.ext.ti.com [198.47.19.246])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n bits)) (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id C1E4F82935\n for <u-boot@lists.denx.de>; Fri, 16 May 2025 13:42:07 +0200 (CEST)", "from lelvem-sh01.itg.ti.com ([10.180.77.71])\n by fllvem-ot04.ext.ti.com (8.15.2/8.15.2) with ESMTP id 54GBfxTg3728217;\n Fri, 16 May 2025 06:41:59 -0500", "from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30])\n by lelvem-sh01.itg.ti.com (8.18.1/8.18.1) with ESMTPS id 54GBfxfQ3262537\n (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA256 bits=128 verify=FAIL);\n Fri, 16 May 2025 06:41:59 -0500", "from DFLE109.ent.ti.com (10.64.6.30) by DFLE109.ent.ti.com\n (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 16\n May 2025 06:41:59 -0500", "from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE109.ent.ti.com\n (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via\n Frontend Transport; Fri, 16 May 2025 06:41:59 -0500", "from moteen-ubuntu-desk.dhcp.ti.com (moteen-ubuntu-desk.dhcp.ti.com\n [172.24.227.136] (may be forged))\n by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 54GBfnh9063026;\n Fri, 16 May 2025 06:41:56 -0500" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=-3.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,\n RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,\n RCVD_IN_VALIDITY_RPBL_BLOCKED,SPF_HELO_PASS,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com;\n s=ti-com-17Q1; t=1747395719;\n bh=Y4ppxal3ySJzxyWPn2+pcY/HIci10sWR7N4E4ueKoLg=;\n h=From:To:CC:Subject:Date:In-Reply-To:References;\n b=cbWOh6beqRHLVMlDEyx+LRJcmgc32ldTmKNjTNq/Nnjvv+RbKz7RnoPCLv30rUzdF\n gHeYPQyqUf0lbIPbavQglG3qVk6qpiA+dJDoFfo2eGXu8RpqHRczCXVQSPAsb/CoBQ\n OMZwY65EruTxMO8wkM24qsGPEZOcmwJCETfoNQIg=", "From": "Moteen Shah <m-shah@ti.com>", "To": "<u-boot@lists.denx.de>", "CC": "<trini@konsulko.com>, <sjg@chromium.org>, <alpernebiyasak@gmail.com>,\n <quentin.schulz@cherry.de>, <m-chawdhry@ti.com>, <n-francis@ti.com>,\n <vigneshr@ti.com>, <u-kumar1@ti.com>, <m-shah@ti.com>", "Subject": "[PATCH 2/2 v2] tools: binman: ftest.py: Add testcase for bootph-*\n propagation", "Date": "Fri, 16 May 2025 17:11:48 +0530", "Message-ID": "<20250516114148.3862114-3-m-shah@ti.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20250516114148.3862114-1-m-shah@ti.com>", "References": "<20250516114148.3862114-1-m-shah@ti.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-C2ProcessedOrg": "333ef613-75bf-4e12-a4b1-8e3623f5dcea", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.39", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<https://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 <mailto:u-boot-request@lists.denx.de?subject=subscribe>", "Errors-To": "u-boot-bounces@lists.denx.de", "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>", "X-Virus-Scanned": "clamav-milter 0.103.8 at phobos.denx.de", "X-Virus-Status": "Clean" }, "content": "Add a testcase to ensure that scan_and_prop_bootph() actually\npropagates bootph-* properties to supernodes.\n\nSigned-off-by: Moteen Shah <m-shah@ti.com>\nReviewed-by: Simon Glass <sjg@chromium.org>\n\n---\n tools/binman/ftest.py | 24 ++++++++++++++++++++++++\n tools/binman/test/347_bootph_prop.dts | 21 +++++++++++++++++++++\n 2 files changed, 45 insertions(+)\n create mode 100644 tools/binman/test/347_bootph_prop.dts", "diff": "diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py\nindex fa174900014..8c37c0c95f6 100644\n--- a/tools/binman/ftest.py\n+++ b/tools/binman/ftest.py\n@@ -8011,5 +8011,29 @@ fdt fdtmap Extract the devicetree blob from the fdtmap\n self._DoTestFile('346_remove_template.dts',\n force_missing_bintools='openssl',)\n \n+ def testBootphPropagation(self):\n+ \"\"\"Test that bootph-* properties are propagated correctly to supernodes\"\"\"\n+ _, _, _, out_dtb_fname = self._DoReadFileDtb(\n+ '347_bootph_prop.dts', use_real_dtb=True, update_dtb=True)\n+ dtb = fdt.Fdt(out_dtb_fname)\n+ dtb.Scan()\n+ root = dtb.GetRoot()\n+ parent_node = root.FindNode('dummy-parent')\n+ subnode1 = parent_node.FindNode('subnode-1')\n+ subnode2 = subnode1.FindNode('subnode-2')\n+ subnode3 = subnode1.FindNode('subnode-3')\n+ subnode4 = subnode3.FindNode('subnode-4')\n+ \n+ self.assertIn('bootph-some-ram', subnode1.props,\n+ \"Child node is missing 'bootph-some-ram' property\")\n+ self.assertIn('bootph-all', subnode1.props,\n+ \"Child node is missing 'bootph-all' property\")\n+ self.assertIn('bootph-some-ram', parent_node.props,\n+ \"Parent node is missing 'bootph-some-ram' property\")\n+ self.assertIn('bootph-all', parent_node.props,\n+ \"Parent node is missing 'bootph-all' property\")\n+ self.assertEqual(len(subnode4.props), 0,\n+ \"subnode shouldn't have any properties\")\n+ \n if __name__ == \"__main__\":\n unittest.main()\ndiff --git a/tools/binman/test/347_bootph_prop.dts b/tools/binman/test/347_bootph_prop.dts\nnew file mode 100644\nindex 00000000000..91d4e4ad600\n--- /dev/null\n+++ b/tools/binman/test/347_bootph_prop.dts\n@@ -0,0 +1,21 @@\n+// SPDX-License-Identifier: GPL-2.0+\n+\n+/dts-v1/;\n+/ {\n+\tdummy-parent {\n+\t\tsubnode-1 {\n+\t\t\tsubnode-2 {\n+\t\t\t\tbootph-all;\n+\t\t\t};\n+\t\t\tsubnode-3 {\n+\t\t\t\tbootph-some-ram;\n+\t\t\t\tsubnode-4 {\n+\t\t\t\t};\n+\t\t\t};\n+\t\t};\n+\t};\n+\n+\tbinman: binman {\n+\t};\n+};\n+\n", "prefixes": [ "2/2", "v2" ] }