Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2228521/?format=api
{ "id": 2228521, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2228521/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260426154724.2042569-3-dario.binacchi@amarulasolutions.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20260426154724.2042569-3-dario.binacchi@amarulasolutions.com>", "list_archive_url": null, "date": "2026-04-26T15:46:55", "name": "[v7,2/8] test: dm: part: add test for part_get_info_by_uuid", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "ed6ce5c3d45f02ef0ce353d73a44cfa794877cce", "submitter": { "id": 83038, "url": "http://patchwork.ozlabs.org/api/1.2/people/83038/?format=api", "name": "Dario Binacchi", "email": "dario.binacchi@amarulasolutions.com" }, "delegate": { "id": 70413, "url": "http://patchwork.ozlabs.org/api/1.2/users/70413/?format=api", "username": "pchotard", "first_name": "Patrice", "last_name": "Chotard", "email": "patrice.chotard@st.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260426154724.2042569-3-dario.binacchi@amarulasolutions.com/mbox/", "series": [ { "id": 501546, "url": "http://patchwork.ozlabs.org/api/1.2/series/501546/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=501546", "date": "2026-04-26T15:46:53", "name": "Support metadata-driven A/B boot for STM32MP25", "version": 7, "mbox": "http://patchwork.ozlabs.org/series/501546/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2228521/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2228521/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=amarulasolutions.com header.i=@amarulasolutions.com\n header.a=rsa-sha256 header.s=google header.b=Ryhytnbq;\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=none dis=none) header.from=amarulasolutions.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=amarulasolutions.com header.i=@amarulasolutions.com\n header.b=\"Ryhytnbq\";\n\tdkim-atps=neutral", "phobos.denx.de; dmarc=pass (p=none dis=none)\n header.from=amarulasolutions.com", "phobos.denx.de; spf=pass\n smtp.mailfrom=dario.binacchi@amarulasolutions.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 4g3WLC5w1sz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 27 Apr 2026 01:47:47 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 6C3B184262;\n\tSun, 26 Apr 2026 17:47:35 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id 788D2839D9; Sun, 26 Apr 2026 17:47:34 +0200 (CEST)", "from mail-wr1-x429.google.com (mail-wr1-x429.google.com\n [IPv6:2a00:1450:4864:20::429])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 8A98E839D9\n for <u-boot@lists.denx.de>; Sun, 26 Apr 2026 17:47:32 +0200 (CEST)", "by mail-wr1-x429.google.com with SMTP id\n ffacd0b85a97d-43d73352cf2so7840587f8f.1\n for <u-boot@lists.denx.de>; Sun, 26 Apr 2026 08:47:32 -0700 (PDT)", "from dario-ThinkPad-P14s-Gen-5.amarulasolutions.com\n (host-82-56-22-134.retail.telecomitalia.it. [82.56.22.134])\n by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-44123d23e0bsm34489985f8f.15.2026.04.26.08.47.30\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sun, 26 Apr 2026 08:47:31 -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;\n d=amarulasolutions.com; s=google; t=1777218452; x=1777823252;\n darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=j7kw4CvLJkX2EjGaympe8ZZB0RtPYp/BO11dE+j3/IY=;\n b=RyhytnbquusJL0iJWeY/vZiah8QeI0MSZFwa2/RBXTFmKbxMcI6bQd/WsdZB+QQTlu\n YH1rjTY2vzSnficLfCAwkkQmz2XFF115rA0GUJ+okpzUXp0cClDMs6d4KueZgh7bEfLm\n /tl43A7+0p3/oooZ8GLGoLvq4G6bF6zsMkD1E=", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777218452; x=1777823252;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=j7kw4CvLJkX2EjGaympe8ZZB0RtPYp/BO11dE+j3/IY=;\n b=BswyfKyvegCitoLn9FBXfxutVK7ymSMub/df97NlLCC31+HIW23VEMAUBsYi7XmpZY\n TGPLimXvDqCfvmiJ0aP2Z4RrjCV6up/BlvGCPKiPFzZVy813zpn7BZyuOqpZIRXx0md9\n wOGbeaN1L7OUJS25bFiTencytphDCWSkAGxy7Q4+1ga6M40qYKmN/b82DZpd09lCc7d6\n 3QPy9EZBw2qqePURlzeIaFHs+WHh+P0k1OcHxm3NacAAxpRMr/YP9zPpV1aS8lenkGKB\n jcJjF3hEPsGBSzb1PyujhFZqvnXbyCl1RQM5vXLBfLu06qPJ7l96pWXoLU76cgfF/swm\n clkA==", "X-Gm-Message-State": "AOJu0YyG43vIAc9YOYpJU/NCWCqTqUeJmVjeWQYTtPpn7Rt7c8bHAEPg\n /uF9mwCqGXqqCNvQwPuoj2ecQ2yuk8AZpoMJ/u7Ev91WjpxE2QbhTBAI1x+pCya1inoML9BSWSC\n QB5Ca", "X-Gm-Gg": "AeBDiev34z/RFUqkziJthEWoWUHy5OZz7f9K70FOV0a58OYPSXCXXHtbWEgJz6Ls+IG\n gemwvrQWCAw87zUjOgsn407+Q3xKVMmJImG1cIoVcN62z7y2jtUQT5UiFzPjc9k7bVqCUf0frmX\n NK0jh16Vwyij/6838kU5l6HYc/HExzDXmICGeWsVUaZMEcBklnYfAxq05vbNu/kFg1YAX8YorLU\n kPk+/GebYyeq7k/vntLuKGFKoYj/W7A3kI4RGKhOGuwauiJFCGEXHRsubdFaf0HobsFhBRuzApH\n ypZg7nWAYvTVHc7+HjYsyEV/s5IXC+q7LoycRhS7sWFBKFyPMQ6GbpPdLcCTbxzBa0bVR+Sa+Es\n LQmh3G5pzWznqPGitdwIIyG98DuV9cThm/cPxuuIAjPY27uXumt7fdqxMZAvWRjtQLojbtHaD6V\n Mu7TIrCuyk/XmDwFLu8PoE+MLB5qEACEkE1bS3yJtcwWroO7i5TZFBvT8/n78t/7YrqfYQRCKno\n /R7YFOjZSt27WGJARcKnm2qvUYsW8l1WhTF5tz6rjCVSOCZa27lAsX7vraPhgrVaDD4pioksvxc\n VKZt6Qp6xqeetNIZFd11sxxQAJBtkA==", "X-Received": "by 2002:a05:6000:2508:b0:43d:7e6f:3816 with SMTP id\n ffacd0b85a97d-43fe3e14ecbmr59468933f8f.40.1777218451696;\n Sun, 26 Apr 2026 08:47:31 -0700 (PDT)", "From": "Dario Binacchi <dario.binacchi@amarulasolutions.com>", "To": "u-boot@lists.denx.de", "Cc": "linux-amarula@amarulasolutions.com,\n Dario Binacchi <dario.binacchi@amarulasolutions.com>,\n Simon Glass <sjg@chromium.org>,\n Jerome Forissier <jerome.forissier@arm.com>,\n Mattijs Korpershoek <mkorpershoek@kernel.org>,\n Tom Rini <trini@konsulko.com>", "Subject": "[PATCH v7 2/8] test: dm: part: add test for part_get_info_by_uuid", "Date": "Sun, 26 Apr 2026 17:46:55 +0200", "Message-ID": "<20260426154724.2042569-3-dario.binacchi@amarulasolutions.com>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20260426154724.2042569-1-dario.binacchi@amarulasolutions.com>", "References": "<20260426154724.2042569-1-dario.binacchi@amarulasolutions.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "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 new unit test for the part_get_info_by_uuid() function.\n\nSigned-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>\nReviewed-by: Simon Glass <sjg@chromium.org>\n\n---\n\n(no changes since v3)\n\nChanges in v3:\n- Add Reviewed-by tag of Simon Glass\n\n test/dm/part.c | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 53 insertions(+)", "diff": "diff --git a/test/dm/part.c b/test/dm/part.c\nindex caae23bd4aad..ad37d7f406f4 100644\n--- a/test/dm/part.c\n+++ b/test/dm/part.c\n@@ -195,3 +195,56 @@ 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_uuid(struct unit_test_state *uts)\n+{\n+\tstruct disk_partition parts[] = {\n+\t\t{\n+\t\t\t.start = 48,\n+\t\t\t.size = 1,\n+\t\t\t.name = \"test1\",\n+\t\t\t.uuid = \"c5bce7a2-03f0-4d03-9048-01ff23b9d527\",\n+\t\t},\n+\t\t{\n+\t\t\t.start = 49,\n+\t\t\t.size = 1,\n+\t\t\t.name = \"test2\",\n+\t\t\t.uuid = \"9df346e8-2c53-4cd8-b9ac-3af83f9a9b74\",\n+\t\t},\n+\t};\n+\tchar disk_guid[UUID_STR_LEN + 1] =\n+\t\t\"8d60b397-1bb6-4d33-80ee-b1587d24c2f8\";\n+\tstruct blk_desc *mmc_dev_desc;\n+\tstruct disk_partition info;\n+\tint part, i;\n+\n+\tut_asserteq(2, blk_get_device_by_str(\"mmc\", \"2\", &mmc_dev_desc));\n+\n+\tif (CONFIG_IS_ENABLED(RANDOM_UUID)) {\n+\t\tfor (i = 0; i < ARRAY_SIZE(parts); i++)\n+\t\t\tgen_rand_uuid_str(parts[i].uuid, UUID_STR_FORMAT_STD);\n+\n+\t\tgen_rand_uuid_str(disk_guid, UUID_STR_FORMAT_STD);\n+\t}\n+\n+\tut_assertok(gpt_restore(mmc_dev_desc, disk_guid, parts,\n+\t\t\t\tARRAY_SIZE(parts)));\n+\n+\tfor (i = 0; i < ARRAY_SIZE(parts); i++) {\n+\t\tpart = part_get_info_by_uuid(mmc_dev_desc, parts[i].uuid,\n+\t\t\t\t\t &info);\n+\n+\t\tut_asserteq(i + 1, part);\n+\t\tut_asserteq_str(parts[i].name, info.name);\n+\t\tut_asserteq(parts[i].start, info.start);\n+\t\tut_asserteq(parts[i].size, info.size);\n+\t}\n+\n+\tpart = part_get_info_by_uuid(mmc_dev_desc,\n+\t\t\t\t \"00000000-0000-0000-0000-000000000000\",\n+\t\t\t\t &info);\n+\tut_assert(part < 0);\n+\n+\treturn 0;\n+}\n+DM_TEST(dm_test_part_get_info_by_uuid, UTF_SCAN_PDATA | UTF_SCAN_FDT);\n", "prefixes": [ "v7", "2/8" ] }