get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2230145,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2230145/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260429-sys_rx_eth_buffer-no-net-v1-3-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-3-396ef37ae93c@cherry.de>",
    "list_archive_url": null,
    "date": "2026-04-29T10:35:03",
    "name": "[RFC,next,3/5] net: tsec: make tsec_private a private structure",
    "commit_ref": null,
    "pull_url": null,
    "state": "rfc",
    "archived": false,
    "hash": "42d1e4641e4b689b074a8609c0cdd6d66121aa8c",
    "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-3-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/2230145/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2230145/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=jYEo8aef;\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=\"jYEo8aef\";\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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g5DGy1JK9z1xqf\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 20:35:54 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 5D82684852;\n\tWed, 29 Apr 2026 12:35:24 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 7234484836; Wed, 29 Apr 2026 12:35:20 +0200 (CEST)",
            "from smtp-42ab.mail.infomaniak.ch (smtp-42ab.mail.infomaniak.ch\n [IPv6:2001:1600:7:10::42ab])\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 C6E4584836\n for <u-boot@lists.denx.de>; Wed, 29 Apr 2026 12:35:16 +0200 (CEST)",
            "from smtp-4-0000.mail.infomaniak.ch (smtp-4-0000.mail.infomaniak.ch\n [10.7.10.107])\n by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4g5DGC60WFzCCs;\n Wed, 29 Apr 2026 12:35:15 +0200 (CEST)",
            "from unknown by smtp-4-0000.mail.infomaniak.ch (Postfix) with ESMTPA\n id 4g5DGB6L18zXtg; Wed, 29 Apr 2026 12:35:14 +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 SPF_HELO_PASS,SPF_PASS 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=1777458915;\n bh=4uywroN9PVnqErnP9mV025LuSI5epUWA0OmnBuQ81E0=;\n h=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n b=jYEo8aefdl4j1WOQhaN8WE2hAvQ+tqU47PXQuHX9L9AnYRxEzvmkbXzqWaXljsUlf\n jKpUmq/ZOKoR7oroQd3wRAUJgvptoGQhqU0kM9Bpme8iyJlf6x0BQ/H1dDY+NmtxJ3\n 6Imk1TmWwqcpN1qocefU7iJlrScK7yHx9JriQZTzbfphcATH5ctpTlz/+OAVOl2uDs\n 5mPdY71qma23LOLSstFLrDv3ftFk6awoBl8i0LtzztPMRLrv1BZ65lB6t727TNIUO4\n wZPUyeF5ADhr6UdUaNBkbm4v4HDn2MKDdzjhoFaHNziB0ct+JEbB8K39/8HOPM2RAH\n s4SJZCwCAOjEw==",
        "From": "Quentin Schulz <foss+uboot@0leil.net>",
        "Date": "Wed, 29 Apr 2026 12:35:03 +0200",
        "Subject": "[PATCH RFC next 3/5] net: tsec: make tsec_private a private structure",
        "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-3-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\nMove the definition of tsec_private within the only file that makes use\nof it.\n\nThis adds the benefit of include/tsec.h not referencing PKTBUFSRX (which\nis set to CONFIG_SYS_RX_ETH_BUFFER, which we're trying to move to be\nunder CONFIG_NET dependency) anymore. Considering drivers/net/tsec.c is\nonly built if CONFIG_NET=y, this is fine.\n\nSigned-off-by: Quentin Schulz <quentin.schulz@cherry.de>\n---\n drivers/net/tsec.c | 17 +++++++++++++++++\n include/tsec.h     | 17 -----------------\n 2 files changed, 17 insertions(+), 17 deletions(-)",
    "diff": "diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c\nindex bd4ebdd745a..d03368b9408 100644\n--- a/drivers/net/tsec.c\n+++ b/drivers/net/tsec.c\n@@ -37,6 +37,23 @@\n \t\t)\n #endif /* CFG_TSEC_TBICR_SETTINGS */\n \n+struct tsec_private {\n+\tstruct txbd8 __iomem txbd[TX_BUF_CNT];\n+\tstruct rxbd8 __iomem rxbd[PKTBUFSRX];\n+\tstruct tsec __iomem *regs;\n+\tstruct tsec_mii_mng __iomem *phyregs_sgmii;\n+\tstruct phy_device *phydev;\n+\tphy_interface_t interface;\n+\tstruct mii_dev *bus;\n+\tuint phyaddr;\n+\tuint tbiaddr;\n+\tchar mii_devname[16];\n+\tu32 flags;\n+\tuint rx_idx;\t/* index of the current RX buffer */\n+\tuint tx_idx;\t/* index of the current TX buffer */\n+\tstruct udevice *dev;\n+};\n+\n /* Configure the TBI for SGMII operation */\n static void tsec_configure_serdes(struct tsec_private *priv)\n {\ndiff --git a/include/tsec.h b/include/tsec.h\nindex 153337837a9..f5ced38f3fc 100644\n--- a/include/tsec.h\n+++ b/include/tsec.h\n@@ -350,23 +350,6 @@ struct tsec_data {\n \tu32 mdio_regs_off;\n };\n \n-struct tsec_private {\n-\tstruct txbd8 __iomem txbd[TX_BUF_CNT];\n-\tstruct rxbd8 __iomem rxbd[PKTBUFSRX];\n-\tstruct tsec __iomem *regs;\n-\tstruct tsec_mii_mng __iomem *phyregs_sgmii;\n-\tstruct phy_device *phydev;\n-\tphy_interface_t interface;\n-\tstruct mii_dev *bus;\n-\tuint phyaddr;\n-\tuint tbiaddr;\n-\tchar mii_devname[16];\n-\tu32 flags;\n-\tuint rx_idx;\t/* index of the current RX buffer */\n-\tuint tx_idx;\t/* index of the current TX buffer */\n-\tstruct udevice *dev;\n-};\n-\n struct tsec_info_struct {\n \tstruct tsec __iomem *regs;\n \tstruct tsec_mii_mng __iomem *miiregs_sgmii;\n",
    "prefixes": [
        "RFC",
        "next",
        "3/5"
    ]
}