{"id":2224880,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2224880/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/20260419-type-v3-1-ec49acd6870e@oss.qualcomm.com/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/1.1/projects/18/?format=json","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-1-ec49acd6870e@oss.qualcomm.com>","date":"2026-04-19T10:24:03","name":"[v3,1/5] disk: Add partition lookup by type GUID functionality","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"f2681ba084f8bf25625e376aa29c1b3405dc07ce","submitter":{"id":90810,"url":"http://patchwork.ozlabs.org/api/1.1/people/90810/?format=json","name":"Balaji Selvanathan","email":"balaji.selvanathan@oss.qualcomm.com"},"delegate":{"id":3651,"url":"http://patchwork.ozlabs.org/api/1.1/users/3651/?format=json","username":"trini","first_name":"Tom","last_name":"Rini","email":"trini@ti.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/20260419-type-v3-1-ec49acd6870e@oss.qualcomm.com/mbox/","series":[{"id":500492,"url":"http://patchwork.ozlabs.org/api/1.1/series/500492/?format=json","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/2224880/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2224880/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=Iof7hAHH;\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=Qfe+4nh6;\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=\"Iof7hAHH\";\n\tdkim=pass (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.b=\"Qfe+4nh6\";\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 4fz4VS57g6z1yD4\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 19 Apr 2026 20:24:32 +1000 (AEST)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 1B0CA8425F;\n\tSun, 19 Apr 2026 12:24:29 +0200 (CEST)","by phobos.denx.de (Postfix, from userid 109)\n id 834ED839D9; Sun, 19 Apr 2026 12:24:28 +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 42C09839D9\n for <u-boot@lists.denx.de>; Sun, 19 Apr 2026 12:24:26 +0200 (CEST)","from pps.filterd (m0279870.ppops.net [127.0.0.1])\n by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 63J9BFYb666626\n for <u-boot@lists.denx.de>; Sun, 19 Apr 2026 10:24:24 GMT","from mail-pl1-f199.google.com (mail-pl1-f199.google.com\n [209.85.214.199])\n by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4dm21ujb3h-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:24 +0000 (GMT)","by mail-pl1-f199.google.com with SMTP id\n d9443c01a7336-2b24308165dso33089485ad.1\n for <u-boot@lists.denx.de>; Sun, 19 Apr 2026 03:24:24 -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.14\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sun, 19 Apr 2026 03:24:22 -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 9lQlSzvzaw6yYePnqyIjySYiO3pwTvtRCF3nzG2qG9U=; b=Iof7hAHHOIdawqYA\n CGBuvi97hT4eQ0A5OKt9ysJesh5qn48daXK3QewGO7KdgKRfFrgHhkGXdNHaF5XE\n 5Zia1FqA4N3aYY7JFLY2PrQXTB70lvR9SANZI+S8cndVDveG2F9byKNymWHiD8uR\n drK8/FdkHpYbspImZXW82odX/SQ+iLzHs7K5xGyEIp7aWilOx9YjiNv0fpVqOtxX\n kfPvkBdYOvZ1ErKjeqea9b/bz/mVq3pykYSTJmYMzJZaBS81F/W3ihvxiNY+LIVS\n miY/UPDhY3Mts29DTKDWOYoJgiYkFgrGfwq3rFZ4wUcWPYNpBfG9JT9czV0Qz3v7\n Vgjbew==","v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oss.qualcomm.com; s=google; t=1776594264; x=1777199064; 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=9lQlSzvzaw6yYePnqyIjySYiO3pwTvtRCF3nzG2qG9U=;\n b=Qfe+4nh6p1Ni+8gebXNRAbT2KgiPAQ1QxYioIsrWpqTK+3G7/CFoNPpJu72jts38XD\n 1w+swN8fxdc6Jsq9iEYQvYkI8x8IEwHyYaD+1GUx624ZhjjML+KQFv9gutcARALLohfa\n KqcC44gvxdVvPzydtxCJ2WP6PDrh4wfQd3wUZ04XLy/VIbhdG/UmZJYJKdfG+tskGTCK\n LVEvrAgan5TG6KoSN66sYjXwRU2SqskOQgHRoujluxYBlnWdLUKGzNBdgR6hWSomw7+4\n 5SDlSjgSlKgVj1/lekPFwx9r1fWbgEiZgCicXzbzxH3FnBo+DjJnJ3kbJFPBzuk09C4W\n WONA=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776594264; x=1777199064;\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=9lQlSzvzaw6yYePnqyIjySYiO3pwTvtRCF3nzG2qG9U=;\n b=kCA2+opkHBUcVLarXC0jIMrPqqaZkfh8LaXNItAvUVHX44VDOMM0Rc/71xbYnHiICK\n DzW7VH+w6AvooYQE2wnOh9I5fC2FsuOenWsKW/rr64NrTmR2esg/wF+CMnig+JIREnOw\n BWFYLoNbI0G12fIaOodSO1TN6CvcA1q/wqaWwR00oQ1XV52aHRMtJY3Tn4TmKToL90KL\n y79udcPjaPtS2CCai4p6lDMiBoNaqWKfxcMbGFBxioOXfG/5MnuD+NG/N/2idMf6m4KM\n dcWiVi2fGCnNDplDdMN4B0Q15CgW5gxBqDspGJgPiRfyaE7nfrAqK8bzXDzA6wFBRZl1\n YmIA==","X-Gm-Message-State":"AOJu0YxhchXcYL+l9Pf2fnX6hDH64WbYvptNllDNrMz5MVXD3GtLyunA\n MFXoJVLB5ydV3aVTuHlrdWBa/41fjHYVzhp1J1BeBORtNISXrrc3+C4+JHTvJXI2EHS3hrFl3k3\n yPZ3q5bECsFmXvTqqz0LjlQaHBlKba92ITXD/tVwkaLkDxtJ4yrRAst/W","X-Gm-Gg":"AeBDievCqEX7T+rBxdG7i+3q4DXi1CofIrn5xkJzqHniZY9TayQb57d9KFe3QUjvpL+\n V6snS8+6JYo24EfD6M03KGdqsQD/pZ+C6I5xNBkTb63Gr0a/c2LxSbWyMK3muI0I1IkLVcmzfEI\n aQo7T/S6UDJgKtxiDZ6UsI6PARvubxxfDINBvPS12c2cZJ2Bs8mgWmMoJ/fYCOeY7BD4+rnLY1w\n /N7NlHtNqBwTXHqac9IKBA1XGLIpIlepUmtiVFv7hwWl0Y8/smdXoBsIMwinmmpD692X0fIz+Li\n sdVWM6h6vWaOFjhTzrSiJeRMgsisXMxZ/Rm9r6jyeVzoCKFXQjkPln3H0Q/i+ho7kC1Bykyvq04\n LUOqS9GMky82AKj/01+ReG20pUTmY9wyjaeShBavPcJ4El5gzlGUNFRIpqwq+UJth6e1c4ZlyuV\n MWnQ9RO1747d0DIzAwtxlf5GX3ccmQx/YkiNbMZXWf6bgOZtXcangn03MrlJhd","X-Received":["by 2002:a17:903:3c67:b0:2ae:8272:deb0 with SMTP id\n d9443c01a7336-2b5f9ebd04amr105024795ad.15.1776594263628;\n Sun, 19 Apr 2026 03:24:23 -0700 (PDT)","by 2002:a17:903:3c67:b0:2ae:8272:deb0 with SMTP id\n d9443c01a7336-2b5f9ebd04amr105024395ad.15.1776594263179;\n Sun, 19 Apr 2026 03:24:23 -0700 (PDT)"],"From":"Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>","Date":"Sun, 19 Apr 2026 15:54:03 +0530","Subject":"[PATCH v3 1/5] disk: Add partition lookup by type GUID functionality","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"7bit","Message-Id":"<20260419-type-v3-1-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=3158;\n i=balaji.selvanathan@oss.qualcomm.com; s=20260213; h=from:subject:message-id;\n bh=K9Uz5A/dYsbW+QAAZG1CQ9/P/LbNVklDc8Xx1zR9kD8=;\n b=8+4TdvKt4Ks+E2JLf/G7wiRzhou9dJVVh7QxRVlNtmCWOE9hbmz8Nm4SBtyEe51MXZB3UIYq2\n HLGLz3ODMSTA4aPg/TgoKmUyKj8o6KONHemAn5Dg700eBDOQ2zCjJfC","X-Developer-Key":"i=balaji.selvanathan@oss.qualcomm.com; a=ed25519;\n pk=CDpYiUU3SH7KGEtsBvY2tBGPiWfMxqWJF0p2LftOfnc=","X-Proofpoint-Spam-Details-Enc":"AW1haW4tMjYwNDE5MDEwOCBTYWx0ZWRfXxwoOdYvX5gpa\n 25WCfI8f86S0dS93u3KBPuntwVhb5rmcmvO3R6SDOI/laGYIZRlFFVPDodGG/KAFitC9jxvPOPk\n WtFQLxJhllavVroV5mNfqp7Xs90/uLHb9xJsQ0/LH5tQM9z1hTo7QGNopng3Z5bw+Ovpyj7snCx\n 6V1gLSXsYjpOujD1e5l3p9zQo94IwpuYZoDVH9GVbjBCd0Ox5NuIKPAx1PUxQTJi473mvwbSj3p\n Ipe7aMXb5uXr3tHTb80WgSqSRaO0AbvJ8fXmHfZPGQY0TNBnmXsXmGffT1krVvVNwmYWJfXbvqZ\n Soq2EEzz9s+WupGZ3TzpWqHzInKHSFnRQviLa22jcj1qkK1wt493QeeIYvX6cKjgqMuJfzbtL5C\n cRhz6QK21kLkNNK/+pXKm3KwLE+wTFD43R7JycEe+W8+EVWDYeUx+UUAetFzZBwW1yaolb8RpEv\n 2bOVCR6BoJnYzTddVgg==","X-Proofpoint-GUID":"f6QxD8EOxtNe0jLUcHN97tWipxkKNK3T","X-Proofpoint-ORIG-GUID":"f6QxD8EOxtNe0jLUcHN97tWipxkKNK3T","X-Authority-Analysis":"v=2.4 cv=WK1PmHsR c=1 sm=1 tr=0 ts=69e4ad58 cx=c_pps\n a=JL+w9abYAAE89/QcEU+0QA==: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=gowsoOTTUOVcmtlkKump:22\n a=EUspDBNiAAAA:8 a=CY1rhmfJiPzWGrbW8pEA:9 a=QEXdDO2ut3YA:10\n a=324X-CrmTo6CU4MGRt3R:22","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 lowpriorityscore=0 adultscore=0 spamscore=0 malwarescore=0 bulkscore=0\n suspectscore=0 phishscore=0 clxscore=1015 priorityscore=1501 impostorscore=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":"Introduce part_get_info_by_type_guid() function to enable partition\nlookup using partition type GUID. This complements the existing UUID\nlookup functionality and provides more flexible partition discovery\nmechanisms.\n\nSigned-off-by: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>\n---\nChanges in v3:\n- Addressed minor corrections in part_get_info_by_type_guid function\n\nChanges in v2:\n- No changes\n---\n disk/part.c    | 37 +++++++++++++++++++++++++++++++++++++\n include/part.h | 21 +++++++++++++++++++++\n 2 files changed, 58 insertions(+)","diff":"diff --git a/disk/part.c b/disk/part.c\nindex 4923dc44593..4cb3204ac6e 100644\n--- a/disk/part.c\n+++ b/disk/part.c\n@@ -731,6 +731,43 @@ int part_get_info_by_uuid(struct blk_desc *desc, const char *uuid,\n \treturn -ENOENT;\n }\n \n+int part_get_info_by_type_guid(struct blk_desc *desc, const char *type_guid,\n+\t\t\t       struct disk_partition *info)\n+{\n+\tstruct part_driver *part_drv;\n+\tint ret;\n+\tint i;\n+\n+\tif (!CONFIG_IS_ENABLED(PARTITION_TYPE_GUID))\n+\t\treturn -ENOENT;\n+\n+\tpart_drv = part_driver_lookup_type(desc);\n+\tif (!part_drv)\n+\t\treturn -ENOENT;\n+\n+\tfor (i = 1; i <= part_drv->max_entries; i++) {\n+\t\tret = part_driver_get_info(part_drv, desc, i, info);\n+\t\tif (ret) {\n+\t\t\t/* -ENOSYS means no ->get_info method. */\n+\t\t\tif (ret == -ENOSYS)\n+\t\t\t\treturn ret;\n+\t\t\t/*\n+\t\t\t * Partition with this index can't be obtained, but\n+\t\t\t * further partitions might be, so keep checking.\n+\t\t\t */\n+\t\t\tcontinue;\n+\t\t}\n+\n+\t\tif (!strncasecmp(type_guid, disk_partition_type_guid(info),\n+\t\t\t\t UUID_STR_LEN)) {\n+\t\t\t/* matched */\n+\t\t\treturn i;\n+\t\t}\n+\t}\n+\n+\treturn -ENOENT;\n+}\n+\n /**\n  * Get partition info from device number and partition name.\n  *\ndiff --git a/include/part.h b/include/part.h\nindex 15daacd7faa..32614bd085b 100644\n--- a/include/part.h\n+++ b/include/part.h\n@@ -327,6 +327,20 @@ int part_get_info_by_name(struct blk_desc *desc, const char *name,\n int part_get_info_by_uuid(struct blk_desc *desc, const char *uuid,\n \t\t\t  struct disk_partition *info);\n \n+/**\n+ * part_get_info_by_type_guid() - Search for a partition by type GUID\n+ *                                among all available registered partitions\n+ *\n+ * @desc:\tblock device descriptor\n+ * @type_guid:\tthe specified partition type GUID\n+ * @info:\tthe disk partition info\n+ *\n+ * Return: the partition number on match (starting on 1), -ENOENT on no match,\n+ * otherwise error\n+ */\n+int part_get_info_by_type_guid(struct blk_desc *desc, const char *type_guid,\n+\t\t\t       struct disk_partition *info);\n+\n /**\n  * part_get_info_by_dev_and_name_or_num() - Get partition info from dev number\n  *\t\t\t\t\t    and part name, or dev number and\n@@ -404,6 +418,13 @@ static inline int part_get_info_by_uuid(struct blk_desc *desc, const char *uuid,\n \treturn -ENOENT;\n }\n \n+static inline int part_get_info_by_type_guid(struct blk_desc *desc,\n+\t\t\t\t\t     const char *type_guid,\n+\t\t\t\t\t     struct disk_partition *info)\n+{\n+\treturn -ENOENT;\n+}\n+\n static inline int\n part_get_info_by_dev_and_name_or_num(const char *dev_iface,\n \t\t\t\t     const char *dev_part_str,\n","prefixes":["v3","1/5"]}