Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2140268/?format=api
{ "id": 2140268, "url": "http://patchwork.ozlabs.org/api/patches/2140268/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20250922093629.2547703-3-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": "<20250922093629.2547703-3-jerome.forissier@linaro.org>", "list_archive_url": null, "date": "2025-09-22T09:35:42", "name": "[2/3] net: lwip: dhcp: make NTP servers usable by the sntp command", "commit_ref": "57a623230eaadc836c548a1e7effae34ec11eb0f", "pull_url": null, "state": "accepted", "archived": false, "hash": "ad5a3d6a617ffd57286848f483115356ebdbd31b", "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/20250922093629.2547703-3-jerome.forissier@linaro.org/mbox/", "series": [ { "id": 474649, "url": "http://patchwork.ozlabs.org/api/series/474649/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=474649", "date": "2025-09-22T09:35:40", "name": "lwIP fixes (SNTP with DHCP)", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/474649/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2140268/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2140268/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=YaE2maWm;\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=\"YaE2maWm\";\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 4cVdLJ3TpCz1yCs\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 22 Sep 2025 19:37:12 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 8FE508340C;\n\tMon, 22 Sep 2025 11:36:55 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id 88784833F9; Mon, 22 Sep 2025 11:36:54 +0200 (CEST)", "from mail-wr1-x435.google.com (mail-wr1-x435.google.com\n [IPv6:2a00:1450:4864:20::435])\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 E79E3833E8\n for <u-boot@lists.denx.de>; Mon, 22 Sep 2025 11:36:51 +0200 (CEST)", "by mail-wr1-x435.google.com with SMTP id\n ffacd0b85a97d-3ee64bc6b85so2787256f8f.3\n for <u-boot@lists.denx.de>; Mon, 22 Sep 2025 02:36:51 -0700 (PDT)", "from builder.. ([2a01:e0a:3cb:7bb0:fe8b:a136:2e69:4bd1])\n by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-3ee07407d0asm19177840f8f.17.2025.09.22.02.36.50\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 22 Sep 2025 02:36:50 -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=1758533811; x=1759138611; 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=hGu4/bXKM7lUcNH48gpVT0m2A1N8DJGofrMOFUm9XqM=;\n b=YaE2maWmIXw61hfPQOl+AwIrOZ1s46DWjusNWtPnTAq/9UMli/SFFhNVyw4W/+581C\n YNJfivkOiqqC1+xL6ocW+Xdic17f7p8v3ghwv6pAJG/PbnCZvFgkMIrmMiOLp2bUmhXl\n mXSSINefK0Tlbf1ASTpRXaPU1Q83/R/WyD3QKixlxgDQ/ZinP9RdspdUrqx6sQ7R1Yv4\n E1+/Nf99RtSW2h+H0weKTBf/IGH8rMbn/Z1vXSlhx0ppYzYwAnVbErNaqacn9A533OzJ\n +FfKw3VBVEX4cpDwj/v+c0MZ6iG95/VSKtgQQJcDCqQ6QYcdEySAlmRfu2mUOZsbLHYX\n C2Jw==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1758533811; x=1759138611;\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=hGu4/bXKM7lUcNH48gpVT0m2A1N8DJGofrMOFUm9XqM=;\n b=QkCSmfTkuKtckyFv/Z43cURev3HG4DJMUqZR5dqAFD++yWICLq/gSFkGuZb1e+Xw4i\n DnSUpC1VUmLkdooJnWrhWAZhxNAH+lNEAVDtmRzei1oA37me1I7O14PoaJzDvjvqsrI7\n 85BAJ4j594+1dyv2ZBLpzmub2JFtws5hz01w00OqsMQ62zDgKZ8FwhAuQzY/YVE4UpF1\n Aw27PbfIPHmi2xSO8LGv2VJ0KjzTkyBvVs8DVX2BlIIoQAIUaS3QwhY6OYTWMy9JfDCe\n I+e49CNwkZy7kjQmzwnu+bbGScN3NKn9NUdQKPwa6egBqIXWMk8rXxwmZp8Zqa0bWZhm\n fNVg==", "X-Gm-Message-State": "AOJu0Yya/pma8m91H9nociw3LVwuBTLnBpsMsWMC9TwaL+wufndpISDO\n a7aop4nZJAuLNToVkr0cSTKifjwVm2WcR6u4XciXm5sBo2njn3J8GNbBStAdzmz6ZqozOuoGxiO\n Kc7DVH2U=", "X-Gm-Gg": "ASbGncsnKBxpaRf3cguNXlwleypQOdd9oBDlqYAPwgck9FHlu+WlLySBV5+2NRVWVxE\n JtosvoPM2MZz2ZjOk6xhZYfRnYQrp2oxEAyM5Lx2RsOHxmNNtAk+BlRKlJE+bKepLeRRfM58qkR\n SjX7sRHU43Sy/aL3uk1bIkAbWj9Mqu93/ytc5MY9is9op5Yttkz/Fi+C8vM6laX5oHX0Fwtodvs\n s0HMFVLUwpEndRQYCY3MEf64zrin2trBQozpoOiqxgG+OBu4Uxj9LYcYPq2zoyXPRLVKb0mwPAM\n VsF+oImnP19e+BvAHqffSbdF5NYFwVqCP2UgQKzcKmwaEGRiuDXlEDKtKFio5eagDLhKSsLbp4R\n HDrvRGt6PKwwtvB1OyvG/Z9DT7JOeXwJWIvFvLbs1PA==", "X-Google-Smtp-Source": "\n AGHT+IGZW7ocznOByua2DXjKz3LeFqfuXti8W51l46/loTqsiR5FkkURX/BYdsFp/zTlSc785IcsIQ==", "X-Received": "by 2002:a05:6000:2f83:b0:3d3:1ad0:e8b7 with SMTP id\n ffacd0b85a97d-3ee7d6864e9mr9693019f8f.12.1758533811162;\n Mon, 22 Sep 2025 02:36:51 -0700 (PDT)", "From": "Jerome Forissier <jerome.forissier@linaro.org>", "To": "U-Boot mailing list <u-boot@lists.denx.de>", "Cc": "Michal Simek <michal.simek@amd.com>,\n Jerome Forissier <jerome.forissier@linaro.org>,\n Heinrich Schuchardt <xypron.glpk@gmx.de>,\n Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n Joe Hershberger <joe.hershberger@ni.com>,\n Martyn Welch <martyn.welch@collabora.com>,\n Ramon Fried <rfried.dev@gmail.com>, Simon Glass <sjg@chromium.org>,\n Tim Harvey <tharvey@gateworks.com>, Tom Rini <trini@konsulko.com>", "Subject": "[PATCH 2/3] net: lwip: dhcp: make NTP servers usable by the sntp\n command", "Date": "Mon, 22 Sep 2025 11:35:42 +0200", "Message-ID": "<20250922093629.2547703-3-jerome.forissier@linaro.org>", "X-Mailer": "git-send-email 2.48.1", "In-Reply-To": "<20250922093629.2547703-1-jerome.forissier@linaro.org>", "References": "<20250922093629.2547703-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": "When both CMD_DHCP and CMD_SNTP are enabled, one would expect the NTP\nservers received by DHCP to be used by the sntp command by default. Fix\ndhcp_loop() so that it is indeed the case.\n\nSigned-off-by: Jerome Forissier <jerome.forissier@linaro.org>\nReported-by: Michal Simek <michal.simek@amd.com>\n---\n\n net/lwip/dhcp.c | 8 ++++++++\n 1 file changed, 8 insertions(+)", "diff": "diff --git a/net/lwip/dhcp.c b/net/lwip/dhcp.c\nindex 4c9cb0ecaa07..cbdfea3ba82a 100644\n--- a/net/lwip/dhcp.c\n+++ b/net/lwip/dhcp.c\n@@ -8,6 +8,7 @@\n #include <dm/device.h>\n #include <linux/delay.h>\n #include <linux/errno.h>\n+#include <lwip/apps/sntp.h>\n #include <lwip/dhcp.h>\n #include <lwip/dns.h>\n #include <lwip/timeouts.h>\n@@ -48,6 +49,13 @@ static int dhcp_loop(struct udevice *udev)\n \tif (!netif)\n \t\treturn CMD_RET_FAILURE;\n \n+\t/*\n+\t * Request the DHCP stack to parse and store the NTP servers for\n+\t * eventual use by the SNTP command\n+\t */\n+\tif (CONFIG_IS_ENABLED(CMD_SNTP))\n+\t\tsntp_servermode_dhcp(1);\n+\n \tstart = get_timer(0);\n \n \tif (dhcp_start(netif))\n", "prefixes": [ "2/3" ] }