From patchwork Mon Jun 17 15:33:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 1948669 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=g8ahekNA; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4W2v944KHsz20Ws for ; Tue, 18 Jun 2024 01:35:36 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 085BA883FE; Mon, 17 Jun 2024 17:33:52 +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="g8ahekNA"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 78D8F883B6; Mon, 17 Jun 2024 17:33:51 +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,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) (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 98670883E5 for ; Mon, 17 Jun 2024 17:33:49 +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-x333.google.com with SMTP id 5b1f17b1804b1-42249a4f9e4so31532565e9.2 for ; Mon, 17 Jun 2024 08:33:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718638429; x=1719243229; 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=wXawjeJXnycfE5xaoF+bqShNCUQW4mVfN0nOrxfadqA=; b=g8ahekNANrogvGnPQY+0abqitDmhowkI3VTyn75szdcQUJ7wk1Odgq2Y2RVQhYVGk9 pKeghmL0bjHGo5yFb487rl4jNxBNSb2E8jkUOArDzIt+G+CPBQOqnQKX92+UuFNdPNeb P4W1R13Lzsgp8fcVXIgoczpL6wfsNrlwhwwCSFWfwh+y/0apEPPzZCtvjMf/SpAVziqb tcDJdHAN7yKoXmOOha0zJ4rQGkEakFIaVYGT6XmjhuGHAD729s+tmzLhlwmwS4ghL0OQ KJd8HFl6eS+Kz9l7sJ3YQQwYHw/H2OUxkQj4HLqmJn3Y5019JZ9zNrnKRlERFORI5xqm jjKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718638429; x=1719243229; 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=wXawjeJXnycfE5xaoF+bqShNCUQW4mVfN0nOrxfadqA=; b=uW1igr2FqXiL6YtS4CKJJPbiY25xwujtnk6W+yR2vmvxG51jH0ldApOAZinzdE9jd/ Muf6uNfWQyWZhMaIEOdTCYB3hsZTlUgRbu80bCSsI2HlUl+ghToN/4EoJTzNeX7lzxgo Z2q6MGX+o2xvByxuvd51pA1sc5zYeadeGVxl9UjSDm//xte+1X4UEIXoUcjcpqzgxArX pNi/49VDAwN3/BKikO3V33Umm8nCw+SzpjYg8oHfXgNI2NOVOva2QBviKImQFCntoPsO eICf1gj9qguSq9L88ShYQ0wJgngMsUS1gKVY1XCzKYiybOKqr27ITP/lqSjl9WJNlyR1 5fLw== X-Gm-Message-State: AOJu0Yyridn7PDYiCWFsa5AC+y/NA+YCjlv6vqZne4Uu7a/BtzujoXZ8 MdLStAD0jr2Wvkq6KX/HEbWzzYaatL9BY2JKQ0JXzxHD197h8wUgBOCFzDGZxMbGIV8yCSIXk/4 dO3A= X-Google-Smtp-Source: AGHT+IEpZQS6tSvHKG6LZBLxCy89Yle2SbwfVzoRJ1+8rV5nO9ru2b9BQTvQpLuzVh5s3L/CkOyK8A== X-Received: by 2002:a05:600c:4f49:b0:423:57f:fc7a with SMTP id 5b1f17b1804b1-423057ffe60mr105865755e9.32.1718638429050; Mon, 17 Jun 2024 08:33:49 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:6e75:be8f:56ae:2b5e]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-422f602f620sm161350895e9.19.2024.06.17.08.33.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jun 2024 08:33:48 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Javier Tia , Maxim Uvarov , Jerome Forissier , Tom Rini , Simon Glass , Bin Meng , Marek Vasut , Nikhil M Jain Subject: [PATCH v4 11/14] cmd: bdinfo: enable -e when CONFIG_CMD_NET_LWIP=y Date: Mon, 17 Jun 2024 17:33:03 +0200 Message-Id: <5efac81d0108b65fbb286cb8739a8ed6c14978b3.1718638104.git.jerome.forissier@linaro.org> 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 79106caeec2..690fb894bf6 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -152,7 +152,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)); bdinfo_print_num_l("new_fdt", (ulong)map_to_sysmem(gd->new_fdt)); @@ -198,7 +198,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;