get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2215755,
    "url": "http://patchwork.ozlabs.org/api/patches/2215755/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260325095801.47706-4-Alexander.Feilke@ew.tq-group.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": "<20260325095801.47706-4-Alexander.Feilke@ew.tq-group.com>",
    "list_archive_url": null,
    "date": "2026-03-25T09:57:56",
    "name": "[v2,3/8] env: add env_set_runtime() helper",
    "commit_ref": null,
    "pull_url": null,
    "state": "deferred",
    "archived": false,
    "hash": "8dd13131d86dfb310e0fce37a5ed767cf65c560c",
    "submitter": {
        "id": 92142,
        "url": "http://patchwork.ozlabs.org/api/people/92142/?format=api",
        "name": "Feilke, Alexander",
        "email": "Alexander.Feilke@ew.tq-group.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/20260325095801.47706-4-Alexander.Feilke@ew.tq-group.com/mbox/",
    "series": [
        {
            "id": 497406,
            "url": "http://patchwork.ozlabs.org/api/series/497406/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=497406",
            "date": "2026-03-25T09:57:54",
            "name": "Add support for TQMa7x",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/497406/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2215755/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2215755/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=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=ew.tq-group.com header.i=@ew.tq-group.com\n header.a=rsa-sha256 header.s=default2602 header.b=E9csZDSx;\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=fail (p=quarantine dis=none) header.from=ew.tq-group.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=ew.tq-group.com header.i=@ew.tq-group.com\n header.b=\"E9csZDSx\";\n\tdkim-atps=neutral",
            "phobos.denx.de; dmarc=pass (p=quarantine dis=none)\n header.from=ew.tq-group.com",
            "phobos.denx.de; spf=pass\n smtp.mailfrom=Alexander.Feilke@ew.tq-group.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 4fgj6M4K9Lz1xy3\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 25 Mar 2026 20:58:51 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 1A99D83DA7;\n\tWed, 25 Mar 2026 10:58:26 +0100 (CET)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 29CDD83AAB; Wed, 25 Mar 2026 10:58:20 +0100 (CET)",
            "from www537.your-server.de (www537.your-server.de [188.40.3.216])\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 E1DF583F14\n for <u-boot@lists.denx.de>; Wed, 25 Mar 2026 10:58:16 +0100 (CET)",
            "from sslproxy07.your-server.de ([78.47.199.104])\n by www537.your-server.de with esmtpsa  (TLS1.3) tls TLS_AES_256_GCM_SHA384\n (Exim 4.96.2) (envelope-from <Alexander.Feilke@ew.tq-group.com>)\n id 1w5L08-0009m2-2H; Wed, 25 Mar 2026 10:58:12 +0100",
            "from localhost ([127.0.0.1])\n by sslproxy07.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384\n (Exim 4.96) (envelope-from <Alexander.Feilke@ew.tq-group.com>)\n id 1w5L08-000HPv-1Q; Wed, 25 Mar 2026 10:58:12 +0100"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_BLOCKED,\n RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED,\n SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n d=ew.tq-group.com; s=default2602; h=Content-Transfer-Encoding:MIME-Version:\n References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:\n Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From:\n Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID;\n bh=oKBHjKgo871tXYOg2RSCmvd5kutHuj3QQSpGP4/ZcVI=; b=E9csZDSxwvzKeqYICaHAZultLX\n PFF8G60qwE707DGR3of2u8IShwAmk+VxkPNNQTDKkgCfxQ04gBZ+KbQH7bnWbTKTWnUYX4xgkjMjJ\n wfztnxUNvKnx7+VfVh2lVRvvL3QGaCzfiRNyojY3113ZWzLDmZO7Gmh0Zeg8c+kpttYw4ycj6Y274\n vpKeRJMDmupb4yWz2fNbvqGKHrn2F5Ia7zDgO0f0nfzTeDPSvV2ysGkqPjmNlo723PMhwEjHHduI6\n vykj/VIrvIcmqyh2fxOTn9m7lW8+TLHUf3ROtKtXkDUXloHrKUi6iuCdlbottaHNoXXm+ZxkfaE28\n RVrpXkzA==;",
        "From": "Alexander Feilke <Alexander.Feilke@ew.tq-group.com>",
        "To": "\"NXP i.MX U-Boot Team\" <uboot-imx@nxp.com>, u-boot@lists.denx.de,\n u-boot@ew.tq-group.com",
        "Cc": "Nora Schiffer <nora.schiffer@ew.tq-group.com>,\n Tom Rini <trini@konsulko.com>, Stefano Babic <sbabic@nabladev.com>,\n Fabio Estevam <festevam@gmail.com>,\n Alexander Feilke <Alexander.Feilke@ew.tq-group.com>,\n Peng Fan <peng.fan@nxp.com>, Jaehoon Chung <jh80.chung@samsung.com>,\n Steffen Doster <Steffen.Doster@tq-group.com>,\n Max Merchel <Max.Merchel@ew.tq-group.com>,\n Alexander Feilke <alexander.feilke@ew.tq-group.com>",
        "Subject": "[PATCH v2 3/8] env: add env_set_runtime() helper",
        "Date": "Wed, 25 Mar 2026 10:57:56 +0100",
        "Message-Id": "<20260325095801.47706-4-Alexander.Feilke@ew.tq-group.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20260325095801.47706-1-Alexander.Feilke@ew.tq-group.com>",
        "References": "<20260325095801.47706-1-Alexander.Feilke@ew.tq-group.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": "From: Nora Schiffer <nora.schiffer@ew.tq-group.com>\n\nenv_set_runtime() is equivalent to env_set(), but does nothing when\nCONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG is unset.\n\nSigned-off-by: Nora Schiffer <nora.schiffer@ew.tq-group.com>\nSigned-off-by: Steffen Doster <Steffen.Doster@tq-group.com>\nSigned-off-by: Max Merchel <Max.Merchel@ew.tq-group.com>\nSigned-off-by: Alexander Feilke <alexander.feilke@ew.tq-group.com>\n---\n include/env.h | 19 +++++++++++++++++++\n 1 file changed, 19 insertions(+)",
    "diff": "diff --git a/include/env.h b/include/env.h\nindex 01c3eeae7e2..193aff8f23b 100644\n--- a/include/env.h\n+++ b/include/env.h\n@@ -160,6 +160,25 @@ bool env_get_autostart(void);\n  */\n int env_set(const char *varname, const char *value);\n \n+/**\n+ * env_set_runtime() - set an environment variable if\n+ * CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG is set.\n+ *\n+ * This is equivalent to env_set(), but does nothing if\n+ * CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG is unset.\n+ *\n+ * @varname: Variable to adjust\n+ * @value: Value to set for the variable, or NULL or \"\" to delete the variable\n+ * @return 0 if OK or !CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG, 1 on error\n+ */\n+static inline int env_set_runtime(const char *varname, const char *value)\n+{\n+\tif (IS_ENABLED(CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG))\n+\t\treturn env_set(varname, value);\n+\n+\treturn 0;\n+}\n+\n /**\n  * env_get_ulong() - Return an environment variable as an integer value\n  *\n",
    "prefixes": [
        "v2",
        "3/8"
    ]
}