get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2218872,
    "url": "http://patchwork.ozlabs.org/api/patches/2218872/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260401191617.20141-2-marex@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": "<20260401191617.20141-2-marex@nabladev.com>",
    "list_archive_url": null,
    "date": "2026-04-01T19:15:54",
    "name": "[2/4] arm64: imx8mp: Deduplicate DRAM size tables on DH i.MX8MP DHCOM SoM",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "337ce6aeffc964c75cfb8e0f91cfccdf7e050328",
    "submitter": {
        "id": 91452,
        "url": "http://patchwork.ozlabs.org/api/people/91452/?format=api",
        "name": "Marek Vasut",
        "email": "marex@nabladev.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260401191617.20141-2-marex@nabladev.com/mbox/",
    "series": [
        {
            "id": 498410,
            "url": "http://patchwork.ozlabs.org/api/series/498410/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=498410",
            "date": "2026-04-01T19:15:54",
            "name": "[1/4] arm64: imx8mp: Fold inline ECC into spl.c on DH i.MX8MP DHCOM SoM",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498410/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2218872/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2218872/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=JxV88rfI;\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=\"JxV88rfI\";\n\tdkim-atps=neutral",
            "phobos.denx.de; dmarc=pass (p=reject dis=none)\n header.from=nabladev.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=marex@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 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fmLgD6Vrrz1yGH\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 02 Apr 2026 10:24:56 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 1BC21839DF;\n\tThu,  2 Apr 2026 01:24:53 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id C7ECB83D8A; Wed,  1 Apr 2026 21:16:38 +0200 (CEST)",
            "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 DCAA483CE3\n for <u-boot@lists.denx.de>; Wed,  1 Apr 2026 21:16:36 +0200 (CEST)",
            "from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon)\n with ESMTPSA id 1DD7A112C70; Wed,  1 Apr 2026 21:16:36 +0200 (CEST)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-0.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=no autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=nabladev.com;\n s=dkim; t=1775070996; h=from:subject:date:message-id:to:cc:mime-version:\n content-transfer-encoding:in-reply-to:references;\n bh=oyFogTgRtUvaDDgj6DDgHY1Ox65CuvP8Dusr5r375o0=;\n b=JxV88rfI+k3ZSxxCVptVjXFLaB2RiZ0G1s9FgNU/ESGdFgnNNghYa4xBLU5jFwoJqWxbAO\n q0tS/uTGSFPd39vR5aLP95qMqp9fPyQXGKNCeSw1tZm/mYv5iesvYAoh4ss+YJvm+1Imro\n CsWUWpLNsdV+nM6T06OUgiOxZQTbSgAqe5trPUPOmN9r0SZKqt9OwYzMrixrE99n/zQk4a\n F7hVrxVLmISi+SvZOVHFj0+5LQLx5dXWrbibVWt1tcBsrbrL5CikjX4sWT5AgGdl48jnLn\n P5hiKzGywCaAOF0NsjKmM0ubmBjtylRGBmDN8lpdpDjA/Hivjrq4IrdmnPCQ6A==",
        "From": "Marek Vasut <marex@nabladev.com>",
        "To": "u-boot@lists.denx.de",
        "Cc": "Marek Vasut <marex@nabladev.com>, Fabio Estevam <festevam@gmail.com>,\n Peng Fan <peng.fan@nxp.com>, Tom Rini <trini@konsulko.com>,\n u-boot@dh-electronics.com",
        "Subject": "[PATCH 2/4] arm64: imx8mp: Deduplicate DRAM size tables on DH i.MX8MP\n DHCOM SoM",
        "Date": "Wed,  1 Apr 2026 21:15:54 +0200",
        "Message-ID": "<20260401191617.20141-2-marex@nabladev.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260401191617.20141-1-marex@nabladev.com>",
        "References": "<20260401191617.20141-1-marex@nabladev.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Last-TLS-Session-Version": "TLSv1.3",
        "X-Mailman-Approved-At": "Thu, 02 Apr 2026 01:24:51 +0200",
        "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": "The DRAM size tables are shared by SPL and U-Boot proper, deduplicate\nthose tables into lpddr4_timing.h . No functional change.\n\nSigned-off-by: Marek Vasut <marex@nabladev.com>\n---\nCc: Fabio Estevam <festevam@gmail.com>\nCc: Peng Fan <peng.fan@nxp.com>\nCc: Tom Rini <trini@konsulko.com>\nCc: u-boot@dh-electronics.com\nCc: u-boot@lists.denx.de\n---\n board/dhelectronics/dh_imx8mp/imx8mp_dhcom_pdk2.c | 3 +--\n board/dhelectronics/dh_imx8mp/lpddr4_timing.h     | 4 ++++\n board/dhelectronics/dh_imx8mp/spl.c               | 3 +--\n 3 files changed, 6 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/board/dhelectronics/dh_imx8mp/imx8mp_dhcom_pdk2.c b/board/dhelectronics/dh_imx8mp/imx8mp_dhcom_pdk2.c\nindex 3fe98d36f5b..3424be10936 100644\n--- a/board/dhelectronics/dh_imx8mp/imx8mp_dhcom_pdk2.c\n+++ b/board/dhelectronics/dh_imx8mp/imx8mp_dhcom_pdk2.c\n@@ -28,12 +28,11 @@ int mach_cpu_init(void)\n \n int board_phys_sdram_size(phys_size_t *size)\n {\n-\tconst u16 memsz[] = { 512, 1024, 1536, 2048, 3072, 4096, 6144, 8192 };\n \tconst u8 ecc = readl(DDRC_ECCCFG0(0)) & DDRC_ECCCFG0_ECC_MODE_MASK;\n \tu8 memcfg = dh_get_memcfg();\n \n \t/* 896 kiB, i.e. 1 MiB without 12.5% reserved for in-band ECC */\n-\t*size = (u64)memsz[memcfg] * (SZ_1M - (ecc ? (SZ_1M / 8) : 0));\n+\t*size = (u64)dh_imx8mp_dhcom_dram_size[memcfg] * (SZ_1M - (ecc ? (SZ_1M / 8) : 0));\n \n \treturn 0;\n }\ndiff --git a/board/dhelectronics/dh_imx8mp/lpddr4_timing.h b/board/dhelectronics/dh_imx8mp/lpddr4_timing.h\nindex f8078051f2f..0f9f47bbe11 100644\n--- a/board/dhelectronics/dh_imx8mp/lpddr4_timing.h\n+++ b/board/dhelectronics/dh_imx8mp/lpddr4_timing.h\n@@ -6,6 +6,10 @@\n #ifndef __LPDDR4_TIMING_H__\n #define __LPDDR4_TIMING_H__\n \n+static const u16 dh_imx8mp_dhcom_dram_size[] = {\n+\t512, 1024, 1536, 2048, 3072, 4096, 6144, 8192\n+};\n+\n extern struct dram_timing_info dh_imx8mp_dhcom_dram_timing_16g_x32;\n extern struct dram_timing_info dh_imx8mp_dhcom_dram_timing_32g_x32;\n \ndiff --git a/board/dhelectronics/dh_imx8mp/spl.c b/board/dhelectronics/dh_imx8mp/spl.c\nindex d8a928639b2..ece790da66a 100644\n--- a/board/dhelectronics/dh_imx8mp/spl.c\n+++ b/board/dhelectronics/dh_imx8mp/spl.c\n@@ -117,11 +117,10 @@ static struct dram_timing_info *dram_timing_info[8] = {\n \n static void spl_dram_init(void)\n {\n-\tconst u16 size[] = { 512, 1024, 1536, 2048, 3072, 4096, 6144, 8192 };\n \tu8 memcfg = dh_get_memcfg();\n \tint i;\n \n-\tprintf(\"DDR:   %d MiB [0x%x]\\n\", size[memcfg], memcfg);\n+\tprintf(\"DDR:   %d MiB [0x%x]\\n\", dh_imx8mp_dhcom_dram_size[memcfg], memcfg);\n \n \tif (!dram_timing_info[memcfg]) {\n \t\tprintf(\"Unsupported DRAM strapping, trying lowest supported. MEMCFG=0x%x\\n\",\n",
    "prefixes": [
        "2/4"
    ]
}