get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2230142,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2230142/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260429-sys_rx_eth_buffer-no-net-v1-2-396ef37ae93c@cherry.de/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20260429-sys_rx_eth_buffer-no-net-v1-2-396ef37ae93c@cherry.de>",
    "list_archive_url": null,
    "date": "2026-04-29T10:35:02",
    "name": "[RFC,next,2/5] arm: ls102xa: use platform data to check Ethernet interface is not SGMII",
    "commit_ref": null,
    "pull_url": null,
    "state": "rfc",
    "archived": false,
    "hash": "de9bf0d8c6018b060fabb19c7d170fb823d0851a",
    "submitter": {
        "id": 84425,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/84425/?format=api",
        "name": "Quentin Schulz",
        "email": "foss+uboot@0leil.net"
    },
    "delegate": {
        "id": 157425,
        "url": "http://patchwork.ozlabs.org/api/1.2/users/157425/?format=api",
        "username": "jforissier",
        "first_name": "Jerome",
        "last_name": "Forissier",
        "email": "jerome.forissier@linaro.org"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260429-sys_rx_eth_buffer-no-net-v1-2-396ef37ae93c@cherry.de/mbox/",
    "series": [
        {
            "id": 502037,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/502037/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=502037",
            "date": "2026-04-29T10:35:00",
            "name": "net: guard SYS_RX_ETH_BUFFER with NET + required changes (ls1028a!) to make this happen",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/502037/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2230142/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2230142/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=0leil.net header.i=@0leil.net header.a=rsa-sha256\n header.s=20231125 header.b=dYJEHuk0;\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=0leil.net",
            "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=0leil.net header.i=@0leil.net header.b=\"dYJEHuk0\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=reject dis=none) header.from=0leil.net",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=foss+uboot@0leil.net"
        ],
        "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 4g5DGT04HKz1xqf\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 20:35:28 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id A20E2847C6;\n\tWed, 29 Apr 2026 12:35:19 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 5A0DA8484A; Wed, 29 Apr 2026 12:35:18 +0200 (CEST)",
            "from smtp-190f.mail.infomaniak.ch (smtp-190f.mail.infomaniak.ch\n [185.125.25.15])\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 59CF3847C6\n for <u-boot@lists.denx.de>; Wed, 29 Apr 2026 12:35:15 +0200 (CEST)",
            "from smtp-4-0000.mail.infomaniak.ch (unknown\n [IPv6:2001:1600:7:10::a6b])\n by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4g5DGC0BtjzBHs;\n Wed, 29 Apr 2026 12:35:15 +0200 (CEST)",
            "from unknown by smtp-4-0000.mail.infomaniak.ch (Postfix) with ESMTPA\n id 4g5DG96bVFzZtM; Wed, 29 Apr 2026 12:35:13 +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=-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_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS\n autolearn=ham autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=0leil.net;\n s=20231125; t=1777458914;\n bh=tdqg9RYUcS8EK6pkixIm0Ndn7iqd2B5uTJufaQoAhL0=;\n h=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n b=dYJEHuk03pdRKkQrvWPpFe7UwrZc9dG4uVIQHpv8dY30352t+Xz5hurOlycsyPySZ\n vzAsmnnIhHGlSY7mroy2hILWIpKEvcy77iSi9nfxaAuw+9bP+vxvJ8zbU34EV+hFAg\n pSiYKJ7n+f3+iGYxTJyoTPTIfoFwpfS83qpFL9juJPe+K9gMpsCzWIf87uRa+0ZFV/\n KESMyfxn4NXAnFopbhmREiPC+HAS3g1t6fkCBi4hE6zKDPSa9vOvOSjxZvzLiGmnRk\n OYoXo/W+yE8oCR7aOktyCb2i5Dpp2X18A9f7PjPeu0X9z5nCMa0oHO+aDusXcPnVEM\n daiLpA9VSETww==",
        "From": "Quentin Schulz <foss+uboot@0leil.net>",
        "Date": "Wed, 29 Apr 2026 12:35:02 +0200",
        "Subject": "[PATCH RFC next 2/5] arm: ls102xa: use platform data to check\n Ethernet interface is not SGMII",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20260429-sys_rx_eth_buffer-no-net-v1-2-396ef37ae93c@cherry.de>",
        "References": "<20260429-sys_rx_eth_buffer-no-net-v1-0-396ef37ae93c@cherry.de>",
        "In-Reply-To": "<20260429-sys_rx_eth_buffer-no-net-v1-0-396ef37ae93c@cherry.de>",
        "To": "u-boot@lists.denx.de",
        "Cc": "Tang Yuantian <andy.tang@nxp.com>, Tom Rini <trini@konsulko.com>,\n  Fabio Estevam <festevam@gmail.com>, Alice Guo <alice.guo@nxp.com>,\n  Jerome Forissier <jerome.forissier@arm.com>,\n  Peter Robinson <pbrobinson@gmail.com>, Simon Glass <sjg@chromium.org>,\n  Andrew Goodbody <andrew.goodbody@linaro.org>,\n  Benjamin Hahn <B.Hahn@phytec.de>,\n  Ilias Apalodimas <ilias.apalodimas@linaro.org>, =?utf-8?q?Alvin_=C5=A0ipra?=\n\t=?utf-8?q?ga?= <alvin@pqrs.dk>,  Quentin Schulz <quentin.schulz@cherry.de>",
        "X-Mailer": "b4 0.15-dev-47773",
        "X-Infomaniak-Routing": "alpha",
        "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: Quentin Schulz <quentin.schulz@cherry.de>\n\ntsec_private should, as its name suggests, be private. In the next\ncommit, it'll be moved from a publicly available header file to the C\nfile that requires it. ls102xa currently does not allow us to do that\nbecause it uses the structure.\n\nThe flag is actually set if the Ethernet PHY interface is SGMII in\ndrivers/net/tsec.c, so simply replace the current check with the same\ncheck made in drivers/net/tsec.c to set the flag.\n\nSigned-off-by: Quentin Schulz <quentin.schulz@cherry.de>\n---\n arch/arm/cpu/armv7/ls102xa/fdt.c | 7 +++----\n 1 file changed, 3 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/arch/arm/cpu/armv7/ls102xa/fdt.c b/arch/arm/cpu/armv7/ls102xa/fdt.c\nindex 34eea22eb92..09092ea7b7f 100644\n--- a/arch/arm/cpu/armv7/ls102xa/fdt.c\n+++ b/arch/arm/cpu/armv7/ls102xa/fdt.c\n@@ -16,7 +16,6 @@\n #ifdef CONFIG_FSL_ESDHC\n #include <fsl_esdhc.h>\n #endif\n-#include <tsec.h>\n #include <asm/arch/immap_ls102xa.h>\n #include <fsl_sec.h>\n #include <dm.h>\n@@ -26,7 +25,7 @@ DECLARE_GLOBAL_DATA_PTR;\n void ft_fixup_enet_phy_connect_type(void *fdt)\n {\n \tstruct udevice *dev;\n-\tstruct tsec_private *priv;\n+\tstruct eth_pdata *pdata;\n \tconst char *enet_path, *phy_path;\n \tchar enet[16];\n \tchar phy[16];\n@@ -45,8 +44,8 @@ void ft_fixup_enet_phy_connect_type(void *fdt)\n \t\t\tcontinue;\n \t\t}\n \n-\t\tpriv = dev_get_priv(dev);\n-\t\tif (priv->flags & TSEC_SGMII)\n+\t\tpdata = dev_get_plat(dev);\n+\t\tif (pdata->phy_interface == PHY_INTERFACE_MODE_SGMII)\n \t\t\tcontinue;\n \n \t\tenet_path = fdt_get_alias(fdt, enet);\n",
    "prefixes": [
        "RFC",
        "next",
        "2/5"
    ]
}