get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.1/patches/2230911/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2230911,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2230911/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260430080627.849636-9-dario.binacchi@amarulasolutions.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": "<20260430080627.849636-9-dario.binacchi@amarulasolutions.com>",
    "date": "2026-04-30T08:06:09",
    "name": "[v8,8/8] board: st: stm32mp25: support dynamic A/B bank bootup",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "6670d344d333e5eaf769fc4c6a02ed3a9b19f034",
    "submitter": {
        "id": 83038,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/83038/?format=api",
        "name": "Dario Binacchi",
        "email": "dario.binacchi@amarulasolutions.com"
    },
    "delegate": {
        "id": 70413,
        "url": "http://patchwork.ozlabs.org/api/1.1/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/20260430080627.849636-9-dario.binacchi@amarulasolutions.com/mbox/",
    "series": [
        {
            "id": 502228,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/502228/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=502228",
            "date": "2026-04-30T08:06:01",
            "name": "Support metadata-driven A/B boot for STM32MP25",
            "version": 8,
            "mbox": "http://patchwork.ozlabs.org/series/502228/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2230911/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2230911/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 (1024-bit key;\n unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com\n header.a=rsa-sha256 header.s=google header.b=YEBE4axH;\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=\"YEBE4axH\";\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 4g5mxm27VWz1yGq\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 18:07:56 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 90A048467B;\n\tThu, 30 Apr 2026 10:06:54 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 6599E8466F; Thu, 30 Apr 2026 10:06:53 +0200 (CEST)",
            "from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com\n [IPv6:2a00:1450:4864:20::42e])\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 5ADFD84198\n for <u-boot@lists.denx.de>; Thu, 30 Apr 2026 10:06:51 +0200 (CEST)",
            "by mail-wr1-x42e.google.com with SMTP id\n ffacd0b85a97d-43d64313c39so459413f8f.3\n for <u-boot@lists.denx.de>; Thu, 30 Apr 2026 01:06:51 -0700 (PDT)",
            "from dario-ThinkPad-P14s-Gen-5.homenet.telecomitalia.it\n (host-82-56-22-134.retail.telecomitalia.it. [82.56.22.134])\n by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-449c576d0a2sm668071f8f.31.2026.04.30.01.06.48\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 30 Apr 2026 01:06:49 -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=1777536410; x=1778141210;\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=5S2gUI+yh0xPdb/QwVrb1gySfcxDflQCsZShYuF0V2Q=;\n b=YEBE4axHrCF99O3NElekHKJWez6FZx13JtmtzonQ4fDtrnN+3xTiD00DJhf1XWMSaB\n zoLp+1sYFKqIyrgcSihkYa+l3P5WS6Nbmyg1A7aYekXzGliDcYeyAACtKPFBLIZRZxtA\n /TYZn8qGBS4/WyARf+uHG1RYudW2clbhpoVfA=",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777536410; x=1778141210;\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=5S2gUI+yh0xPdb/QwVrb1gySfcxDflQCsZShYuF0V2Q=;\n b=o9j3GHLnz/rlE0+iEsQF6AzxnW3rERR0fwCdgmChSmUFa00r0C9XCDLxJbiBIDgUdX\n CxpuBC765e/VI84wV6kRCDVcA1GaosiGyOsfcCTtGCzxxmYJd77LTXaCIpZ82aYz3ARS\n ks2qUnIAf5Sb2VBeeRzMcuMKWl49AWd2V3UHneOudbt4TNr/ptqab7n6leLD7CDEiqH0\n BxDVOJw+IY5oFZ4FYzQJpY9L5Plhbtrp51sKL4KN7IIy8MlCdLvKDzO5itjY/rDFPxSk\n FczRN7N4IK/FOYQZo2bnrLuowvGn0uoMwt1b/2YhuQvQkWaT9sMYzTjZ0IvkPeIPqnd9\n lpUw==",
        "X-Gm-Message-State": "AOJu0YwAZkPjEsiPr3/Y9QFVKlYWk825qD0n+TKn9iarjW4J3voVv9uO\n 7kN4t5UUyvnwZF746gmoyn0YyBXGlTLOQt9n+bdkN3ZQ2+aId9A7M6xtF65iqjhLAyU2CV1gj7k\n YTS7E",
        "X-Gm-Gg": "AeBDiev5U893teuDTo0Iqkah+jzjmh9/263Pjtx6NMf/2SiE8LGU93ZEp7nfvV+9cAs\n W/bR/+yiZniLoQuwTfwyVNdgssDjnlP0PHfSnKBIfbUikhn79+fv5PQo0vqaZTfjDp2BJQhLyLo\n 5qs073kp7aaQ33VByOgk0cowVlkA3t0Nv3tegqcWtiSLql8mwYDpisSlFlJ6GmnsGGA0KGyITtZ\n yb48IeuGRsAE2W3XEKc6tneBcH28Wj79PsnDptJw4FALrMJsjYkSSNcUAn8itamR7UaGPLzoMl+\n bJCHx1osNLqWXS8FE/DlMEa/ugbNXKxjBhx4t6WXlmXZ9Pk0eRv3tW37kqCe9hdkqgcnDNQy1dI\n GQjh1RElquhz9yZQaA0Q1G6qUqnI3Msk8BZ4ZPDGNbrVE64Twe1bwmShiPd2Gb8exZg5prDa+bq\n DhfuHe4vf3isJ+PjYbEl6KAec6QH5RkkloSFoKl2LDpfSpfq8x0eQ0Zjln8PJBhE2IaE5MwIOEx\n y2WI9huaUGmMYIiuWqtUtX/D/znrxsC/S0YkRGkv3yxY8kXrWqbHXVoNH9g79ilEvDJ5r9S8Ieq\n pzAu01ScDVmgjmRODgEkbrYbc/A8yYQ4gLmCYMBvGXm7vg==",
        "X-Received": "by 2002:a05:6000:26c4:b0:441:1fa5:457f with SMTP id\n ffacd0b85a97d-4493e982952mr2858427f8f.28.1777536410433;\n Thu, 30 Apr 2026 01:06:50 -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 Patrice Chotard <patrice.chotard@foss.st.com>,\n Marek Vasut <marek.vasut+renesas@mailbox.org>,\n Patrick Delaunay <patrick.delaunay@foss.st.com>,\n Quentin Schulz <quentin.schulz@cherry.de>, Tom Rini <trini@konsulko.com>,\n uboot-stm32@st-md-mailman.stormreply.com",
        "Subject": "[PATCH v8 8/8] board: st: stm32mp25: support dynamic A/B bank bootup",
        "Date": "Thu, 30 Apr 2026 10:06:09 +0200",
        "Message-ID": "<20260430080627.849636-9-dario.binacchi@amarulasolutions.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260430080627.849636-1-dario.binacchi@amarulasolutions.com>",
        "References": "<20260430080627.849636-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": "Enable automatic detection of the active A/B bank by retrieving\npartition GUIDs from FWU metadata.\n\nThis ensures the system correctly identifies the bootable partitions\neven in multi-bank scenarios, falling back to a standard bootable flag\nscan if the UUIDs are missing.\n\nTo enable A/B bank bootup on stm32mp25 boards, add the following Kconfig\noptions to the stm32mp25_defconfig:\n\n CONFIG_FWU_MULTI_BANK_UPDATE=y\n CONFIG_FWU_MDATA=y\n CONFIG_FWU_NUM_BANKS=2\n CONFIG_FWU_NUM_IMAGES_PER_BANK=3\n CONFIG_CMD_FWU_METADATA=y\n CONFIG_FWU_MDATA_V2=y\n\nSigned-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>\nReviewed-by: Simon Glass <sjg@chromium.org>\nReviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>\n\n---\n\nChanges in v8:\n- Add Reviewed-by of Patrice Chotard\n- Skip cmd_test_part tests for configurations where MMC is not enabled\n  or the device is missing\n\nChanges in v5:\n- Add Acked-by of Ilias Apalodimas to patch 6/8 \"fwu: add helper to get\n  image GUID by type and bank index\"\n\nChanges in v4:\n- Add patch 7/8 test: dm: fwu_mdata: add test for fwu_mdata_get_image_guid\n\nChanges in v3:\n- Wrap lines exceeding 80 columns in test/cmd/part.c file.\n- Combine run_command() and ut_asserteq() -> ut_asserteq(1, run_command(\n- Add kerneldoc comment for fwu_mdata_get_image_guid() above its declaration\n  in fwu.h.\n- Add log_warning() messages to fwu_platform_hook() to catch inconsistent\n  FWU metadata (boot GUID found but root GUID missing or viceversa), as\n  suggested by Simon Glass.\n- Add Reviewed-by tag of Simon Glass.\n\nChanges in v2:\n- Add links to the XBOOTLDR specification in the commit message of patch\n   1/7 lib: uuid: add partition type GUID for extended bootloader.\n- Update help for 'part start', 'part size' to mention UUID.\n- Add kerneldoc comment for fwu_mdata_get_image_guid().\n- Pass efi_guid_t by pointer in fwu_mdata_get_image_guid().\n- Add patches:\n   5/7 test: cmd: part: add UUID lookup tests\n   3/7 test: cmd: add unit tests for part command\n   2/7 test: dm: part: add test for part_get_info_by_uuid\n- Pass efi_guid_t by pointer in fwu_mdata_get_image_guid() calls.\n\n board/st/stm32mp2/stm32mp2.c          | 32 +++++++++++++++++++++++++++\n include/configs/stm32mp25_st_common.h | 15 +++++++++++++\n 2 files changed, 47 insertions(+)",
    "diff": "diff --git a/board/st/stm32mp2/stm32mp2.c b/board/st/stm32mp2/stm32mp2.c\nindex 43bc583378e6..5cbbbc322a3a 100644\n--- a/board/st/stm32mp2/stm32mp2.c\n+++ b/board/st/stm32mp2/stm32mp2.c\n@@ -208,4 +208,36 @@ void fwu_plat_get_bootidx(uint *boot_idx)\n \t*boot_idx = (readl(TAMP_FWU_BOOT_INFO_REG) >>\n \t\t    TAMP_FWU_BOOT_IDX_OFFSET) & TAMP_FWU_BOOT_IDX_MASK;\n }\n+\n+int fwu_platform_hook(struct udevice *dev, struct fwu_data *data)\n+{\n+\tuint boot_idx;\n+\tefi_guid_t boot_uuid, root_uuid;\n+\tconst efi_guid_t boot_type_guid = PARTITION_XBOOTLDR;\n+\tconst efi_guid_t root_type_guid =\n+\t\tPARTITION_LINUX_FILE_SYSTEM_DATA_GUID;\n+\tchar uuidbuf[UUID_STR_LEN + 1];\n+\tint retb, retr;\n+\n+\tfwu_plat_get_bootidx(&boot_idx);\n+\n+\tretb = fwu_mdata_get_image_guid(&boot_uuid, &boot_type_guid, boot_idx);\n+\tretr = fwu_mdata_get_image_guid(&root_uuid, &root_type_guid, boot_idx);\n+\n+\tif (!retb && !retr) {\n+\t\tuuid_bin_to_str(boot_uuid.b, uuidbuf, UUID_STR_FORMAT_GUID);\n+\t\tenv_set(\"boot_partuuid\", uuidbuf);\n+\n+\t\tuuid_bin_to_str(root_uuid.b, uuidbuf, UUID_STR_FORMAT_GUID);\n+\t\tenv_set(\"root_partuuid\", uuidbuf);\n+\t} else if (!retb && retr) {\n+\t\tlog_warning(\"%s: found boot GUID but missing root GUID (%d)\\n\",\n+\t\t\t    __func__, retr);\n+\t} else if (!retr && retb) {\n+\t\tlog_warning(\"%s: found root GUID but missing boot GUID (%d)\\n\",\n+\t\t\t    __func__, retb);\n+\t}\n+\n+\treturn 0;\n+}\n #endif /* CONFIG_FWU_MULTI_BANK_UPDATE */\ndiff --git a/include/configs/stm32mp25_st_common.h b/include/configs/stm32mp25_st_common.h\nindex cb679eb1be22..0b0267ae99b0 100644\n--- a/include/configs/stm32mp25_st_common.h\n+++ b/include/configs/stm32mp25_st_common.h\n@@ -8,7 +8,22 @@\n #ifndef __CONFIG_STM32MP25_ST_COMMON_H__\n #define __CONFIG_STM32MP25_ST_COMMON_H__\n \n+#ifdef CONFIG_FWU_MULTI_BANK_UPDATE\n+#define SCAN_DEV_FOR_BOOT_PARTS \\\n+\t\"setenv devplist; \" \\\n+\t\"env exists boot_partuuid && \" \\\n+\t\t\"part number ${devtype} ${devnum} ${boot_partuuid} devplist; \" \\\n+\t\"env exists devplist || \" \\\n+\t\t\"part list ${devtype} ${devnum} -bootable devplist; \"\n+\n+#define ST_STM32MP25_FWU_ENV \\\n+\t\"altbootcmd=${bootcmd}\\0\"\n+#else\n+#define ST_STM32MP25_FWU_ENV\n+#endif\n+\n #define STM32MP_BOARD_EXTRA_ENV \\\n+\tST_STM32MP25_FWU_ENV \\\n \t\"usb_pgood_delay=2000\\0\" \\\n \t\"console=ttySTM0\\0\"\n \n",
    "prefixes": [
        "v8",
        "8/8"
    ]
}