get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2217410,
    "url": "http://patchwork.ozlabs.org/api/patches/2217410/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260328171624.2377527-3-dario.binacchi@amarulasolutions.com/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/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": "<20260328171624.2377527-3-dario.binacchi@amarulasolutions.com>",
    "list_archive_url": null,
    "date": "2026-03-28T17:15:15",
    "name": "[2/4] cmd: part: support lookup by UUID in 'part number'",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "bb252eb33046c131e20df6ab7ee4aab57b3e1027",
    "submitter": {
        "id": 83038,
        "url": "http://patchwork.ozlabs.org/api/people/83038/?format=api",
        "name": "Dario Binacchi",
        "email": "dario.binacchi@amarulasolutions.com"
    },
    "delegate": {
        "id": 68728,
        "url": "http://patchwork.ozlabs.org/api/users/68728/?format=api",
        "username": "xypron",
        "first_name": "Heinrich",
        "last_name": "Schuchardt",
        "email": "xypron.glpk@gmx.de"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260328171624.2377527-3-dario.binacchi@amarulasolutions.com/mbox/",
    "series": [
        {
            "id": 497883,
            "url": "http://patchwork.ozlabs.org/api/series/497883/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=497883",
            "date": "2026-03-28T17:15:13",
            "name": "Support metadata-driven A/B boot for STM32MP25",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/497883/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2217410/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2217410/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=jd8SJZFR;\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=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=\"jd8SJZFR\";\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 [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 4fjkhp4tDNz1y1j\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 29 Mar 2026 04:17:14 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 68DDE83FA7;\n\tSat, 28 Mar 2026 18:17:07 +0100 (CET)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 31C7C83CD3; Sat, 28 Mar 2026 18:17:05 +0100 (CET)",
            "from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com\n [IPv6:2a00:1450:4864:20::32a])\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 E707383DCB\n for <u-boot@lists.denx.de>; Sat, 28 Mar 2026 18:17:02 +0100 (CET)",
            "by mail-wm1-x32a.google.com with SMTP id\n 5b1f17b1804b1-48538c5956bso30828545e9.0\n for <u-boot@lists.denx.de>; Sat, 28 Mar 2026 10:17:02 -0700 (PDT)",
            "from dario-ThinkPad-P14s-Gen-5.homenet.telecomitalia.it\n (host-87-9-100-184.retail.telecomitalia.it. [87.9.100.184])\n by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-48722c6b105sm332432465e9.1.2026.03.28.10.16.58\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sat, 28 Mar 2026 10:17:01 -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=1774718222; x=1775323022;\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=3Mh8S4bvLscy0w5DE+eviu1WjsIbvjgnteN21kYD3wY=;\n b=jd8SJZFRNwSGEDbpyQKHzOnkkfiMw6TMLZTYTGs9ub5Qv52sqZ/svqsGiDZWnGVPyB\n bxKbPebU+nY8AdmriWAgc9gvPH2UtbdOMmSh80t0pGEBLGdxzgrFRnDh9v4fSnfCwSxO\n sDar+jtLG+2jSDN3Fk6qzRMmYPBRiFqSM4jqE=",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774718222; x=1775323022;\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=3Mh8S4bvLscy0w5DE+eviu1WjsIbvjgnteN21kYD3wY=;\n b=sSLDuDACoAFLDid5Ee5hmMGil34hROiea+M6zxGYyKevIHIHblhLC7jxKqgUzqVNds\n w5tbOEQ4JirUuF8bz4L1hLIjigbr/4uym+c655unYXie0ikAdVLKjW9vKxEn0dkXSVH/\n sgYeaYR2cdzsOdu974GI0p4J+4LYIp/eMzRe+T9WIfIil4D6oGrV/QJ6saUx+vrtIwcc\n TWcUk89dAar1K6PaIgIDIQNig6ozSGhilDJXj8PpMpQh7Zkm6zq/uG1uioxvClATKsot\n oCLhB8MD7YLugc/sMkThSVmrMU2nmxPw3jFCgs/GmyywNxtiQcM2gVT/SUf28MkzRHGl\n DgDg==",
        "X-Gm-Message-State": "AOJu0YxRlzCGd4DUInAdeC1k1qEJHxbcZszjUyE+4VFUGdy2swb4HsTF\n ls5xjliH+zGO80AaDWKk51wgkvdyhde4/Tww1b/0klEdE04s2zJCmnk8vk5auyTvitCSOajkEhu\n RsNKz",
        "X-Gm-Gg": "ATEYQzxNKJH7xdcIFOazI2iWEGlqPXXkv7JBnwbW+hnpVKZTybatKttdrtXd8M2qYKX\n 9AaY490E8SNQk9aYcgTqoTvHHij2WRyG/Jg7fZ0l6S22Y9UcTkkALN5ETCXXb9uL8ubNry7qvxI\n 3e25rT6kLPk02lUuF1nJb1pGrpCycbkFuIYEzyHRMooY1GrQhWbFPgu+vr7T4oiB/GINZVs+XK9\n 9afeZDRGY1Q3rMkwaEsE6Uqfu7x/ldIB0xNvAzLuV11fzrw0nuvqwZpciKNoZ3/+9327kvmvb8z\n xhpzPdnxeFO/uE4g8DHjbcVJx3ujX/Dpnod5KQR5LqW/NtX2b4ZBMfJB777JOLQ3A39xWthPjSN\n +IS2FiW65LzO59TBIA7IefrirrAq0rfELD+CyazDZoGpBOzz8bqLGtWinzqxFDxEioVJUsNSP6i\n H7AUzGq1zviV8RvrHHoVTq4Mvqsncx97p8pWMeMtgD050HByM64PU0KpKFK9Z75dnMEQjDDsW1P\n EknWhcvrZCzhUxVYR9PC7DD6CFeeDdvxiw+sjjzoUqPRIm1zXcZxpC3aGf1pc2fzp6tEqfVcaOm\n WuK8oKYRq9rWPQKBjEZLdBlBMqQc2RWLAwM=",
        "X-Received": "by 2002:a05:600c:c172:b0:486:f893:56c6 with SMTP id\n 5b1f17b1804b1-48729109ac4mr90982165e9.10.1774718221665;\n Sat, 28 Mar 2026 10:17:01 -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 Quentin Schulz <quentin.schulz@cherry.de>,\n Rasmus Villemoes <ravi@prevas.dk>, Tom Rini <trini@konsulko.com>",
        "Subject": "[PATCH 2/4] cmd: part: support lookup by UUID in 'part number'",
        "Date": "Sat, 28 Mar 2026 18:15:15 +0100",
        "Message-ID": "<20260328171624.2377527-3-dario.binacchi@amarulasolutions.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260328171624.2377527-1-dario.binacchi@amarulasolutions.com>",
        "References": "<20260328171624.2377527-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": "The 'part number' command currently allows looking up a partition\nindex only by its name.\n\nExtend the command to support looking up the partition index via its\npartition UUID. Unlike names, UUIDs guarantee unique partition\nidentification, avoiding ambiguity.\n\nThe logic is updated to check if the provided string is a valid UUID\nbefore falling back to a name-based search.\n\nSigned-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>\n---\n\n cmd/part.c | 8 ++++++--\n 1 file changed, 6 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/cmd/part.c b/cmd/part.c\nindex 975a0a08a99d..a3f3febb6977 100644\n--- a/cmd/part.c\n+++ b/cmd/part.c\n@@ -139,6 +139,10 @@ static int do_part_info(int argc, char *const argv[], enum cmd_part_info param)\n \t\terr = part_get_info(desc, part, &info);\n \t\tif (err)\n \t\t\treturn 1;\n+\t} else if (uuid_str_valid(argv[2])) {\n+\t\tpart = part_get_info_by_uuid(desc, argv[2], &info);\n+\t\tif (part < 0)\n+\t\t\treturn 1;\n \t} else {\n \t\tpart = part_get_info_by_name(desc, argv[2], &info);\n \t\tif (part < 0)\n@@ -314,8 +318,8 @@ U_BOOT_CMD(\n \t\"    - set environment variable to the size of the partition (in blocks)\\n\"\n \t\"      part can be either partition number or partition name\\n\"\n \t\"part number <interface> <dev> <part> <varname>\\n\"\n-\t\"    - set environment variable to the partition number using the partition name\\n\"\n-\t\"      part must be specified as partition name\\n\"\n+\t\"    - set environment variable to the partition number using the partition UUID or name\\n\"\n+\t\"      part must be specified as partition UUID or name\\n\"\n \t\"part name <interface> <dev> <part> <varname>\\n\"\n \t\"    - set environment variable to the partition name using the partition number\\n\"\n \t\"      part must be specified as partition number\\n\"\n",
    "prefixes": [
        "2/4"
    ]
}