Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2224884/?format=api
{ "id": 2224884, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2224884/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260419-type-v3-5-ec49acd6870e@oss.qualcomm.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/1.1/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 }, "msgid": "<20260419-type-v3-5-ec49acd6870e@oss.qualcomm.com>", "date": "2026-04-19T10:24:07", "name": "[v3,5/5] test: dm: Add partition type GUID lookup test", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "0f4f06a48c95f247cfbd0875c4c047fbd1318b04", "submitter": { "id": 90810, "url": "http://patchwork.ozlabs.org/api/1.1/people/90810/?format=api", "name": "Balaji Selvanathan", "email": "balaji.selvanathan@oss.qualcomm.com" }, "delegate": { "id": 3651, "url": "http://patchwork.ozlabs.org/api/1.1/users/3651/?format=api", "username": "trini", "first_name": "Tom", "last_name": "Rini", "email": "trini@ti.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260419-type-v3-5-ec49acd6870e@oss.qualcomm.com/mbox/", "series": [ { "id": 500492, "url": "http://patchwork.ozlabs.org/api/1.1/series/500492/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=500492", "date": "2026-04-19T10:24:02", "name": "Add partition type GUID support for environment", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/500492/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2224884/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2224884/checks/", "tags": {}, "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 (2048-bit key;\n unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256\n header.s=qcppdkim1 header.b=cGbB4UIk;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.a=rsa-sha256 header.s=google header.b=T0dGJqn3;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)", "phobos.denx.de;\n dmarc=none (p=none dis=none) header.from=oss.qualcomm.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de", "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=qualcomm.com header.i=@qualcomm.com\n header.b=\"cGbB4UIk\";\n\tdkim=pass (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.b=\"T0dGJqn3\";\n\tdkim-atps=neutral", "phobos.denx.de; dmarc=none (p=none dis=none)\n header.from=oss.qualcomm.com", "phobos.denx.de; spf=pass\n smtp.mailfrom=balaji.selvanathan@oss.qualcomm.com" ], "Received": [ "from phobos.denx.de (phobos.denx.de [85.214.62.61])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fz4W927DKz1yD4\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 19 Apr 2026 20:25:09 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id D1FBF842C2;\n\tSun, 19 Apr 2026 12:25:04 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id 3B25084214; Sun, 19 Apr 2026 12:25:03 +0200 (CEST)", "from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com\n [205.220.180.131])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 986DB839D9\n for <u-boot@lists.denx.de>; Sun, 19 Apr 2026 12:25:00 +0200 (CEST)", "from pps.filterd (m0279872.ppops.net [127.0.0.1])\n by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 63J7C3ET3707906\n for <u-boot@lists.denx.de>; Sun, 19 Apr 2026 10:24:59 GMT", "from mail-pl1-f197.google.com (mail-pl1-f197.google.com\n [209.85.214.197])\n by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4dm2b72b21-1\n (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n for <u-boot@lists.denx.de>; Sun, 19 Apr 2026 10:24:59 +0000 (GMT)", "by mail-pl1-f197.google.com with SMTP id\n d9443c01a7336-2b24af7ca99so25335195ad.1\n for <u-boot@lists.denx.de>; Sun, 19 Apr 2026 03:24:58 -0700 (PDT)", "from hu-bselvana-blr.qualcomm.com\n (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com. [103.229.18.19])\n by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2b5fab0caf1sm72754675ad.42.2026.04.19.03.24.49\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sun, 19 Apr 2026 03:24:57 -0700 (PDT)" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED,\n SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2", "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=\n cc:content-transfer-encoding:content-type:date:from:in-reply-to\n :message-id:mime-version:references:subject:to; s=qcppdkim1; bh=\n CzHIsSWKZI6xsXxV3c9vhs4HHH2OjnOMr5i8pSR0oyY=; b=cGbB4UIkiZJrNi9M\n gfF8iYWSB4Aebp97HQjcWD9n/MT0iXR+Ri0OhVdk/JPUepMdUCnQJZoWmMzFP2jU\n XMz6Wi+Ae25NU6GKFrbhP6HzYo5gZRMJCl2UwGFSJA1+xvvxX0E4KE29Xu88Y7Ap\n eVPZWTxTE3J47OA00mWqRUH0t3QrBJpmEgzOrEv6JE4LvUx63qT5vlmO+Jj0dofk\n s+m6kujK/TjfWWStYQiKEKOHS5FPPBNKKU90wVI2eZ19MmkqbrdLXzJGbdJfePql\n wfMotUD+0m0oLaKa56KpN56vyDoqFTb19f9t21dXNW70m25SesFMLpLngOlDsOM8\n jlsrgA==", "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oss.qualcomm.com; s=google; t=1776594298; x=1777199098; darn=lists.denx.de;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:from:to:cc:subject:date:message-id\n :reply-to; bh=CzHIsSWKZI6xsXxV3c9vhs4HHH2OjnOMr5i8pSR0oyY=;\n b=T0dGJqn3d0YT6VfJqs0f0CSoF9Vq2uaPjqVyGnD/lvA+RNSqokZgLdqSLBOUkF64P1\n 4xFuZdRUiVqo4ysoEA42v72bBsqQCjMCuU06n3O4q50SNuweV4UfQ1vCjwKijWaMGsF9\n pfS0TK9F+7+spa5ZzLBJ1ZqCNeA5qiP3T8ne/g7TO9f2zz//qMEQ1CO9uTLhKZL6337W\n qAY6HkCVXRfVLIkfT9Ryr/9MBv7GKh2OGw+znalgkkggIxNX4U469WNBNei3KfjKQuWM\n LsYfXJCVgI80JxZSAxTKOBoIhSJA9/YUN7ybP29b84eBOyaRNnKjeyCdNOzF+i/k4WgS\n j6RA==" ], "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776594298; x=1777199098;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to\n :cc:subject:date:message-id:reply-to;\n bh=CzHIsSWKZI6xsXxV3c9vhs4HHH2OjnOMr5i8pSR0oyY=;\n b=AKKVgmKVtu9wYdK1H8w6KxX28CwxbJEBfhCprGKEcGjhREuhEW1dyS4gO/+RMrvP7G\n /GlfZN49KNjj4i3zRrGJt5EVKWZCevVRlvc1kl4WwcYvLDAifOCJegnWyG5eVXI+qD+V\n ocl3mUQB6PO9w5AROb9qSIVUEUL9E+RSauLJWxOI70LzJeZKEPcNzGr8h2szp6CFXR27\n zL4PQheQ4uW7UhSqXUtDb2/39/wzYdWd+7hhco1tGEPJPZ/tdlpxzl0DoY3oWfDD0Fvf\n zo8AKtGyUTIz36nLQYhvaVxMw0NA/nvM7dSyj27oDlfheeIlFeO98TlOYyoaPD5re4OR\n ttmw==", "X-Gm-Message-State": "AOJu0YzvpHcdTeb79ZA77plGqw3+ykhIxf3hyl9TzvUkxjuuhqU2wi2F\n GB9DS4bmp2WJyoGXsNeA1RK5GJ+ty68JR92idUq+tJBhZkigmuQ97ebz80VfrsSRIwZKXz0M+6B\n j2GaXIOmmDgb526XSfsViLh3tFd+MLGh2G3bNpjFphPmpeKOWVujaTgHi", "X-Gm-Gg": "AeBDievxXA7WsLKNqOnYNznVjPBL3hUzJyDviZ/CbsTUZy+t9w6A2x+LezaidzT1hUR\n 1GNwc8JnoErh1n4n0TfSBOHK9cl4IzunSsH9PMNiYlWfiKET7ybeZUaOjf46hj4JZgVNTZkbjXz\n pXQBEC0LjSPmvPP7cAh4W/UEAMPo/CPzdWSXF5I0p96D9CCgQFOVnwCLVLWyD4J6svJ82BXYR2O\n ylAUkIiE2Pz2uMJ432sqXU/J769K46zsxhdshldYWxXsaZ+E8psaBJk2pzxaNEL8depyC9lbTlH\n ornsVf9SwD1fBA9zWXIjB588eeu0xMnOWvMPqdJ3DnckA2LUDZOFuSHSulzS3CX7klkEVSBZWKS\n 7QThz3bHmTENU88CsoMvSqjxPmO6S88tJFZCcVcRdxCfqIY4ATCk+Vp30Wf9rL+Sqdn5JIOt4lJ\n GD2YRdaDZpHS5pn+zPaWEw1OxuxpKCFM1mk5iWLrUPg2gXm7rhN4HvyboHnoai", "X-Received": [ "by 2002:a17:902:ce0a:b0:2b0:af2f:b27a with SMTP id\n d9443c01a7336-2b5f9ec3590mr93725255ad.11.1776594298102;\n Sun, 19 Apr 2026 03:24:58 -0700 (PDT)", "by 2002:a17:902:ce0a:b0:2b0:af2f:b27a with SMTP id\n d9443c01a7336-2b5f9ec3590mr93725005ad.11.1776594297636;\n Sun, 19 Apr 2026 03:24:57 -0700 (PDT)" ], "From": "Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>", "Date": "Sun, 19 Apr 2026 15:54:07 +0530", "Subject": "[PATCH v3 5/5] test: dm: Add partition type GUID lookup test", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "7bit", "Message-Id": "<20260419-type-v3-5-ec49acd6870e@oss.qualcomm.com>", "References": "<20260419-type-v3-0-ec49acd6870e@oss.qualcomm.com>", "In-Reply-To": "<20260419-type-v3-0-ec49acd6870e@oss.qualcomm.com>", "To": "u-boot@lists.denx.de, Sumit Garg <sumit.garg@kernel.org>,\n u-boot-qcom@groups.io", "Cc": "Tom Rini <trini@konsulko.com>, Quentin Schulz <quentin.schulz@cherry.de>,\n Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n Javier Tia <javier.tia@linaro.org>,\n Varadarajan Narayanan <quic_varada@quicinc.com>,\n Rasmus Villemoes <ravi@prevas.dk>,\n Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>,\n Javier Martinez Canillas <javierm@redhat.com>,\n Miquel Raynal <miquel.raynal@bootlin.com>,\n =?utf-8?q?Jo=C3=A3o_Marcos_Costa?= <joaomarcos.costa@bootlin.com>,\n Tien Fong Chee <tien.fong.chee@altera.com>,\n Richard Genoud <richard.genoud@bootlin.com>,\n Jan Kiszka <jan.kiszka@siemens.com>, David Lechner <dlechner@baylibre.com>,\n Casey Connolly <casey.connolly@linaro.org>,\n Simon Glass <simon.glass@canonical.com>,\n Marek Vasut <marek.vasut+renesas@mailbox.org>,\n Christian Marangi <ansuelsmth@gmail.com>, Michael Walle <mwalle@kernel.org>,\n Sumit Garg <sumit.garg@oss.qualcomm.com>,\n Neil Armstrong <neil.armstrong@linaro.org>,\n Aswin Murugan <aswin.murugan@oss.qualcomm.com>,\n Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>,\n Simon Glass <sjg@chromium.org>,\n Mattijs Korpershoek <mkorpershoek@kernel.org>,\n Jerome Forissier <jerome.forissier@arm.com>,\n Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>", "X-Mailer": "b4 0.14.3", "X-Developer-Signature": "v=1; a=ed25519-sha256; t=1776594245; l=2578;\n i=balaji.selvanathan@oss.qualcomm.com; s=20260213; h=from:subject:message-id;\n bh=KIVYT7v6LY5orPwCWXRMzeFFsZRA6c2T6xPfOIOFGuU=;\n b=Yk3qteIzf7eiCCfjtjpXAs9yvYXnWHPT//rIs8W4eQLhGMStX5LdXPF22Dw3oQ5XWfeeA3R6b\n Rj/4S5HTgPaCPWYF8G2VthMidLgHg5Q/7juN/ZyNkS9fn1USi/O0uV3", "X-Developer-Key": "i=balaji.selvanathan@oss.qualcomm.com; a=ed25519;\n pk=CDpYiUU3SH7KGEtsBvY2tBGPiWfMxqWJF0p2LftOfnc=", "X-Authority-Analysis": "v=2.4 cv=KZridwYD c=1 sm=1 tr=0 ts=69e4ad7b cx=c_pps\n a=cmESyDAEBpBGqyK7t0alAg==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17\n a=IkcTkHD0fZMA:10 a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10\n a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22\n a=EUspDBNiAAAA:8 a=QOCIwyBpk6KF-oVkDwMA:9 a=QEXdDO2ut3YA:10\n a=1OuFwYUASf3TG4hYMiVC:22", "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNDE5MDEwOCBTYWx0ZWRfX4LVHFeLOCz6m\n vkAk+UiLiGxC2iyRxsLsJLDpjyKFVDEgzkq+T9Xq/TYZYWmQY/5lpr0AsfSnV63gKIodPckWO8e\n Q2g2DwpkO/eYN7F8C3wgbDElrEMEahz8G+1aNHD0JXz48xMcWLz2rpahymi+RsCB6Q18eBhbOTs\n YwoVykCq/3m8p2XW3cVlZVLtbzlRk0p7GJEwOpvyCHVPSb+WPd3YZ4i8UBg9nPDcHbjjmZ3xvd0\n kdS8z5NsJAn2BK0auMfrai1rhR4ErQZpzTNrRj0pjcjLjFTwrpVpKtYZk1Y6GfI8GL+7k5EeRy6\n rGqSQztOXj5AvGqGcH3sIBinGrW2SvL95h5mGFQjGwYm/3rj2mMudZDg2fvILS76ywZ3eUTfsvn\n lQ669pydFX2/GrIVY6OlyYJnOEFl68QO9G0jbbJ93xEVrlhjI3vIpCK5zNpYab55sXQP6qi77ub\n TOaarloN9okbt8DrAZg==", "X-Proofpoint-GUID": "sEyIGlfY4WIVrAdruBPuZqAtOnhc5A5X", "X-Proofpoint-ORIG-GUID": "sEyIGlfY4WIVrAdruBPuZqAtOnhc5A5X", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-04-19_03,2026-04-17_04,2025-10-01_01", "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n suspectscore=0 impostorscore=0 spamscore=0 bulkscore=0 malwarescore=0\n priorityscore=1501 clxscore=1015 phishscore=0 adultscore=0 lowpriorityscore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2604070000 definitions=main-2604190108", "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 unit test for the partition type GUID lookup functionality. The\ntest verifies that partitions can be correctly identified by their type\nGUID, specifically testing the ChromeOS kernel partition lookup.\n\nSigned-off-by: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>\n---\nChanges in v3:\n- Add unit test for the partition type GUID lookup functionality\n---\n test/dm/part.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 48 insertions(+)", "diff": "diff --git a/test/dm/part.c b/test/dm/part.c\nindex caae23bd4aa..41fb6efe5e4 100644\n--- a/test/dm/part.c\n+++ b/test/dm/part.c\n@@ -8,9 +8,13 @@\n #include <mmc.h>\n #include <part.h>\n #include <part_efi.h>\n+#include <asm/global_data.h>\n+#include <dm/lists.h>\n #include <dm/test.h>\n #include <test/ut.h>\n \n+DECLARE_GLOBAL_DATA_PTR;\n+\n static int do_test(struct unit_test_state *uts, int expected,\n \t\t const char *part_str, bool whole)\n {\n@@ -195,3 +199,47 @@ static int dm_test_part_get_info_by_type(struct unit_test_state *uts)\n \treturn 0;\n }\n DM_TEST(dm_test_part_get_info_by_type, UTF_SCAN_PDATA | UTF_SCAN_FDT);\n+\n+static int dm_test_part_get_info_by_type_guid(struct unit_test_state *uts)\n+{\n+\tstruct udevice *dev, *blk_dev;\n+\tstruct blk_desc *desc;\n+\tstruct disk_partition info;\n+\tofnode root, node;\n+\tint partnum;\n+\n+\tif (!IS_ENABLED(CONFIG_PARTITION_TYPE_GUID))\n+\t\treturn -EOPNOTSUPP;\n+\n+\t/* Bind the mmc5 node (ChromeOS image with type GUIDs) */\n+\troot = oftree_root(oftree_default());\n+\tnode = ofnode_find_subnode(root, \"mmc5\");\n+\tut_assert(ofnode_valid(node));\n+\tut_assertok(lists_bind_fdt(gd->dm_root, node, &dev, NULL, false));\n+\n+\t/* Get the MMC device (probes it), then walk MMC -> BLK parent link */\n+\tut_assertok(uclass_get_device_by_seq(UCLASS_MMC, 5, &dev));\n+\tut_assertok(blk_get_from_parent(dev, &blk_dev));\n+\tdesc = dev_get_uclass_plat(blk_dev);\n+\tut_assert(desc);\n+\n+\t/*\n+\t * Test: look up the first ChromeOS kernel partition by type GUID.\n+\t * In the ChromeOS image KERN_A is the first partition carrying the\n+\t * ChromeOS kernel type GUID (fe3a2a5d-...).\n+\t */\n+\tpartnum = part_get_info_by_type_guid(desc,\n+\t\t\t\t\t \"FE3A2A5D-4F32-41A7-B725-ACCC3285A309\",\n+\t\t\t\t\t &info);\n+\tut_assert(partnum > 0);\n+\n+\t/* Test: non-existent GUID must return -ENOENT */\n+\tut_asserteq(-ENOENT,\n+\t\t part_get_info_by_type_guid(desc,\n+\t\t\t\t\t \"00000000-0000-0000-0000-000000000000\",\n+\t\t\t\t\t &info));\n+\n+\treturn 0;\n+}\n+\n+DM_TEST(dm_test_part_get_info_by_type_guid, UTF_SCAN_PDATA | UTF_SCAN_FDT);\n", "prefixes": [ "v3", "5/5" ] }