get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2194879,
    "url": "http://patchwork.ozlabs.org/api/patches/2194879/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260210054345.126651-3-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": "<20260210054345.126651-3-hs@nabladev.com>",
    "list_archive_url": null,
    "date": "2026-02-10T05:43:45",
    "name": "[v2,2/2] arch: imx8qxp: Override weak fb_mmc_get_boot_offset function",
    "commit_ref": null,
    "pull_url": null,
    "state": "needs-review-ack",
    "archived": false,
    "hash": "43447d6d20803f458406941f792e4e830e26616c",
    "submitter": {
        "id": 91409,
        "url": "http://patchwork.ozlabs.org/api/people/91409/?format=api",
        "name": "Heiko Schocher",
        "email": "hs@nabladev.com"
    },
    "delegate": {
        "id": 117687,
        "url": "http://patchwork.ozlabs.org/api/users/117687/?format=api",
        "username": "mkorpershoek",
        "first_name": "Mattijs",
        "last_name": "Korpershoek",
        "email": "mkorpershoek@baylibre.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260210054345.126651-3-hs@nabladev.com/mbox/",
    "series": [
        {
            "id": 491606,
            "url": "http://patchwork.ozlabs.org/api/series/491606/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=491606",
            "date": "2026-02-10T05:43:43",
            "name": "fastboot: mmc: fix bootloader offset",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/491606/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2194879/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2194879/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=WftvDEUB;\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=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=\"WftvDEUB\";\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 [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 4f99VQ5r92z1xtV\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 10 Feb 2026 16:44:14 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 77DEC83CEA;\n\tTue, 10 Feb 2026 06:43:58 +0100 (CET)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 1A7DA83C67; Tue, 10 Feb 2026 06:43:56 +0100 (CET)",
            "from mx.nabladev.com (mx.nabladev.com [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 88FF983C67\n for <u-boot@lists.denx.de>; Tue, 10 Feb 2026 06:43:53 +0100 (CET)",
            "from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon)\n with ESMTPSA id C931811043C; Tue, 10 Feb 2026 06:43:52 +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 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; c=relaxed/relaxed; d=nabladev.com;\n s=dkim; t=1770702233; h=from:subject:date:message-id:to:cc:mime-version:\n content-transfer-encoding:in-reply-to:references;\n bh=dct7PD2Pc2Tgv2vHoGc58gLe6Xehwsvt9cpc/mgKJIw=;\n b=WftvDEUBJrpGTBrB2IYJEFLMCcOvCUcDrqpVuQHgt/T1tnki0cg9nnJMeSFaZFD0uGbFCq\n l/iGWc5qs5el2K3afKcqAN6ivKkZpjJxV8Jz21+WbIRINVvvIwCtiDPzniVhgAZQJhdytQ\n 3QaBzlrTqfd+i/sWZzB9qYCEFc12R+HdkFDhta0dHkNiGg18+tHtytg19m5vkjJHzVkir6\n D7VbA0ymqm5ZLRHKqpCYhLtD/Shd0m+/kh7u/1UoTAGYpSHyqPcwiALOkC/hSNhzgX9P4K\n 6d5U56v//TvS5LbxPJmnYL5gk6ZdpZQB8auqqGXTPnjKcmhPqgOwPsbcDOAOog==",
        "From": "Heiko Schocher <hs@nabladev.com>",
        "To": "U-Boot Mailing List <u-boot@lists.denx.de>",
        "Cc": "Adrian Freihofer <adrian.freihofer@siemens.com>,\n Heiko Schocher <hs@nabladev.com>,\n Mattijs Korpershoek <mkorpershoek@kernel.org>,\n Fabio Estevam <festevam@gmail.com>,\n Marek Vasut <marek.vasut+renesas@mailbox.org>,\n \"NXP i.MX U-Boot Team\" <uboot-imx@nxp.com>,\n Stefano Babic <sbabic@nabladev.com>, Tom Rini <trini@konsulko.com>",
        "Subject": "[PATCH v2 2/2] arch: imx8qxp: Override weak fb_mmc_get_boot_offset\n function",
        "Date": "Tue, 10 Feb 2026 06:43:45 +0100",
        "Message-Id": "<20260210054345.126651-3-hs@nabladev.com>",
        "X-Mailer": "git-send-email 2.20.1",
        "In-Reply-To": "<20260210054345.126651-1-hs@nabladev.com>",
        "References": "<20260210054345.126651-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": "From: Adrian Freihofer <adrian.freihofer@siemens.com>\n\nAdd IMX8QXP SoCs specific implementation of fb_mmc_get_boot_offset()\n\nThis is needed as bootloader offset is different dependent on SoC\nrevision!\n\nFor revision B0 the bootloader starts at 32k offset. On offset\n0x0 the bootloaders environment is stored.\n\nOn C0 revisions of the SoC bootloader image starts at offset 0x0\n\nSigned-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>\nSigned-off-by: Heiko Schocher <hs@nabladev.com>\nReviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org>\n\n---\n\nChanges in v2:\n- added Reviewed-by from Mattijs\n\n arch/arm/mach-imx/imx8/cpu.c | 21 +++++++++++++++++++++\n 1 file changed, 21 insertions(+)",
    "diff": "diff --git a/arch/arm/mach-imx/imx8/cpu.c b/arch/arm/mach-imx/imx8/cpu.c\nindex 0e112af661c..27c431881b0 100644\n--- a/arch/arm/mach-imx/imx8/cpu.c\n+++ b/arch/arm/mach-imx/imx8/cpu.c\n@@ -899,3 +899,24 @@ bool m4_parts_booted(void)\n \n \treturn false;\n }\n+\n+#ifdef CONFIG_IMX8QXP\n+#include <blk.h>\n+\n+/*\n+ * On B0 revision SoCs the bootloader is on 32k offset\n+ * and at offset 0x0 is the U-Boot Environment stored\n+ *\n+ * So we cannot flash bootloader images to offset 0x0\n+ *\n+ * On C0 revisions of the SoC bootloader image starts\n+ * at offset 0x0 ...\n+ */\n+lbaint_t fb_mmc_get_boot_offset(void)\n+{\n+\tif ((get_cpu_rev() & 0xF) == CHIP_REV_C)\n+\t\treturn 0;\n+\n+\treturn 0x40;\n+}\n+#endif\n",
    "prefixes": [
        "v2",
        "2/2"
    ]
}