From patchwork Wed Oct 9 14:49:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 833960 Delivered-To: patch@linaro.org Received: by 2002:adf:a1de:0:b0:37d:45d0:187 with SMTP id v30csp150359wrv; Wed, 9 Oct 2024 07:51:58 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVlX1DEO279zC2Rnh+NtdWy9ebkJGwqoWYoT/2isUshvUlmEI/WiQ8GVGBPp0ql7/komCTZ0g==@linaro.org X-Google-Smtp-Source: AGHT+IEaJHQDhGadfpTPneKqYQFd7AbjgdqdLsMjvfL5WddLBuoXE58BRIuRIi1Z87+m5tORaE5R X-Received: by 2002:a05:6512:33ce:b0:52e:9481:eaa1 with SMTP id 2adb3069b0e04-539c48a01e5mr1691362e87.23.1728485517869; Wed, 09 Oct 2024 07:51:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728485517; cv=none; d=google.com; s=arc-20240605; b=Y1kKl3v2UiMBT3bLmP0+Ts1VQwALVtigFbNlKDe+UMV33lTJgbrTq2uFgq5wZRJ9Fm C7kOlloX/IX0Qmis9eJzNpgX9iG7Jn5aAwZqChZ7clpkXZhiMEKIE7hwsC4eiUaaErD9 wxDrlwlQXifvyxPDS6lI0P8WEolxcpZ0h3RHtaP/9wxyuvyh2HLzzy8YpYCs0l1eK6HG p4lS+zhVwMFjD63BlLYyuLLx55M0WLnjQpX/LNq2T/LVVQYJ5dZ2zer0HCoK4Nu6LHzf Qjocl1uY7XgI6MaTjA1RKv/iQSLDFXtzdIyJgsd0wvXy2Ky9Iwo/KnDevF8YYLIxzP4s HcXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+9X+r8Q8NFzSd6Hb1M2hwnGKuGR3j9GDjlrMCZXXI9M=; fh=eGos3Vk2IgbznXK02juYbfSQo9F55l6bAOEVf1vmgKI=; b=Qo6KPuRwhAQNhGB1aHjB8uB+cb29dLI2pamtd8b0NJvoSH9pj2Vad1o+ZHgia4oSK1 TVLx5h6yLv1P4ssEyLdtkW/Crw6RLhvMaIY/3blZIFcmluFSCzxdGBxbuoShCLNb46m5 RG+WdKkkhJuy9944HlKPb083WLfBHipOHjFhxWINi2lZL3hDIBeHPuwjU78ADvq/6SMz pNcrsQYy1hRBbu7uY64z5VZBd7Nr338+B86ocelyH0+VrEmqp0a9VrKC5Du/8YTQ/9o9 6yIQjtm2HP3u3GVsxvdVpLSaxEu8UQvbZsvZVXotdGGaAVCSbK+CuS+Wclt00mChhfjz s9Iw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mZeD7lyp; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id 5b1f17b1804b1-430d748cdcbsi8760235e9.153.2024.10.09.07.51.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2024 07:51:57 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mZeD7lyp; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id ED6D288FA4; Wed, 9 Oct 2024 16:50:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="mZeD7lyp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 01E8689020; Wed, 9 Oct 2024 16:50:40 +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, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DF65D88EDD for ; Wed, 9 Oct 2024 16:50:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jerome.forissier@linaro.org Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-42e7b7bef42so61768935e9.3 for ; Wed, 09 Oct 2024 07:50:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728485437; x=1729090237; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+9X+r8Q8NFzSd6Hb1M2hwnGKuGR3j9GDjlrMCZXXI9M=; b=mZeD7lypTXrC7Os5TncfPgAakWu01vTPhkqpfsNVumGE1e5y1sbHVfHewhHavd45D0 +sDWDGI8qqKXRNB543RQp07RMwmDLZCqeNcG0hpFQ7XyLFFX1yRzfsH15WQyqR6KcCfL EkcZPJv64mbvGM+YnPsk0XclNPZ/cwotXHI9Lv3SRUsdMb/JzNQcuAeZXC2C/oVyqUpb okBJJAFWtG9rv59RITCzUzrvEjvzlH4AE8AFlSArMN4GTDJWef06pVytaeHxGHi7Sez+ s7TJ2ML+aU7jCYzEY+ogzEWzaIxgg31HVoBt/m9MLu+EfzJx6wwn0Bk9yVSDRh00cyu1 Bjig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728485437; x=1729090237; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+9X+r8Q8NFzSd6Hb1M2hwnGKuGR3j9GDjlrMCZXXI9M=; b=D/Bg755WmIj7PA2j69QTzzssFwc+obf/Yy0Ksjlmd4f543Qm2FQ6ddh4vfSW3k8QXR 6gV/qbF8bZKOd73jm6FdjvMInkQFJ/nFeX7H7xNeNpVI302FAGifr2J6+k+83Sawzf7x CQtwhaCDINM8hLkA+DZNQ4C8aCO6HWcFPA9GOz4kOaTbOU1Jhnq2qLyjjIUv3zR4L14x fNeza8uJl4OxHIfqSvDnQnrsScYfgqIpGyUO3VxUbEluj1YqZs9wvD6zLiOex6PeOq8z VZpcU/ybx99zj9E5DISn4kN9jWyXGGRe0xKBu8ga5oTBvyN6qezC0lV1+pJ9BTvGo1U3 3Slg== X-Gm-Message-State: AOJu0YyOlERiP5nNEWwcmbn8/YTWyOqpv6chnXPCpwlMF5V95IFomxHU 69OZgd2qUpdIrYWxsSu9QyxI4cQLqpypRoW0EjCKfD1QwwdOHjuoR/2BGK9INldlF4qFN65MvG2 OaH3BD5+o X-Received: by 2002:a05:6000:1fa3:b0:37d:476e:f110 with SMTP id ffacd0b85a97d-37d476ef231mr272368f8f.34.1728485437140; Wed, 09 Oct 2024 07:50:37 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:9b46:2ad8:5153:1163]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37d1691b5ddsm10700957f8f.47.2024.10.09.07.50.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2024 07:50:36 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Javier Tia , Raymond Mao , Maxim Uvarov , Tim Harvey , Anton Antonov , Jerome Forissier , Tom Rini , Simon Glass , Marek Vasut , Sughosh Ganu Subject: [PATCH v12 16/21] cmd: bdinfo: enable -e when CONFIG_CMD_NET_LWIP=y Date: Wed, 9 Oct 2024 16:49:57 +0200 Message-Id: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 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 Support "bdinfo -e" when lwIP is selected. Signed-off-by: Jerome Forissier Reviewed-by: Ilias Apalodimas Reviewed-by: Tom Rini --- cmd/bdinfo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index f6e534dd5bb..4c0e2adabc3 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -151,7 +151,7 @@ static int bdinfo_print_all(struct bd_info *bd) bdinfo_print_num_l("relocaddr", gd->relocaddr); bdinfo_print_num_l("reloc off", gd->reloc_off); printf("%-12s= %u-bit\n", "Build", (uint)sizeof(void *) * 8); - if (IS_ENABLED(CONFIG_CMD_NET)) + if (IS_ENABLED(CONFIG_CMD_NET) || IS_ENABLED(CONFIG_CMD_NET_LWIP)) print_eth(); bdinfo_print_num_l("fdt_blob", (ulong)map_to_sysmem(gd->fdt_blob)); if (IS_ENABLED(CONFIG_VIDEO)) @@ -192,7 +192,8 @@ int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) case 'a': return bdinfo_print_all(bd); case 'e': - if (!IS_ENABLED(CONFIG_CMD_NET)) + if (!IS_ENABLED(CONFIG_CMD_NET) && + !IS_ENABLED(CONFIG_CMD_NET_LWIP)) return CMD_RET_USAGE; print_eth(); return CMD_RET_SUCCESS;