get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2220535,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2220535/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260407130654.778838-4-Alexander.Feilke@ew.tq-group.com/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/1.1/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
    },
    "msgid": "<20260407130654.778838-4-Alexander.Feilke@ew.tq-group.com>",
    "date": "2026-04-07T13:06:46",
    "name": "[v4,3/8] env: add env_set_runtime() helper",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "9d0cdb4ba9a1cefc4a224851a656f2210011e512",
    "submitter": {
        "id": 92142,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/92142/?format=api",
        "name": "Alexander Feilke",
        "email": "Alexander.Feilke@ew.tq-group.com"
    },
    "delegate": {
        "id": 151988,
        "url": "http://patchwork.ozlabs.org/api/1.1/users/151988/?format=api",
        "username": "festevam",
        "first_name": "Fabio",
        "last_name": "Estevam",
        "email": "festevam@gmail.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260407130654.778838-4-Alexander.Feilke@ew.tq-group.com/mbox/",
    "series": [
        {
            "id": 498982,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/498982/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=498982",
            "date": "2026-04-07T13:06:48",
            "name": "Add support for TQMa7x",
            "version": 4,
            "mbox": "http://patchwork.ozlabs.org/series/498982/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2220535/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2220535/checks/",
    "tags": {},
    "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=UUyxjsn4;\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=\"UUyxjsn4\";\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 4fqmhr454bz1xy1\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 07 Apr 2026 23:08:12 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 32F088404A;\n\tTue,  7 Apr 2026 15:07:40 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 2D62E83A41; Tue,  7 Apr 2026 15:07:29 +0200 (CEST)",
            "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 CA51E840BE\n for <u-boot@lists.denx.de>; Tue,  7 Apr 2026 15:07:26 +0200 (CEST)",
            "from sslproxy02.your-server.de ([78.47.166.47])\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 1wA69J-000723-2A; Tue, 07 Apr 2026 15:07:21 +0200",
            "from localhost ([127.0.0.1])\n by sslproxy02.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 1wA69I-0007St-2w; Tue, 07 Apr 2026 15:07:21 +0200"
        ],
        "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_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_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=RnXGgmHBdrRBKU7+ryDZCBmzVNM1/bFKxSlNSpVXjr0=; b=UUyxjsn4oOBVEZ2s7Et4UbUZK+\n gnCrTZ4s8bvyRVUKdfeaXl2o7cClNU74moN9Axz2nfr6Hz5PDvUQHhVNFopf38VBBhtBr90gkJE1j\n tl6k+Px6+RIur/ptpJ6yA9KeQMrCwlLUgWH/B/gdIMxYaEZEKVE7WyGConAH8ht/LOdWmn7lF5jzJ\n CuOXzgHYsgAFblfghEdo1pzdn14J4SMWVWkhOr8nom1fX1kVL4HvCOXCWDsqMfXyTcHEopsuBqhxF\n tYPZhnJnpzVZXLMlq5WJrmOSkWk2jOsQTVvCW+wDnZPZbMTpgWjKux4CD9Xw7aytxUVLPfI6wDv27\n azepPkcw==;",
        "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>,\n Alexander Feilke <Alexander.Feilke@ew.tq-group.com>,\n Stefano Babic <sbabic@nabladev.com>, Fabio Estevam <festevam@gmail.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 v4 3/8] env: add env_set_runtime() helper",
        "Date": "Tue,  7 Apr 2026 15:06:46 +0200",
        "Message-ID": "<20260407130654.778838-4-Alexander.Feilke@ew.tq-group.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260407130654.778838-1-Alexander.Feilke@ew.tq-group.com>",
        "References": "<20260407130654.778838-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>\nReviewed-by: Peng Fan <peng.fan@nxp.com>\nSigned-off-by: Alexander Feilke <alexander.feilke@ew.tq-group.com>\n---\n include/env.h | 20 ++++++++++++++++++++\n 1 file changed, 20 insertions(+)",
    "diff": "diff --git a/include/env.h b/include/env.h\nindex 01c3eeae7e2..9b872fb26eb 100644\n--- a/include/env.h\n+++ b/include/env.h\n@@ -9,6 +9,7 @@\n #ifndef __ENV_H\n #define __ENV_H\n \n+#include <config.h>\n #include <compiler.h>\n #include <stdbool.h>\n #include <linux/types.h>\n@@ -160,6 +161,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": [
        "v4",
        "3/8"
    ]
}