get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2196213,
    "url": "http://patchwork.ozlabs.org/api/patches/2196213/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260213051507.23466-2-hs@nabladev.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": "<20260213051507.23466-2-hs@nabladev.com>",
    "list_archive_url": null,
    "date": "2026-02-13T05:15:06",
    "name": "[v2,1/2] imx: scu_api: implement sc_misc_get_boot_type",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "ddcfed87d548c3e6d6fde1ca8bc0e121c54af9b6",
    "submitter": {
        "id": 91409,
        "url": "http://patchwork.ozlabs.org/api/people/91409/?format=api",
        "name": "Heiko Schocher",
        "email": "hs@nabladev.com"
    },
    "delegate": {
        "id": 151988,
        "url": "http://patchwork.ozlabs.org/api/users/151988/?format=api",
        "username": "festevam",
        "first_name": "Fabio",
        "last_name": "Estevam",
        "email": "festevam@gmail.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260213051507.23466-2-hs@nabladev.com/mbox/",
    "series": [
        {
            "id": 492058,
            "url": "http://patchwork.ozlabs.org/api/series/492058/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=492058",
            "date": "2026-02-13T05:15:05",
            "name": "Add for imx8x SoC get_boot_type command",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/492058/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2196213/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2196213/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=nabladev.com header.i=@nabladev.com header.a=rsa-sha256\n header.s=dkim header.b=FBDrIx+4;\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=nabladev.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=nabladev.com header.i=@nabladev.com\n header.b=\"FBDrIx+4\";\n\tdkim-atps=neutral",
            "phobos.denx.de; dmarc=pass (p=reject dis=none)\n header.from=nabladev.com",
            "phobos.denx.de; spf=pass smtp.mailfrom=hs@nabladev.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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fC0jt4MyRz1xpY\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 13 Feb 2026 16:15:30 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 91DC783CEE;\n\tFri, 13 Feb 2026 06:15:21 +0100 (CET)",
            "by phobos.denx.de (Postfix, from userid 109)\n id CF60583015; Fri, 13 Feb 2026 06:15:19 +0100 (CET)",
            "from mx.nabladev.com (mx.nabladev.com\n [IPv6:2a00:f820:417:0:178:251:229:89])\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 CE04683B9D\n for <u-boot@lists.denx.de>; Fri, 13 Feb 2026 06:15:17 +0100 (CET)",
            "from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon)\n with ESMTPSA id D4CA5110825; Fri, 13 Feb 2026 06:15:16 +0100 (CET)"
        ],
        "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; d=nabladev.com;\n s=dkim; t=1770959717; h=from:subject:date:message-id:to:cc:mime-version:\n content-transfer-encoding:in-reply-to:references;\n bh=ws29+wpNjJ5tO019O/zmKLWIAmUN1PDiHlbCDr7wUW0=;\n b=FBDrIx+4BPUbNKSybItLGuHo2dZZ/FL14grr8YIPjAmziWt5Gh1jZah0Wh4Z4RqeyPTQiR\n BrU133Lo/d8b5Vw93XmRPUXwKlArh6E4NWk6qrosIJnw8SGzDJe2g8EenxJ5vWZ8pAdyqN\n b9PbcZmEJbrsqAQpcy0oKnNO4WNwFqGVTgCYjy1vUGDqi6TDR3RPhmCkyrcDMV1uA/Hhvy\n jWNHxr+4VZAE768EwYEEybt8+Fli98fwz00qirwvymMtChg0VltPlghvC4o6NhmXnOdJ5b\n nKP7WaMM2/U1WABFuV+16r9qV4oEE+QdfeR17QM8vbWRcRWRhQ1J2FpK2jsEXQ==",
        "From": "Heiko Schocher <hs@nabladev.com>",
        "To": "U-Boot Mailing List <u-boot@lists.denx.de>",
        "Cc": "Peng Fan <peng.fan@oss.nxp.com>, Heiko Schocher <hs@nabladev.com>,\n Walter Schweizer <walter.schweizer@siemens.com>,\n Peng Fan <peng.fan@nxp.com>, Andrew Goodbody <andrew.goodbody@linaro.org>,\n John Ripple <john.ripple@keysight.com>, Tom Rini <trini@konsulko.com>",
        "Subject": "[PATCH v2 1/2] imx: scu_api: implement sc_misc_get_boot_type",
        "Date": "Fri, 13 Feb 2026 06:15:06 +0100",
        "Message-Id": "<20260213051507.23466-2-hs@nabladev.com>",
        "X-Mailer": "git-send-email 2.20.1",
        "In-Reply-To": "<20260213051507.23466-1-hs@nabladev.com>",
        "References": "<20260213051507.23466-1-hs@nabladev.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Last-TLS-Session-Version": "TLSv1.3",
        "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 function sc_misc_get_boot_type() which returns the\nboot type.\n\nSigned-off-by: Heiko Schocher <hs@nabladev.com>\nSigned-off-by: Walter Schweizer <walter.schweizer@siemens.com>\nReviewed-by: Peng Fan <peng.fan@nxp.com>\n\n---\n\nChanges in v2:\n- rebase to mainline\n  b99da05e153 - (tag: v2026.04-rc2, origin/master, origin/HEAD) Prepare v2026.04-rc2\n- add Reviewed-by from Peng\n\n drivers/misc/imx8/scu_api.c    | 25 +++++++++++++++++++++++++\n include/firmware/imx/sci/sci.h |  1 +\n 2 files changed, 26 insertions(+)",
    "diff": "diff --git a/drivers/misc/imx8/scu_api.c b/drivers/misc/imx8/scu_api.c\nindex d9cc7acb970..c15a4a629ad 100644\n--- a/drivers/misc/imx8/scu_api.c\n+++ b/drivers/misc/imx8/scu_api.c\n@@ -374,6 +374,31 @@ void sc_misc_boot_status(sc_ipc_t ipc, sc_misc_boot_status_t status)\n \t\t       __func__, status, RPC_R8(&msg));\n }\n \n+int sc_misc_get_boot_type(sc_ipc_t ipc, sc_misc_bt_t *type)\n+{\n+\tstruct udevice *dev = gd->arch.scu_dev;\n+\tint size = sizeof(struct sc_rpc_msg_s);\n+\tstruct sc_rpc_msg_s msg;\n+\tint ret;\n+\n+\tif (!dev)\n+\t\thang();\n+\n+\tRPC_VER(&msg) = SC_RPC_VERSION;\n+\tRPC_SIZE(&msg) = 1U;\n+\tRPC_SVC(&msg) = (u8)SC_RPC_SVC_MISC;\n+\tRPC_FUNC(&msg) = (u8)MISC_FUNC_GET_BOOT_TYPE;\n+\n+\tret = misc_call(dev, SC_FALSE, &msg, size, &msg, size);\n+\tif (ret < 0)\n+\t\treturn ret;\n+\n+\tif (type)\n+\t\t*type = (u8)RPC_U8(&msg, 0U);\n+\n+\treturn 0;\n+}\n+\n int sc_misc_get_boot_container(sc_ipc_t ipc, u8 *idx)\n {\n \tstruct udevice *dev = gd->arch.scu_dev;\ndiff --git a/include/firmware/imx/sci/sci.h b/include/firmware/imx/sci/sci.h\nindex 876d52cac35..7f4ca735663 100644\n--- a/include/firmware/imx/sci/sci.h\n+++ b/include/firmware/imx/sci/sci.h\n@@ -86,6 +86,7 @@ int sc_misc_get_control(sc_ipc_t ipc, sc_rsrc_t resource, sc_ctrl_t ctrl,\n \t\t\tu32 *val);\n void sc_misc_get_boot_dev(sc_ipc_t ipc, sc_rsrc_t *boot_dev);\n void sc_misc_boot_status(sc_ipc_t ipc, sc_misc_boot_status_t status);\n+int sc_misc_get_boot_type(sc_ipc_t ipc, sc_misc_bt_t *type);\n int sc_misc_get_boot_container(sc_ipc_t ipc, u8 *idx);\n void sc_misc_build_info(sc_ipc_t ipc, u32 *build, u32 *commit);\n int sc_misc_otp_fuse_read(sc_ipc_t ipc, u32 word, u32 *val);\n",
    "prefixes": [
        "v2",
        "1/2"
    ]
}