get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2217982,
    "url": "http://patchwork.ozlabs.org/api/patches/2217982/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260331075338.2391-4-ansuelsmth@gmail.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": "<20260331075338.2391-4-ansuelsmth@gmail.com>",
    "list_archive_url": null,
    "date": "2026-03-31T07:53:22",
    "name": "[v4,3/5] misc: fw_loader: implement generic get_fw_loader_from_node()",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "d786f6e4e5469765da70ba9434036fe91ae666e6",
    "submitter": {
        "id": 71108,
        "url": "http://patchwork.ozlabs.org/api/people/71108/?format=api",
        "name": "Christian Marangi",
        "email": "ansuelsmth@gmail.com"
    },
    "delegate": {
        "id": 3651,
        "url": "http://patchwork.ozlabs.org/api/users/3651/?format=api",
        "username": "trini",
        "first_name": "Tom",
        "last_name": "Rini",
        "email": "trini@ti.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260331075338.2391-4-ansuelsmth@gmail.com/mbox/",
    "series": [
        {
            "id": 498136,
            "url": "http://patchwork.ozlabs.org/api/series/498136/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=498136",
            "date": "2026-03-31T07:53:19",
            "name": "misc: fs_loader: reorg and split to FS and FW loader + FIP loader",
            "version": 4,
            "mbox": "http://patchwork.ozlabs.org/series/498136/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2217982/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2217982/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 (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=iSQl9zts;\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=gmail.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.b=\"iSQl9zts\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=gmail.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=ansuelsmth@gmail.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 4flL3x0cpRz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 31 Mar 2026 18:54:21 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 0CA2E84073;\n\tTue, 31 Mar 2026 09:53:57 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id EEFC58406D; Tue, 31 Mar 2026 09:53:54 +0200 (CEST)",
            "from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com\n [IPv6:2a00:1450:4864:20::32f])\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 BE04C84020\n for <u-boot@lists.denx.de>; Tue, 31 Mar 2026 09:53:52 +0200 (CEST)",
            "by mail-wm1-x32f.google.com with SMTP id\n 5b1f17b1804b1-4853e1ce427so66237105e9.3\n for <u-boot@lists.denx.de>; Tue, 31 Mar 2026 00:53:52 -0700 (PDT)",
            "from Ansuel-XPS24 (93-34-88-122.ip49.fastwebnet.it. [93.34.88.122])\n by smtp.googlemail.com with ESMTPSA id\n 5b1f17b1804b1-4887c561750sm23889915e9.2.2026.03.31.00.53.50\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 31 Mar 2026 00:53:51 -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,FREEMAIL_FROM,\n RCVD_IN_DNSWL_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;\n d=gmail.com; s=20251104; t=1774943632; x=1775548432; darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:from:to:cc:subject:date:message-id\n :reply-to; bh=k/6kSpsJEZwed2v18IcSrdq03Zwo71Wq4qJQ0bw02Rw=;\n b=iSQl9ztsvT/99gqzeCMu6nZSXvLnfZhnPYK8CMWl8d5D5BnzaQKy2zJ9+63eEd5mMe\n IX5L/vVz0+HYaGv8iNpvVdxiMyh+7yuM16NAJuy1hSNp9Q1Azp1tExnWJg6KooDHyjiV\n sUumjweiDg4woOV/Rzc4PJ7Tq9ea8VGzwHCjUMz7OxT3QQwhiPJxu0FRDWm1Cj0bo805\n PQwSjzKBjqYWjWF5n5L+svnLGpvHt1RiOQWubAj3qWuy0lw/mhZnhR0XKKTclrHtEx4O\n VcIMjKC8IcjeNFi1AfN2kcr1whl0nmKp4yPZ/ltSinlDrzM9wXQoqLYgwQRgulfNUN0R\n B7ug==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774943632; x=1775548432;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to\n :cc:subject:date:message-id:reply-to;\n bh=k/6kSpsJEZwed2v18IcSrdq03Zwo71Wq4qJQ0bw02Rw=;\n b=IALMRJgRck75eqorOmJ5KcObWmRmxm2IppJqCgmBMQxNASekEpO5Wm4vtvUWiZwHDF\n NipKnAH04Co26WLqsGOleEbg5DGT+L7xtVyYorvtQPvnFpAm9MahTCFJcHeJ8Tzg39uV\n DmWNwJ+vJ5qtYKPlQCYwH6L73mRrHBwH74TNm1DqihUpzlug/W6BA/FsPayXs2oCZ2Jr\n AAbV5x2JJ4GlgL1rkBmJSFjyed/OCwGbDPeQDF/GwycMWdtihgz3NaL26gmYjVP+TOnn\n +ZUc3LmdVNypnh+i38Ho+tuQ4uwMsOnQNKb28ikp/zn9WKfG/KZREj94VBdeOyJFeWJM\n XZ8w==",
        "X-Forwarded-Encrypted": "i=1;\n AJvYcCV2ivHsALw+Oah1LwBMZ023Apuo3RVmCV/hZFSZ32RtusioExtSiJZ1Umb5+oxTLIIKccS1X/o=@lists.denx.de",
        "X-Gm-Message-State": "AOJu0Yx+E8L8ciEaJqTLdjSyBa+ejIiOwiGZlD36c9DNsNwwM9siHstU\n gqycs/CefHFHEKq47C4XO7+cKrHfkWEHjsF2Xnf+TDmEok31FpkuEkGj",
        "X-Gm-Gg": "ATEYQzyxLgEas++A195LIWFOex62UvS7ARHMOye2ueEhlRLkjBFEK888ZhI5i/AYRmN\n 45p1dTbo3+BtBEqly+eZjz6MMSaa2fBcWbun/GX01WNJz8V7xIquRu/t+Hp5gpIkg8CAtT4WOL/\n fKk4Q1HDbujFLdzBFfrLGUi5USTlcGVY8mKfmsMMy3HCZzTUhHlmGIN2x6HWEQnDaAq6fn+qbma\n 54P/3hYUv8ODttZWyTVfTBNIykimWh8F8K8Zm0Jf37K3E+JZloR5DgmG1hP/FKWf5ad+dmzs84A\n DuM7dXOJIJgGJ6wsNqhDyC+69BkL/iyCY5u6Bob7g54pIiy95Jvby/UIt0rpEFJa6uD//jjWxOI\n LghmHNL18+IOiZDqXbBYMDXRbllSBmfPhtb660sF8rk7AJ5ucS1Sr6rzifb4kqiKXe6JrR1o4xP\n M8UPiF06z3SaWQBnwF4PVTc8K+yhHSM5hNNzD4dSs8cOhZFP/N+FAwRN8tUN5cxqLicA==",
        "X-Received": "by 2002:a05:600c:4e15:b0:485:2ce2:4c8a with SMTP id\n 5b1f17b1804b1-48727d67a21mr249760345e9.1.1774943632033;\n Tue, 31 Mar 2026 00:53:52 -0700 (PDT)",
        "From": "Christian Marangi <ansuelsmth@gmail.com>",
        "To": "Tom Rini <trini@konsulko.com>, Simon Glass <sjg@chromium.org>,\n Casey Connolly <casey.connolly@linaro.org>,\n Quentin Schulz <quentin.schulz@cherry.de>,\n Christian Marangi <ansuelsmth@gmail.com>, Peng Fan <peng.fan@nxp.com>,\n Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n Chen-Yu Tsai <wens@kernel.org>,\n Jamie Gibbons <jamie.gibbons@microchip.com>,\n Neha Malcom Francis <n-francis@ti.com>,\n Justin Klaassen <justin@tidylabs.net>, Harsha Vardhan V M <h-vm@ti.com>,\n Leo Yu-Chi Liang <ycliang@andestech.com>,\n Weijie Gao <weijie.gao@mediatek.com>,\n Marek Vasut <marek.vasut+renesas@mailbox.org>,\n Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@altera.com>,\n Sky Huang <SkyLake.Huang@mediatek.com>,\n \"Lucien.Jheng\" <lucienzx159@gmail.com>, u-boot@lists.denx.de",
        "Subject": "[PATCH v4 3/5] misc: fw_loader: implement generic\n get_fw_loader_from_node()",
        "Date": "Tue, 31 Mar 2026 09:53:22 +0200",
        "Message-ID": "<20260331075338.2391-4-ansuelsmth@gmail.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260331075338.2391-1-ansuelsmth@gmail.com>",
        "References": "<20260331075338.2391-1-ansuelsmth@gmail.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": "Implement a generic function to get a FW loader dev from a node.\n\nThere is currently only get_fs_loader() but that is limited to chosen\nnode and is limited only to FS loader.\n\nIntroduce get_fw_loader_from_node() that will parse the\n\"firmware-loader\" from a specified node and will loop over all the\navailable FW loader until one is found (as it will be probed by the\ndedicated compatible)\n\nSigned-off-by: Christian Marangi <ansuelsmth@gmail.com>\nReviewed-by: Neha Malcom Francis <n-francis@ti.com>\n---\n drivers/misc/fw_loader/fw_loader.c | 40 ++++++++++++++++++++++++++++++\n include/fw_loader.h                | 15 +++++++++++\n 2 files changed, 55 insertions(+)",
    "diff": "diff --git a/drivers/misc/fw_loader/fw_loader.c b/drivers/misc/fw_loader/fw_loader.c\nindex 644b98de9f6c..2738d42d4721 100644\n--- a/drivers/misc/fw_loader/fw_loader.c\n+++ b/drivers/misc/fw_loader/fw_loader.c\n@@ -8,6 +8,7 @@\n #include <blk.h>\n #include <linux/types.h>\n #include <dm/device.h>\n+#include <dm/uclass.h>\n #include <fw_loader.h>\n \n #ifdef CONFIG_CMD_UBIFS\n@@ -90,6 +91,45 @@ int generic_fw_loader_probe(struct udevice *dev)\n \treturn 0;\n }\n \n+static int fw_loaders[] = {\n+#if CONFIG_IS_ENABLED(FS_LOADER)\n+\tUCLASS_FS_FIRMWARE_LOADER,\n+#endif\n+};\n+\n+/**\n+ * get_fw_loader_from_node - Get FW loader dev from @node.\n+ *\n+ * @node: ofnode where \"firmware-loader\" phandle is stored.\n+ * @dev: pointer where to store the FW loader dev.\n+ *\n+ * Loop over all the supported FW loader and find a matching\n+ * one.\n+ *\n+ * Return: Negative value if fail, 0 for successful.\n+ */\n+int get_fw_loader_from_node(ofnode node, struct udevice **dev)\n+{\n+\tint i, ret;\n+\n+\tnode = ofnode_parse_phandle(node, \"firmware-loader\", 0);\n+\tif (!ofnode_valid(node))\n+\t\treturn -ENODEV;\n+\n+\t/*\n+\t * Loop over all the available FW loaders and stop when\n+\t * found one.\n+\t */\n+\tfor (i = 0; i < ARRAY_SIZE(fw_loaders); i++) {\n+\t\tret = uclass_get_device_by_ofnode(fw_loaders[i],\n+\t\t\t\t\t\t  node, dev);\n+\t\tif (!ret)\n+\t\t\treturn 0;\n+\t}\n+\n+\treturn -ENODEV;\n+}\n+\n /**\n  * _request_firmware_prepare - Prepare firmware struct.\n  *\ndiff --git a/include/fw_loader.h b/include/fw_loader.h\nindex 56f5e3be6195..7053c7bc6f05 100644\n--- a/include/fw_loader.h\n+++ b/include/fw_loader.h\n@@ -6,8 +6,23 @@\n #ifndef _FW_LOADER_H_\n #define _FW_LOADER_H_\n \n+#include <dm/ofnode_decl.h>\n+\n struct udevice;\n \n+/**\n+ * get_fw_loader_from_node - Get FW loader dev from @node.\n+ *\n+ * @node: ofnode where \"firmware-loader\" phandle is stored.\n+ * @dev: pointer where to store the FW loader dev.\n+ *\n+ * Loop over all the supported FW loader and find a matching\n+ * one.\n+ *\n+ * Return: Negative value if fail, 0 for successful.\n+ */\n+int get_fw_loader_from_node(ofnode node, struct udevice **dev);\n+\n /**\n  * request_firmware_into_buf - Load firmware into a previously allocated buffer.\n  * @dev: An instance of a driver.\n",
    "prefixes": [
        "v4",
        "3/5"
    ]
}