get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2197007,
    "url": "http://patchwork.ozlabs.org/api/patches/2197007/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/46dcab5fc58e9116ca017a63ed07922ae3093913.1771275704.git.daniel@makrotopia.org/",
    "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": "<46dcab5fc58e9116ca017a63ed07922ae3093913.1771275704.git.daniel@makrotopia.org>",
    "list_archive_url": null,
    "date": "2026-02-16T21:23:17",
    "name": "[RFC,13/20] boot: bootmeth: add OpenWrt boot method skeleton",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "3b52a5d93aea0d6e399a3f0a01b3e9c64de27326",
    "submitter": {
        "id": 64091,
        "url": "http://patchwork.ozlabs.org/api/people/64091/?format=api",
        "name": "Daniel Golle",
        "email": "daniel@makrotopia.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/46dcab5fc58e9116ca017a63ed07922ae3093913.1771275704.git.daniel@makrotopia.org/mbox/",
    "series": [
        {
            "id": 492351,
            "url": "http://patchwork.ozlabs.org/api/series/492351/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=492351",
            "date": "2026-02-16T21:21:14",
            "name": "boot: add OpenWrt boot method and on-demand FIT loading",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/492351/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2197007/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2197007/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 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=none (p=none dis=none) header.from=makrotopia.org",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de; dmarc=none (p=none dis=none)\n header.from=makrotopia.org",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=daniel@makrotopia.org"
        ],
        "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 4fFG5R4f6mz1xpl\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 17 Feb 2026 08:25:15 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 8F72783E96;\n\tMon, 16 Feb 2026 22:23:48 +0100 (CET)",
            "by phobos.denx.de (Postfix, from userid 109)\n id CD14983B8A; Mon, 16 Feb 2026 22:23:37 +0100 (CET)",
            "from pidgin.makrotopia.org (pidgin.makrotopia.org\n [IPv6:2a07:2ec0:3002::65])\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 6C98283E23\n for <u-boot@lists.denx.de>; Mon, 16 Feb 2026 22:23:35 +0100 (CET)",
            "from local\n by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256)\n (Exim 4.99) (envelope-from <daniel@makrotopia.org>)\n id 1vs63t-000000002mh-2An4; Mon, 16 Feb 2026 21:23:21 +0000"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-1.9 required=5.0 tests=BAYES_00,\n RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2",
        "Date": "Mon, 16 Feb 2026 21:23:17 +0000",
        "From": "Daniel Golle <daniel@makrotopia.org>",
        "To": "Tom Rini <trini@konsulko.com>, Simon Glass <sjg@chromium.org>,\n Quentin Schulz <quentin.schulz@cherry.de>,\n Daniel Golle <daniel@makrotopia.org>,\n Kory Maincent <kory.maincent@bootlin.com>,\n Mattijs Korpershoek <mkorpershoek@kernel.org>,\n Martin Schwan <m.schwan@phytec.de>, Anshul Dalal <anshuld@ti.com>,\n Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n Sughosh Ganu <sughosh.ganu@arm.com>, Aristo Chen <jj251510319013@gmail.com>,\n\t=?utf-8?b?54mbIOW/l+Wujw==?= <Zone.Niuzh@hotmail.com>,\n Marek Vasut <marek.vasut+renesas@mailbox.org>,\n Heinrich Schuchardt <xypron.glpk@gmx.de>,\n Wolfgang Wallner <wolfgang.wallner@at.abb.com>,\n Frank Wunderlich <frank-w@public-files.de>,\n David Lechner <dlechner@baylibre.com>,\n Osama Abdelkader <osama.abdelkader@gmail.com>,\n Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>,\n Michael Trimarchi <michael@amarulasolutions.com>,\n Miquel Raynal <miquel.raynal@bootlin.com>,\n Andrew Goodbody <andrew.goodbody@linaro.org>,\n Yegor Yefremov <yegorslists@googlemail.com>,\n Mike Looijmans <mike.looijmans@topic.nl>,\n Weijie Gao <weijie.gao@mediatek.com>,\n Alexander Stein <alexander.stein@ew.tq-group.com>,\n Neil Armstrong <neil.armstrong@linaro.org>,\n Mayuresh Chitale <mchitale@ventanamicro.com>,\n Paul HENRYS <paul.henrys_ext@softathome.com>, u-boot@lists.denx.de",
        "Cc": "John Crispin <john@phrozen.org>, Paul Spooren <mail@aparcar.org>",
        "Subject": "[RFC PATCH 13/20] boot: bootmeth: add OpenWrt boot method skeleton",
        "Message-ID": "\n <46dcab5fc58e9116ca017a63ed07922ae3093913.1771275704.git.daniel@makrotopia.org>",
        "References": "<cover.1771275704.git.daniel@makrotopia.org>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=us-ascii",
        "Content-Disposition": "inline",
        "In-Reply-To": "<cover.1771275704.git.daniel@makrotopia.org>",
        "X-Mailman-Approved-At": "Mon, 16 Feb 2026 22:23:46 +0100",
        "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 the initial bootmeth_openwrt driver with:\n\n- UCLASS_BOOTMETH driver, compatible \"u-boot,openwrt\"\n- check(): accept block devices via bootflow_iter_check_blk()\n- bind(): set BOOTMETHF_ANY_PART so bootstd iterates all partitions\n  without requiring a filesystem\n- read_bootflow(): stub returning -ENOENT\n- boot(): stub returning -ENOSYS\n- Kconfig: CONFIG_BOOTMETH_OPENWRT depending on FIT, BOOTSTD,\n  BOOTM_STORAGE\n\nThis is the foundation for booting OpenWrt-style uImage.FIT firmware\nimages stored directly on raw storage partitions. The bootmeth will\ndelegate actual image loading to the existing bootm storage path via\nimage_loader.\n\nSigned-off-by: Daniel Golle <daniel@makrotopia.org>\n---\n boot/Kconfig            | 13 +++++++++\n boot/Makefile           |  1 +\n boot/bootmeth_openwrt.c | 65 +++++++++++++++++++++++++++++++++++++++++\n 3 files changed, 79 insertions(+)\n create mode 100644 boot/bootmeth_openwrt.c",
    "diff": "diff --git a/boot/Kconfig b/boot/Kconfig\nindex efc06f3cd1a..d8c7b8360ac 100644\n--- a/boot/Kconfig\n+++ b/boot/Kconfig\n@@ -585,6 +585,19 @@ config BOOTMETH_CROS\n \n \t  Note that only x86 devices are supported at present.\n \n+config BOOTMETH_OPENWRT\n+\tbool \"Bootdev support for OpenWrt\"\n+\tdepends on FIT\n+\tdepends on BOOTSTD\n+\tdepends on BOOTM_STORAGE\n+\thelp\n+\t  Enables support for booting OpenWrt-style uImage.FIT firmware\n+\t  images stored directly on raw storage (block device partitions,\n+\t  MTD partitions, or UBI volumes). The boot method loads the FIT\n+\t  metadata, selectively reads only the kernel and FDT sub-images\n+\t  from storage, and skips filesystem sub-images that Linux maps\n+\t  directly from flash.\n+\n config BOOTMETH_EXTLINUX\n \tbool \"Bootdev support for extlinux boot\"\n \tselect PXE_UTILS\ndiff --git a/boot/Makefile b/boot/Makefile\nindex 7d1d4a28106..7b42358eb0c 100644\n--- a/boot/Makefile\n+++ b/boot/Makefile\n@@ -72,6 +72,7 @@ obj-$(CONFIG_$(PHASE_)BOOTMETH_VBE_SIMPLE_FW) += vbe_simple_fw.o\n obj-$(CONFIG_$(PHASE_)BOOTMETH_VBE_SIMPLE_OS) += vbe_simple_os.o\n \n obj-$(CONFIG_$(PHASE_)BOOTMETH_ANDROID) += bootmeth_android.o\n+obj-$(CONFIG_$(PHASE_)BOOTMETH_OPENWRT) += bootmeth_openwrt.o\n \n obj-$(CONFIG_IMAGE_LOADER) += image-loader.o\n obj-$(CONFIG_IMAGE_LOADER_BLK) += image-loader-blk.o\ndiff --git a/boot/bootmeth_openwrt.c b/boot/bootmeth_openwrt.c\nnew file mode 100644\nindex 00000000000..02bf543031b\n--- /dev/null\n+++ b/boot/bootmeth_openwrt.c\n@@ -0,0 +1,65 @@\n+// SPDX-License-Identifier: GPL-2.0+\n+/*\n+ * Bootmethod for OpenWrt\n+ *\n+ * Copyright (C) 2026 Daniel Golle <daniel@makrotopia.org>\n+ */\n+\n+#define LOG_CATEGORY UCLASS_BOOTSTD\n+\n+#include <blk.h>\n+#include <bootdev.h>\n+#include <bootflow.h>\n+#include <bootm.h>\n+#include <bootmeth.h>\n+#include <dm.h>\n+#include <image-loader.h>\n+#include <malloc.h>\n+#include <mapmem.h>\n+\n+static int openwrt_check(struct udevice *dev, struct bootflow_iter *iter)\n+{\n+\tif (bootflow_iter_check_blk(iter))\n+\t\treturn log_msg_ret(\"blk\", -EOPNOTSUPP);\n+\n+\treturn 0;\n+}\n+\n+static int openwrt_read_bootflow(struct udevice *dev, struct bootflow *bflow)\n+{\n+\treturn log_msg_ret(\"nyi\", -ENOENT);\n+}\n+\n+static int openwrt_boot(struct udevice *dev, struct bootflow *bflow)\n+{\n+\treturn log_msg_ret(\"nyi\", -ENOSYS);\n+}\n+\n+static int openwrt_bootmeth_bind(struct udevice *dev)\n+{\n+\tstruct bootmeth_uc_plat *plat = dev_get_uclass_plat(dev);\n+\n+\tplat->desc = \"OpenWrt\";\n+\tplat->flags = BOOTMETHF_ANY_PART;\n+\n+\treturn 0;\n+}\n+\n+static struct bootmeth_ops openwrt_bootmeth_ops = {\n+\t.check\t\t= openwrt_check,\n+\t.read_bootflow\t= openwrt_read_bootflow,\n+\t.boot\t\t= openwrt_boot,\n+};\n+\n+static const struct udevice_id openwrt_bootmeth_ids[] = {\n+\t{ .compatible = \"u-boot,openwrt\" },\n+\t{ }\n+};\n+\n+U_BOOT_DRIVER(bootmeth_openwrt) = {\n+\t.name\t\t= \"bootmeth_openwrt\",\n+\t.id\t\t= UCLASS_BOOTMETH,\n+\t.of_match\t= openwrt_bootmeth_ids,\n+\t.ops\t\t= &openwrt_bootmeth_ops,\n+\t.bind\t\t= openwrt_bootmeth_bind,\n+};\n",
    "prefixes": [
        "RFC",
        "13/20"
    ]
}