get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2109403,
    "url": "http://patchwork.ozlabs.org/api/patches/2109403/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20250710151556.3834583-1-tharvey@gateworks.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": "<20250710151556.3834583-1-tharvey@gateworks.com>",
    "list_archive_url": null,
    "date": "2025-07-10T15:15:56",
    "name": "net: lwip: simplify net_lwip_eth_start",
    "commit_ref": "bd4de55951202089e627db7d520adb4ba33d47fd",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "0774c568a02b4f022c91f2c840dbbbce07fc3a45",
    "submitter": {
        "id": 41730,
        "url": "http://patchwork.ozlabs.org/api/people/41730/?format=api",
        "name": "Tim Harvey",
        "email": "tharvey@gateworks.com"
    },
    "delegate": {
        "id": 157425,
        "url": "http://patchwork.ozlabs.org/api/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/20250710151556.3834583-1-tharvey@gateworks.com/mbox/",
    "series": [
        {
            "id": 464617,
            "url": "http://patchwork.ozlabs.org/api/series/464617/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=464617",
            "date": "2025-07-10T15:15:56",
            "name": "net: lwip: simplify net_lwip_eth_start",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/464617/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2109403/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2109403/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 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=fail (p=none dis=none) header.from=gateworks.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n dmarc=fail (p=none dis=none) header.from=gateworks.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=tharvey@gateworks.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 4bdJMH6Slqz1xqg\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 11 Jul 2025 01:15:55 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 960B48362C;\n\tThu, 10 Jul 2025 17:16:03 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 8F3DC83653; Thu, 10 Jul 2025 17:16:02 +0200 (CEST)",
            "from finn.localdomain (finn.gateworks.com [108.161.129.64])\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 C438583285\n for <u-boot@lists.denx.de>; Thu, 10 Jul 2025 17:15:59 +0200 (CEST)",
            "from syn-068-189-091-139.biz.spectrum.com ([68.189.91.139]\n helo=tharvey.pdc.gateworks.com)\n by finn.localdomain with esmtp (Exim 4.95)\n (envelope-from <tharvey@gateworks.com>) id 1uZt09-008eQn-UH;\n Thu, 10 Jul 2025 15:15:58 +0000"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-1.9 required=5.0 tests=BAYES_00,\n RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,\n RCVD_IN_VALIDITY_RPBL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2",
        "From": "Tim Harvey <tharvey@gateworks.com>",
        "To": "u-boot@lists.denx.de",
        "Cc": "Jerome Forissier <jerome.forissier@linaro.org>,\n Joe Hershberger <joe.hershberger@ni.com>,\n Ramon Fried <rfried.dev@gmail.com>, Tom Rini <trini@konsulko.com>,\n Tim Harvey <tharvey@gateworks.com>",
        "Subject": "[PATCH] net: lwip: simplify net_lwip_eth_start",
        "Date": "Thu, 10 Jul 2025 08:15:56 -0700",
        "Message-Id": "<20250710151556.3834583-1-tharvey@gateworks.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "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": "For NET_LWIP eth_is_on_demand_init() is always 1 so remove the check and\nsimplify the code.\n\nSuggested-by: Jerome Forissier <jerome.forissier@linaro.org>\nSigned-off-by: Tim Harvey <tharvey@gateworks.com>\n---\n net/lwip/net-lwip.c | 14 +++++---------\n 1 file changed, 5 insertions(+), 9 deletions(-)",
    "diff": "diff --git a/net/lwip/net-lwip.c b/net/lwip/net-lwip.c\nindex d53faa39ba11..660ceb10cbe2 100644\n--- a/net/lwip/net-lwip.c\n+++ b/net/lwip/net-lwip.c\n@@ -184,16 +184,12 @@ int net_lwip_eth_start(void)\n \tint ret;\n \n \tnet_init();\n-\tif (eth_is_on_demand_init()) {\n+\teth_halt();\n+\teth_set_current();\n+\tret = eth_init();\n+\tif (ret < 0) {\n \t\teth_halt();\n-\t\teth_set_current();\n-\t\tret = eth_init();\n-\t\tif (ret < 0) {\n-\t\t\teth_halt();\n-\t\t\treturn ret;\n-\t\t}\n-\t} else {\n-\t\teth_init_state_only();\n+\t\treturn ret;\n \t}\n \n \treturn 0;\n",
    "prefixes": []
}