Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 03795C83F1D for ; Mon, 14 Jul 2025 01:53:04 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9009E8211F; Mon, 14 Jul 2025 03:53:02 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=freeshell.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id B31CF829E7; Mon, 14 Jul 2025 03:53:01 +0200 (CEST) Received: from freeshell.de (freeshell.de [116.202.128.144]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D572981FEE for ; Mon, 14 Jul 2025 03:52:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=freeshell.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=e@freeshell.de Received: from [192.168.2.54] (unknown [98.97.24.39]) (Authenticated sender: e) by freeshell.de (Postfix) with ESMTPSA id 2A59AB4D14DD; Mon, 14 Jul 2025 03:52:52 +0200 (CEST) Message-ID: <60f316be-a61e-4a8e-8f5a-964fd3e1b912@freeshell.de> Date: Sun, 13 Jul 2025 18:52:51 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] net: lwip: dns depend on enabled protocol config instead of command To: Jerome Forissier , Joe Hershberger , Ramon Fried , Tom Rini , Tim Harvey Cc: u-boot@lists.denx.de References: <20250712050121.88951-1-e@freeshell.de> Content-Language: en-US From: E Shattow In-Reply-To: <20250712050121.88951-1-e@freeshell.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On 7/11/25 22:01, E Shattow wrote: > Allow dns when enabled CONFIG_PROT_DNS_LWIP=y CONFIG_CMD_DNS=n > > Fixes: a383869d6b58 ("net: lwip: move dns init to common function") > Signed-off-by: E Shattow > --- > net/lwip/net-lwip.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/lwip/net-lwip.c b/net/lwip/net-lwip.c > index 3918d57d7e5..5d247c3721b 100644 > --- a/net/lwip/net-lwip.c > +++ b/net/lwip/net-lwip.c > @@ -147,7 +147,7 @@ static int get_udev_ipv4_info(struct udevice *dev, ip4_addr_t *ip, > */ > int net_lwip_dns_init(void) > { > -#if CONFIG_IS_ENABLED(CMD_DNS) > +#if CONFIG_IS_ENABLED(PROT_DNS_LWIP) > bool has_server = false; > ip_addr_t ns; > char *nsenv; > > base-commit: 6bb0679377abb01a82db1ce69b5bf1d40aa02ace Postscript: There was recently a U-Boot release and the above patch only applies to origin/master (is apparently not needed or applicable to origin/next). However on origin/next there are similar troubles where DNS is disabled unless the dns command is enabled in several network commands, which is something I can test for but am not the expert to make a patch or suggestion for. -E