get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2224796,
    "url": "http://patchwork.ozlabs.org/api/patches/2224796/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260418175814.5731-2-heinrich.schuchardt@canonical.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": "<20260418175814.5731-2-heinrich.schuchardt@canonical.com>",
    "list_archive_url": null,
    "date": "2026-04-18T17:58:13",
    "name": "[1/2] cmd/bootefi: move efi_init_obj_list() to the start of do_bootefi",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "d33c58180c8f9fa87aaedb559b32d9cd9b8a29b2",
    "submitter": {
        "id": 82181,
        "url": "http://patchwork.ozlabs.org/api/people/82181/?format=api",
        "name": "Heinrich Schuchardt",
        "email": "heinrich.schuchardt@canonical.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/20260418175814.5731-2-heinrich.schuchardt@canonical.com/mbox/",
    "series": [
        {
            "id": 500458,
            "url": "http://patchwork.ozlabs.org/api/series/500458/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=500458",
            "date": "2026-04-18T17:58:12",
            "name": "efi_loader: centralize messaging for efi_init_obj_list",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/500458/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2224796/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2224796/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 (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.a=rsa-sha256 header.s=20251003 header.b=CRGx8vH6;\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=reject dis=none) header.from=canonical.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=pass (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.b=\"CRGx8vH6\";\n\tdkim-atps=neutral",
            "phobos.denx.de; dmarc=pass (p=reject dis=none)\n header.from=canonical.com",
            "phobos.denx.de; spf=pass\n smtp.mailfrom=heinrich.schuchardt@canonical.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 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fyfcj4Nltz1yGt\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 19 Apr 2026 03:58:29 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 5BA7A841C2;\n\tSat, 18 Apr 2026 19:58:21 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 5F0CB836AC; Sat, 18 Apr 2026 19:58:19 +0200 (CEST)",
            "from smtp-relay-canonical-0.canonical.com\n (smtp-relay-canonical-0.canonical.com [185.125.188.120])\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 728F783FC0\n for <u-boot@lists.denx.de>; Sat, 18 Apr 2026 19:58:17 +0200 (CEST)",
            "from LT03.fritz.box (ip-176-199-115-125.um44.pools.vodafone-ip.de\n [176.199.115.125])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id 8E05340D65;\n Sat, 18 Apr 2026 17:58:16 +0000 (UTC)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,\n RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,\n RCVD_IN_VALIDITY_RPBL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com;\n s=20251003; t=1776535097;\n bh=Cpe+8hW0HVaCXUUx8cvMdW1CXgJEXBcf2/vPZLnThhw=;\n h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n MIME-Version;\n b=CRGx8vH6xw0lC7Pb0ZP5JjkI7LsMpavBEmtf7uGeP8jtWGigdFb4edO3iTER7gCHS\n TI0iSauAO+DkZ5v1xVR6mwhVTajXIvhpWTLsu/bcRxKJflvGIuFVnV3z7jF0hd8d4h\n iSprHLvOzlingppDwar6dk87MgxazgW+Gn92veHPkNxPCs6GJd78wus1b6pKVOnYKy\n qzvx0zANVT6bdezwBEscLAcCTf6wrV0rL3au2HQwW6gRNhbzrJK6A/RejF7BtU6I/+\n /9erhJ9T0qOJVtdeiuhVRve6BqqGSVuq4il0KpZYUxZffpeseANkATlkNgqj1dx945\n lWKAAwMbfAQL1BBOwo4mdCiHamhr3dHMzQtdM2vTzY7m5J4z3RkpSCnfQNFiHgrA7n\n usvYX8ZFVIV6o3uIsvo8bbYQDSB5HGKMLD+b1Rf7xnp8X70QnmgOc2D/tgMahGb9mJ\n 8h6hGaTa0GWM5iw4B23/RxX4c2zOHDIXn7fNhPhnYzfnyfeiTEkwwflR9QWBX6OT+j\n iwQpR3IgxlboqzaoktHUZxHVgaVD7Kxtvq7Wcb1kEHlgkhslB14vtGHbQ6wvVfMFSq\n mQui5f49NBpJDf4wTquYUKzGGPe7TxSv2GT9vBLtMREMcLkwcBz1gj5Dt1sIIS4E2X\n wUbL/FPPHAKhLkIV6pGvUmHc=",
        "From": "Heinrich Schuchardt <heinrich.schuchardt@canonical.com>",
        "To": "Ilias Apalodimas <ilias.apalodimas@linaro.org>",
        "Cc": "Simon Glass <sjg@chromium.org>, Tom Rini <trini@konsulko.com>,\n Mark Kettenis <kettenis@openbsd.org>,\n Patrice Chotard <patrice.chotard@foss.st.com>, Peng Fan <peng.fan@nxp.com>,\n Christian Marangi <ansuelsmth@gmail.com>,\n Sughosh Ganu <sughosh.ganu@arm.com>,\n Casey Connolly <casey.connolly@linaro.org>,\n =?utf-8?q?Vincent_Stehl=C3=A9?= <vincent.stehle@arm.com>,\n Adriano Cordova <adrianox@gmail.com>, Javier Tia <floss@jetm.me>,\n Jerome Forissier <jerome.forissier@arm.com>,\n Ying-Chun Liu <paul.liu@linaro.org>, u-boot@lists.denx.de,\n Heinrich Schuchardt <heinrich.schuchardt@canonical.com>",
        "Subject": "[PATCH 1/2] cmd/bootefi: move efi_init_obj_list() to the start of\n do_bootefi",
        "Date": "Sat, 18 Apr 2026 19:58:13 +0200",
        "Message-ID": "<20260418175814.5731-2-heinrich.schuchardt@canonical.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260418175814.5731-1-heinrich.schuchardt@canonical.com>",
        "References": "<20260418175814.5731-1-heinrich.schuchardt@canonical.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": "None of the bootefi commands can be executed if the EFI sub-system cannot\nbe initialized.\n\nSigned-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>\n---\n cmd/bootefi.c | 16 ++++++++--------\n 1 file changed, 8 insertions(+), 8 deletions(-)",
    "diff": "diff --git a/cmd/bootefi.c b/cmd/bootefi.c\nindex 85f41c3b0a0..6dab709e507 100644\n--- a/cmd/bootefi.c\n+++ b/cmd/bootefi.c\n@@ -142,6 +142,14 @@ static int do_bootefi(struct cmd_tbl *cmdtp, int flag, int argc,\n \tif (argc < 2)\n \t\treturn CMD_RET_USAGE;\n \n+\t/* Initialize EFI drivers */\n+\tret = efi_init_obj_list();\n+\tif (ret != EFI_SUCCESS) {\n+\t\tlog_err(\"Error: Cannot initialize UEFI sub-system, r = %lu\\n\",\n+\t\t\tret & ~EFI_ERROR_MASK);\n+\t\treturn CMD_RET_FAILURE;\n+\t}\n+\n \tif (argc > 2) {\n \t\tulong rd_addr = 0;\n \t\tchar *end = strchr(argv[2], ':');\n@@ -179,14 +187,6 @@ static int do_bootefi(struct cmd_tbl *cmdtp, int flag, int argc,\n \n \tif (IS_ENABLED(CONFIG_CMD_BOOTEFI_SELFTEST) &&\n \t    !strcmp(argv[1], \"selftest\")) {\n-\t\t/* Initialize EFI drivers */\n-\t\tret = efi_init_obj_list();\n-\t\tif (ret != EFI_SUCCESS) {\n-\t\t\tlog_err(\"Error: Cannot initialize UEFI sub-system, r = %lu\\n\",\n-\t\t\t\tret & ~EFI_ERROR_MASK);\n-\t\t\treturn CMD_RET_FAILURE;\n-\t\t}\n-\n \t\tret = efi_install_fdt(fdt);\n \t\tif (ret != EFI_SUCCESS)\n \t\t\treturn CMD_RET_FAILURE;\n",
    "prefixes": [
        "1/2"
    ]
}