get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2224915,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2224915/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260419143247.437733-5-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": "<20260419143247.437733-5-dario.binacchi@amarulasolutions.com>",
    "date": "2026-04-19T14:31:44",
    "name": "[v4,4/8] cmd: part: support lookup by UUID",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "7bee91657b15970dd2c8b625de23676b84101baf",
    "submitter": {
        "id": 83038,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/83038/?format=api",
        "name": "Dario Binacchi",
        "email": "dario.binacchi@amarulasolutions.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260419143247.437733-5-dario.binacchi@amarulasolutions.com/mbox/",
    "series": [
        {
            "id": 500509,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/500509/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=500509",
            "date": "2026-04-19T14:31:40",
            "name": "Support metadata-driven A/B boot for STM32MP25",
            "version": 4,
            "mbox": "http://patchwork.ozlabs.org/series/500509/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2224915/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2224915/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=iwAe511b;\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=\"iwAe511b\";\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 4fzB1p3Z9sz1yGt\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 20 Apr 2026 00:33:34 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id D84D0842C2;\n\tSun, 19 Apr 2026 16:33:04 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 5D42183B99; Sun, 19 Apr 2026 16:33:04 +0200 (CEST)",
            "from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com\n [IPv6:2a00:1450:4864:20::32e])\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 6BD8384286\n for <u-boot@lists.denx.de>; Sun, 19 Apr 2026 16:33:02 +0200 (CEST)",
            "by mail-wm1-x32e.google.com with SMTP id\n 5b1f17b1804b1-488d2079582so25260995e9.2\n for <u-boot@lists.denx.de>; Sun, 19 Apr 2026 07:33:02 -0700 (PDT)",
            "from dario-ThinkPad-P14s-Gen-5.homenet.telecomitalia.it\n (host-79-20-97-39.retail.telecomitalia.it. [79.20.97.39])\n by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-488fb755938sm86864245e9.3.2026.04.19.07.32.59\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sun, 19 Apr 2026 07:33: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=1776609182; x=1777213982;\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=oAoP9NlzWltH1g0ieIPWcLlhZGE6FDHWvuaN/OvBd5Y=;\n b=iwAe511bOuGRYLYY3U2NWra8PIDeaPwveOP2zXljjgLvaPN4gJzcpGhLjcRsW1Fo3U\n ej+3XxL+paE1q3Abel7lgltvUXUYt1LVc41TKHXwdR05V22pZdUSSvEWs0iWBDYX8rgZ\n zx1RJxl9NfF9pXe5V+fLmY+xW64aeAr3nIru8=",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776609182; x=1777213982;\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=oAoP9NlzWltH1g0ieIPWcLlhZGE6FDHWvuaN/OvBd5Y=;\n b=UkAv9aPv2CcMz6umw2caRpg5h24LVpf3X2yFRNrF6/vAQnCcN7bbRoH9dZuqM4VQYh\n M2yedVuN3/kX3nXKB9syelrFDkt54HoI/HiUriLhRnUc0GMvu34j+bUUSoF1L5PY+Z+3\n M8P53ewAcHnlyLLWHKmLyZrTIIUHhpLfd9HequYq4OjmdOkhulk5yZ31w7uYRhht96Ha\n GYj4jSfE0cpeurSAj7wciH7Saqjl483QPZdNYq/r1aQM5r3JcC28Nqsi0XouVRmKEvPH\n NuIJgTFWoGuuGWAE3xyzB+pn8wl2E4v4Fx05wwY7zOxn4flNOLmyv4BIzk3tDQLbNADd\n n0GQ==",
        "X-Gm-Message-State": "AOJu0YwPMMI9OnKOG7MfbPP9fI+8FwPr9S31ejORszcVN2FASAcRgpiQ\n KqvdfP4J2cbloM/ZjXsvuRgPFG8QyomhXfPWdNNY1t3osTqLwY5NK+IK5P2V5s65FBpS5yZPFmK\n zLMcw",
        "X-Gm-Gg": "AeBDieuUDCBrONYF6fKKQdcJJOlzGkrFzvNz09GKw29SgnOE/mjaVJLHRdTb7TFjl2t\n f984/O43FJLvSRsD75DGBF63DeKwuDEf4yPb/K+D+LOjr4YYaINm+l0iOj4XLyVXFi004AETm+E\n DOKqXkd5Kh0P1KU4N1woG7xApv9at7FLPeiMaX92YQ1Hg/eQpTkmBa42TXtgFap5EQfb+sWV/vU\n dLY4GIFey8ZJL/RwGhC09nOPj25ONhVvdKui7exVyWPF0aKQ6Y9KfeF/CD+kQwmR3ucC0If6aGE\n V1z8/j2PGu2D6MtXtG8mLrXy8AJ/5vRW3C+x6mLNUQQNrh1Wl6rg3TheEsojO+S/OZTOYxage7g\n /EtfdDyu2i43nKSiBVXRJpm/qoZrpzWL3LNRyXA8N/W8CpPcExCVIpt0g3vs9bmCovviqbWgU1W\n 90Zmtdj1KElIe7c9R3JSZw4RAjsFoDjymlSUc4mC0Se0qk973l3WFcEcuKFi7ZBIhVKctX3WYyn\n zBmybPwO4wPFedvPK1Cj6fE1qrO1mSLi73xBSGFjBvJBSWI6d8tLCtSfC/73Hr8f76i1xEL2VaV\n nsfXt/n31Qth+30JZYyO4m6HO1RB20Ey",
        "X-Received": "by 2002:a05:600c:314b:b0:488:c282:e78c with SMTP id\n 5b1f17b1804b1-488fb77870fmr136331995e9.19.1776609181607;\n Sun, 19 Apr 2026 07:33: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 Simon Glass <sjg@chromium.org>, John Toomey <john.toomey@amd.com>,\n Padmarao Begari <padmarao.begari@amd.com>,\n Quentin Schulz <quentin.schulz@cherry.de>,\n Rasmus Villemoes <ravi@prevas.dk>, Tom Rini <trini@konsulko.com>",
        "Subject": "[PATCH v4 4/8] cmd: part: support lookup by UUID",
        "Date": "Sun, 19 Apr 2026 16:31:44 +0200",
        "Message-ID": "<20260419143247.437733-5-dario.binacchi@amarulasolutions.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260419143247.437733-1-dario.binacchi@amarulasolutions.com>",
        "References": "<20260419143247.437733-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' command currently allows looking up a partition only by its\nnumber or name.\n\nExtend the 'number', 'start', and 'size' subcommands to support looking\nup the partition via its UUID. Unlike names, UUIDs guarantee unique\npartition identification, 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. The help strings for these\nsubcommands are updated accordingly.\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\nChanges in v2:\n- Update commit message.\n- Update help for 'part start', 'part size' to mention UUID.\n\n cmd/part.c | 12 ++++++++----\n 1 file changed, 8 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/cmd/part.c b/cmd/part.c\nindex 5e520d707f39..3191d5861fdb 100644\n--- a/cmd/part.c\n+++ b/cmd/part.c\n@@ -144,6 +144,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@@ -517,13 +521,13 @@ U_BOOT_CMD(\n \t\"      flags can be -bootable (list only bootable partitions)\\n\"\n \t\"part start <interface> <dev> <part> <varname>\\n\"\n \t\"    - set environment variable to the start of the partition (in blocks)\\n\"\n-\t\"      part can be either partition number or partition name\\n\"\n+\t\"      part can be either partition number, UUID or name\\n\"\n \t\"part size <interface> <dev> <part> <varname>\\n\"\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 can be either partition number, UUID or 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": [
        "v4",
        "4/8"
    ]
}