get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2074170,
    "url": "http://patchwork.ozlabs.org/api/patches/2074170/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20250417132718.2023555-2-jerome.forissier@linaro.org/",
    "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": "<20250417132718.2023555-2-jerome.forissier@linaro.org>",
    "list_archive_url": null,
    "date": "2025-04-17T13:26:57",
    "name": "[v5,1/4] net-lwip: change static function wget_loop() to be wget_do_request()",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "75523143b644f420827543b78e24dcdd428eb06a",
    "submitter": {
        "id": 69192,
        "url": "http://patchwork.ozlabs.org/api/people/69192/?format=api",
        "name": "Jerome Forissier",
        "email": "jerome.forissier@linaro.org"
    },
    "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/20250417132718.2023555-2-jerome.forissier@linaro.org/mbox/",
    "series": [
        {
            "id": 453241,
            "url": "http://patchwork.ozlabs.org/api/series/453241/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=453241",
            "date": "2025-04-17T13:26:56",
            "name": "NET_LWIP LMB fixes",
            "version": 5,
            "mbox": "http://patchwork.ozlabs.org/series/453241/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2074170/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2074170/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=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=x2WlhfGe;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=linaro.org",
            "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=linaro.org header.i=@linaro.org header.b=\"x2WlhfGe\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=linaro.org",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=jerome.forissier@linaro.org"
        ],
        "Received": [
            "from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature ECDSA (secp384r1))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4Zddws2k3mz1yJL\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 17 Apr 2025 23:27:25 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 277BC82CBC;\n\tThu, 17 Apr 2025 15:27:35 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id A31BE8303B; Thu, 17 Apr 2025 15:27:32 +0200 (CEST)",
            "from mail-wr1-x434.google.com (mail-wr1-x434.google.com\n [IPv6:2a00:1450:4864:20::434])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 9E28182D21\n for <u-boot@lists.denx.de>; Thu, 17 Apr 2025 15:27:30 +0200 (CEST)",
            "by mail-wr1-x434.google.com with SMTP id\n ffacd0b85a97d-39c0dfad22aso537324f8f.2\n for <u-boot@lists.denx.de>; Thu, 17 Apr 2025 06:27:30 -0700 (PDT)",
            "from builder.. ([2a01:e0a:3cb:7bb0:a07e:3f08:7eef:b036])\n by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-39eae977513sm19951605f8f.42.2025.04.17.06.27.29\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 17 Apr 2025 06:27:29 -0700 (PDT)"
        ],
        "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_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1744896450; x=1745501250; darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=D11ec35keRrC0Yq7WtMF0PySDIUXFOaHDLO+c2svLyM=;\n b=x2WlhfGeXbLdqWpinIms+o2fOHf+zp/l6mnLwo1uRGuzXlv57lYF0Ziehr01PMnWkW\n LbkUnXozZHPnlCFVSgq/lcQ7xMFkySspqvVe7VGXRqx3UN2HBY2bUU05b+mheTWbCrcn\n 0e9aEgM09Uz4IuF51n83H01JwoTJ3CevXl5ZDkPV4J/qLv/Ub7QzZVXqZXcwHJZCDt9A\n g1kj3nQ1XHrSBob7W3NWg1An0Srlsd+16KWmPFcRKVM0DEv1zUKqYVv02jVJ3dFU5+pw\n u9zStZis2YJY/T/znGIOk0Lcf3xtCEM4xudKtXt9S6FwG/Xrca+TYSfsgJlC43xcl/kt\n fHaQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1744896450; x=1745501250;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=D11ec35keRrC0Yq7WtMF0PySDIUXFOaHDLO+c2svLyM=;\n b=Pt/JyNB73zdyBw3pCbSiNd05oZuwBmTX3XwjRpNDZitDQWzUD+ZFlsmzn6O2dUT6JC\n JSWWyM4tvFtvu3XsLi3aIm0gYrnWHlGrm8l3kfiPevJIiREJSw+fIU8Vjn1QzxVf1tTV\n AnekPPC5F6fRBewnM3g5WpnVkC5QwXvEf8x5Elpz0lZZuNyjln/Px8+j5SSV3e/3+4ws\n 8jXFZzFaPSwocJpq5UhfgtXLL8PVUfSfaUxVKTrPU1IdONSCjNfdCjjwUYBJ8i27r8mM\n nY9Ezr/fDk0LJyqnBXSjV46aKn25gfo5N1Shrl93lO7bvBeysk+rQz4sz5swh+xTg68p\n BWvQ==",
        "X-Gm-Message-State": "AOJu0YzgAHEUV+nPpmvlCSyE9JqYkKtrSu5CF5XOSkzMnKqc2yCZ+TJp\n vTTZS6VIxT7HsHl46pnRiAJZhZqit/RPY5vK2kh/K9djlPrdtflQk2OL2J8vv7CanXSPwx+J0Do\n EPF8=",
        "X-Gm-Gg": "ASbGncsjROv1lJUWCOYlu2VEk8SAyNSJY2yu/94V/xz7SStZCPqa9CFrPNywgUro0ye\n Wtnxio6cBlWDDYSKHxSOFKrAujdrM8wDkfyzODRGbtsc6lSRGY8tYuFO0rPvw60YgYwEzlJm/6t\n m9V0bW5cLcgyyNVR5HdHg4A4m8pGQNeMycwvKlMS8weQDQHvKfSpur5om3TBi0FPbBjzzewygHf\n hl4mIGma8aEax7T0p/RPxUomb9RFHdjC3k/BJkiRNXN9JAb4ft88TffkfJz/drwa4/goNogTuER\n TmD0h7/d+bD1ouI+v24zx8IgPKtUTTCoWuSyb9dPS1di0fXm2w==",
        "X-Google-Smtp-Source": "\n AGHT+IHcmA05TyhFdDaG/S6Ih5JEb741ZJpGYTVaMWi8/CQcUWracuRzgHi65GuqMCaRLJovwRH4Ew==",
        "X-Received": "by 2002:a5d:64ae:0:b0:39c:11c0:eb98 with SMTP id\n ffacd0b85a97d-39ee5b9f651mr5443973f8f.39.1744896449800;\n Thu, 17 Apr 2025 06:27:29 -0700 (PDT)",
        "From": "Jerome Forissier <jerome.forissier@linaro.org>",
        "To": "U-Boot mailing list <u-boot@lists.denx.de>",
        "Cc": "Jerome Forissier <jerome.forissier@linaro.org>,\n Sughosh Ganu <sughosh.ganu@linaro.org>,\n Adriano Cordova <adrianox@gmail.com>,\n Heinrich Schuchardt <xypron.glpk@gmx.de>,\n Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n Joe Hershberger <joe.hershberger@ni.com>,\n Ramon Fried <rfried.dev@gmail.com>, Tom Rini <trini@konsulko.com>",
        "Subject": "[PATCH v5 1/4] net-lwip: change static function wget_loop() to be\n wget_do_request()",
        "Date": "Thu, 17 Apr 2025 15:26:57 +0200",
        "Message-ID": "<20250417132718.2023555-2-jerome.forissier@linaro.org>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20250417132718.2023555-1-jerome.forissier@linaro.org>",
        "References": "<20250417132718.2023555-1-jerome.forissier@linaro.org>",
        "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": "wget_do_request() currently does so little before calling the static\nfunction wget_loop() that we may as well rename wget_loop() to\nwget_do_request() and put everything in one function.\n\nSigned-off-by: Jerome Forissier <jerome.forissier@linaro.org>\nAcked-by: Sughosh Ganu <sughosh.ganu@linaro.org>\n---\n\n(no changes since v4)\n\nChanges in v4:\n- New patch\n\n net/lwip/wget.c | 20 +++++++++-----------\n 1 file changed, 9 insertions(+), 11 deletions(-)",
    "diff": "diff --git a/net/lwip/wget.c b/net/lwip/wget.c\nindex ec098148835..2b512a1bc84 100644\n--- a/net/lwip/wget.c\n+++ b/net/lwip/wget.c\n@@ -372,13 +372,14 @@ static int set_cacert(char * const saddr, char * const ssz)\n #endif\n #endif  /* CONFIG_WGET_CACERT || CONFIG_WGET_BUILTIN_CACERT */\n \n-static int wget_loop(struct udevice *udev, ulong dst_addr, char *uri)\n+int wget_do_request(ulong dst_addr, char *uri)\n {\n #if CONFIG_IS_ENABLED(WGET_HTTPS)\n \taltcp_allocator_t tls_allocator;\n #endif\n \thttpc_connection_t conn;\n \thttpc_state_t *state;\n+\tstruct udevice *udev;\n \tstruct netif *netif;\n \tstruct wget_ctx ctx;\n \tchar *path;\n@@ -394,6 +395,13 @@ static int wget_loop(struct udevice *udev, ulong dst_addr, char *uri)\n \tif (parse_url(uri, ctx.server_name, &ctx.port, &path, &is_https))\n \t\treturn CMD_RET_USAGE;\n \n+\tnet_lwip_set_current();\n+\n+\tif (!wget_info)\n+\t\twget_info = &default_wget_info;\n+\n+\tudev = eth_get_dev();\n+\n \tnetif = net_lwip_new_netif(udev);\n \tif (!netif)\n \t\treturn -1;\n@@ -469,16 +477,6 @@ static int wget_loop(struct udevice *udev, ulong dst_addr, char *uri)\n \treturn -1;\n }\n \n-int wget_do_request(ulong dst_addr, char *uri)\n-{\n-\tnet_lwip_set_current();\n-\n-\tif (!wget_info)\n-\t\twget_info = &default_wget_info;\n-\n-\treturn wget_loop(eth_get_dev(), dst_addr, uri);\n-}\n-\n int do_wget(struct cmd_tbl *cmdtp, int flag, int argc, char * const argv[])\n {\n \tchar *end;\n",
    "prefixes": [
        "v5",
        "1/4"
    ]
}