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: 804886 Delivered-To: patch@linaro.org Received: by 2002:adf:fb90:0:b0:360:93e7:1765 with SMTP id a16csp611887wrr; Mon, 17 Jun 2024 08:35:34 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUAiOVDoAyhgxIkjN6EVU3RiHk+zH8A20GSDCSNn1qDvdYBFEW9E8Ms/6t9dABo7xNqJ9dsXU/xQVGU4iPfgbH9 X-Google-Smtp-Source: AGHT+IFoaMFqn/1dP/NvcLxYz7duVwCSxl9mNXPKei3fJukvgV23cGESIDZrOOo4snKmPHHWJjrr X-Received: by 2002:a17:906:7fc6:b0:a6e:fdc8:ae45 with SMTP id a640c23a62f3a-a6f60d170ccmr810828966b.1.1718638534360; Mon, 17 Jun 2024 08:35:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1718638534; cv=none; d=google.com; s=arc-20160816; b=kZLWY5E5AT/TA87OgOus4eDDOUjpU9Fsvwqw0DuuHn9wZpVgkxhkRoRQPH6OoTg9UO x8FmPktAc+aj9TgCwl7UQ1XC5Y768aOB96HtLmbwnlO8wE4Ba1VUwI6cLebMf11bKOJF TF9Q5W0gpUUerOCXgtzsPOOim0kF3lHtkZH4NIAYRJ/1IOXOLNO7wW5UkypnAVUOt+tH VfkukQ3mDNwCXoc3TcOv9G2NPm1bCRRPKumILgVwbDlrJZkaYd38kMgfPED1r8u5IanS FnI0c66fJYnT2bTUquO6bpDx+D4ld8BRKN4fd+zhDtrTuDc7pPMecO3gZoiBKxj77Wel wevQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=wXawjeJXnycfE5xaoF+bqShNCUQW4mVfN0nOrxfadqA=; fh=8WQpMpm1L/fodCJFfYPhjZxaHfYgyB8wvAxF0Mcvg2A=; b=TnS/MgB73aV+ADnvHqqJVn/rw0UTivM77U4hWtFuyr73bIwitrKCNPUunVijrx/rfA IJLmahGP0lcqSEuaV4wch84//ihxJllkOIS2OAH62L+2T8GZFG1mb4IsCWTOdnAH9sZg phWJA50uOxAM51SPwRPgSXe4oTbp3nrUVWuLPn2Uk7o3RvuuiL181D9/2zfneMdWiJjh QBGaLoTsK8mD6CvmLLDbe8yMrDr0fdUtCbI6PmjMZA4VB2fKUpsq0BnS0tPr1aPybwdD kE+q/CFRrjAcvWdacy+upwPGWFt4yIhJein792telHYBjXqtsCa2JtYiVa+kNnyEE54q 7sSA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g8ahekNA; 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 Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56e8210fsi454385966b.1042.2024.06.17.08.35.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jun 2024 08:35:34 -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=g8ahekNA; 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 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-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;