{"id":2229331,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2229331/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/20260428-type-v4-1-b7051dc45a88@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":"<20260428-type-v4-1-b7051dc45a88@oss.qualcomm.com>","date":"2026-04-28T07:31:43","name":"[v4,1/8] 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":null,"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/20260428-type-v4-1-b7051dc45a88@oss.qualcomm.com/mbox/","series":[{"id":501772,"url":"http://patchwork.ozlabs.org/api/1.1/series/501772/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=501772","date":"2026-04-28T07:31:42","name":"Add partition type GUID support for environment","version":4,"mbox":"http://patchwork.ozlabs.org/series/501772/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2229331/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2229331/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=WXSvksbS;\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=P2cnma6x;\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=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=\"WXSvksbS\";\n\tdkim=pass (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.b=\"P2cnma6x\";\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\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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g4XFX2f1Vz1yHv\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 28 Apr 2026 17:32:16 +1000 (AEST)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id F3BF8845D0;\n\tTue, 28 Apr 2026 09:32:11 +0200 (CEST)","by phobos.denx.de (Postfix, from userid 109)\n id 6244284605; Tue, 28 Apr 2026 09:32:11 +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 2787E845E3\n for <u-boot@lists.denx.de>; Tue, 28 Apr 2026 09:32:09 +0200 (CEST)","from pps.filterd (m0279868.ppops.net [127.0.0.1])\n by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 63S4QuQK429010\n for <u-boot@lists.denx.de>; Tue, 28 Apr 2026 07:32:07 GMT","from mail-pj1-f71.google.com (mail-pj1-f71.google.com\n [209.85.216.71])\n by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4dt7x33wxg-1\n (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n for <u-boot@lists.denx.de>; Tue, 28 Apr 2026 07:32:07 +0000 (GMT)","by mail-pj1-f71.google.com with SMTP id\n 98e67ed59e1d1-354c0234c1fso12283040a91.2\n for <u-boot@lists.denx.de>; Tue, 28 Apr 2026 00:32:07 -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-2b97aabaecfsm16054405ad.36.2026.04.28.00.31.58\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 28 Apr 2026 00:32:05 -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 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 EMHs9dGo7q50WHTfnSkOil5H9d0gyQWGiE3Jy7YG/NY=; b=WXSvksbSOnTGeHen\n oG7RRhr7QkdGmVYeTqk3wdDr4261/rBjL7lSvfWiDOBOrhQUiuOliuSw0GB1qvkI\n aoFl115K7XKzQYRcu46JpekBtgsAQXWAWiclBhAkRlfqFCt3Mc3jY8zANjtvpVlb\n zYkPtS7Y7qBHF5pMlyqKpmMOdWp12dVkbsb0c+MSnf++T7sCxBXDiKJXPfdTJYOq\n eSZASAtThUpSVbE1d38MA53wcXnncx+NWT+YK+RhmDJCSI0LEsFYteGPlGi2vCCi\n JLvypsiq4TAvBnzUVosC9yxZurPvqeAsP7PRXRDGsBF456JhHVZf/tXo4tNrAmTX\n p8Pypg==","v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oss.qualcomm.com; s=google; t=1777361527; x=1777966327; 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=EMHs9dGo7q50WHTfnSkOil5H9d0gyQWGiE3Jy7YG/NY=;\n b=P2cnma6x70nchgrZ7l6kNHnLIitv8wMT0bN2kC4VbiO+TRwkxM3ZjihQbzFccYkLR6\n 4q5Pbj43i5l/Mf9nAB5iMj4B8qvqZXAFZ18cdU2+gYjhoymOIbG/W7W9USg84DabNSis\n YJW+XLZ9iMhlCxsjkm3m3vENDJ5tshdiRT8d3IKmhMlItonmQkX7Kcxlb1ip0WRUR+pM\n VfYSSlWvjVOlKzzqm4vAzosaXIdgkYl3RZekiC/VF/jB6rXB4kjzXGxVSTlJary+Fp63\n iVkEQw6ciVKUavMjFEzU8JGBiup2RirE6Nc2A6oUdpvJ/YlUEfLIIZ2yBnwdOd1/LB0B\n th+g=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777361527; x=1777966327;\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=EMHs9dGo7q50WHTfnSkOil5H9d0gy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mmQBHNPI9ekADh/n3uOuydMruoOe+gdKvr","X-Received":["by 2002:a17:90b:4fc8:b0:35e:5ae3:298a with SMTP id\n 98e67ed59e1d1-36492011566mr2141057a91.18.1777361526490;\n Tue, 28 Apr 2026 00:32:06 -0700 (PDT)","by 2002:a17:90b:4fc8:b0:35e:5ae3:298a with SMTP id\n 98e67ed59e1d1-36492011566mr2141029a91.18.1777361525945;\n Tue, 28 Apr 2026 00:32:05 -0700 (PDT)"],"From":"Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>","Date":"Tue, 28 Apr 2026 13:01:43 +0530","Subject":"[PATCH v4 1/8] 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":"<20260428-type-v4-1-b7051dc45a88@oss.qualcomm.com>","References":"<20260428-type-v4-0-b7051dc45a88@oss.qualcomm.com>","In-Reply-To":"<20260428-type-v4-0-b7051dc45a88@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 Rasmus Villemoes <ravi@prevas.dk>, Simon Glass <sjg@chromium.org>,\n Javier Tia <floss@jetm.me>,\n Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>,\n Varadarajan Narayanan <quic_varada@quicinc.com>,\n Javier Martinez Canillas <javierm@redhat.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 Marek Vasut <marek.vasut+renesas@mailbox.org>,\n Christian Marangi <ansuelsmth@gmail.com>,\n 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 Jerome Forissier <jerome.forissier@arm.com>,\n Mattijs Korpershoek <mkorpershoek@kernel.org>,\n Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>","X-Mailer":"b4 0.14.3","X-Developer-Signature":"v=1; a=ed25519-sha256; t=1777361510; l=3240;\n i=balaji.selvanathan@oss.qualcomm.com; s=20260213; h=from:subject:message-id;\n bh=Ml3/BpKYzZl7IrkwxBoCMg0MM0BfLTUaOJixh8OGOFM=;\n b=UkPKs3c8EyEtB85ROLO5Y14szsJ+XR7NG9wPSnOoYMrUqCfEJuxVsuK5pu3ZfW16SKzwpNh38\n GCDtkx0CafDCdC3VY0w3oe1LzIgu2lXbc9ahNJRF8P1pwzkSmfT+c2I","X-Developer-Key":"i=balaji.selvanathan@oss.qualcomm.com; a=ed25519;\n pk=CDpYiUU3SH7KGEtsBvY2tBGPiWfMxqWJF0p2LftOfnc=","X-Proofpoint-Spam-Details-Enc":"AW1haW4tMjYwNDI4MDA2OSBTYWx0ZWRfXze9WaKWTEDIh\n vHRE2fGDgLXff3IlFTZpifL8+r9MbHTJp5nTz7psu0cmuTkg8/bNHVQiSOa4f1YGt/dQeytszAm\n 5jMHXEiAMPEkGm8r7Pm10Hnimd6XZdQObghed/uSfbXkg6KsprnwSBjnX0rylDxqSMpnfnzTMSo\n /3PG72xB7+5wimpYwillzmwHYVMknCH4Zm6d2jXzXfQhCjsdo1kwz8KUdo9fo1McpnaKZqC2Xh6\n 0/KWEYLyLtFngmkZfulm4X3gQfd6HkL/ZUOHW4sLzaKvoqnQCUg9o76MPyu21TXyvMwWkEzj8b6\n O/dH39eTzfOSBWq/Ey/qIWuLPq2hRlV/BOlX9XpJbaygbKo5rzClVdwGfzq7c+WtSQ+DHka9bkN\n jpMYfvfw4v/R28L4btiS/LP2UF7NoBHVObWcabLD8IX5Hwn27w47nS98hqO5ITSKF5JcSNeeL2g\n wSXTWx6NYM5eb5MKeAQ==","X-Proofpoint-ORIG-GUID":"aPwV-ZHQKUyH7zlOL-8zSg3b-Y4z1dc-","X-Authority-Analysis":"v=2.4 cv=AJEsYPsu c=1 sm=1 tr=0 ts=69f06277 cx=c_pps\n a=UNFcQwm+pnOIJct1K4W+Mw==: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=ZpdpYltYx_vBUK5n70dp:22\n a=cm27Pg_UAAAA:8 a=EUspDBNiAAAA:8 a=njE6j2fD9wNKUyOOxzIA:9 a=QEXdDO2ut3YA:10\n a=uKXjsCUrEbL0IQVhDsJ9:22","X-Proofpoint-GUID":"aPwV-ZHQKUyH7zlOL-8zSg3b-Y4z1dc-","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-28_01,2026-04-21_02,2025-10-01_01","X-Proofpoint-Spam-Details":"rule=outbound_notspam policy=outbound score=0\n phishscore=0 impostorscore=0 priorityscore=1501 suspectscore=0 bulkscore=0\n malwarescore=0 adultscore=0 lowpriorityscore=0 clxscore=1015 spamscore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2604200000 definitions=main-2604280069","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\nReviewed-by: Simon Glass <sjg@chromium.org>\nSigned-off-by: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>\n---\nChanges in v4:\n- No changes\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---\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":["v4","1/8"]}