From patchwork Wed May 22 16:00:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 798163 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:92:b0:351:d90a:5487 with SMTP id m18csp542590wrx; Wed, 22 May 2024 09:05:52 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCU5eSV2BqnEBViUAAKRvTusMjPd5Sjqk5E/ousm+nFscA3aZXKFBVcJQhdUPttIgwLfBSNvprT5H/VKA804dcIE X-Google-Smtp-Source: AGHT+IGEWzhWWPKdOBsbK6EKM1Ksa+ocscyRNAc/YGzb9vD6RsgsK6QdWQTOiZuCT82BCNb+T35F X-Received: by 2002:a17:906:c54:b0:a59:be8a:bd6f with SMTP id a640c23a62f3a-a62281c9e13mr150332166b.61.1716393952444; Wed, 22 May 2024 09:05:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1716393952; cv=none; d=google.com; s=arc-20160816; b=egswebU5xF2BkTS+ZmzxMPrwHMymM6aRq8sOpaEL/wUvh/nQbS00yJgnGvVaNO+a8q ooXkkbtPLZO0hrtGc2SvTvsis2auNlj/aM/qqQsJhxYQ2EXicX13ztnnayryHhBFO/H0 6AJ7S/7KLbjKdwlx4J98yOLaKI6dGDGOzkZ4TrZDT/hrtLKpZzlI9KrtwNigboH39id4 vssL8xE4pUea/RXHd840I1nFBRqiF1nSM/gb63rGqnw4dyQf77offcfIvhVa7AOsxPpl JONmA0oYeRH0HXsn0ieaImcRp+fQx5oiIu/beJUTim5MoCe7BFv6w+MQN6MSBFOAJc1a E6iQ== 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=5h6/fCfcOJ/8ATVai0ueSc7L1Pl5c+WCtO8uMfxSYH4=; fh=8WQpMpm1L/fodCJFfYPhjZxaHfYgyB8wvAxF0Mcvg2A=; b=Q98KdGMRTHQtS0blUYGpTl7SFBwU2MUk5aThYZy1LQmQHAdCjqeR6/jhOvT4WWtY4k tJuLOHRAhdw9cUiUAKXnhcOpHU4fDgG+srtpvCt3lT8Sk10JEWfxs+Ke9nAmS9GaCMRx y77zjKqlssERDRJUJUYqelZ/vZbOpXGPWUXFrHgLu3xve3g8/WfFBRUNtSM4xaMhnRh2 PDbuVz8Wwa8dPdYy8pvpe5U30vbyrCHRpCX3F9R6xvi2qO7Gy8U7TK70WUoOHwhX2Mcy ff39MpLW8qjjWpmQz3Gj6nv1NokbdnR65TBICfXUy1drtW7g8F/0FFoUoXYAQqCvE4C2 XLHQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LeloNrb0; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17ba3a43si1643147266b.636.2024.05.22.09.05.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 09:05:52 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LeloNrb0; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 932BA88881; Wed, 22 May 2024 18:04:47 +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="LeloNrb0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9D76388892; Wed, 22 May 2024 18:04:45 +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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) (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 B58E588867 for ; Wed, 22 May 2024 18:04:43 +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-ej1-x62b.google.com with SMTP id a640c23a62f3a-a61b70394c0so410043666b.1 for ; Wed, 22 May 2024 09:04:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716393883; x=1716998683; 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=5h6/fCfcOJ/8ATVai0ueSc7L1Pl5c+WCtO8uMfxSYH4=; b=LeloNrb0nToMvs5W3VXQi26lVaXo+/fUJWOWfu9rim+82gktLJ6kzzX1ICAz0VP0EN i+1HF6Hzd58hxlny7JXm1LGDgQVEqluhssAn30jJNFT5JWXbtodORN/yW3NSua6zkd8c jVjp0u/34qwV3FbxNsosB48xa/+XSAHM/yPiNe8pJOiII7NH2wUmWt/NlvU25eDSC8Zt Ut6YM7GKyKdI62g9a/llP7p3Y5llTNm7oe8nvtJTb6L0k0AfefAcEkqhWmFtZx8xgRh5 Xx7m8n7n3PbC8lfK2f6I9F4fT7u5TvheAV2rPKY+dsMqoX0emy6yHdCUs6CfFW0GZuRP cDvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716393883; x=1716998683; 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=5h6/fCfcOJ/8ATVai0ueSc7L1Pl5c+WCtO8uMfxSYH4=; b=gKMXe4gW2o59p0B9sT1lQuN1Pxez8lyx+qjlxLqI60yR06Blrfj3M3YqbGK5jDUJO3 aZ3xAoxruvEHcqEA0vAxiE9TUSdrGHlUH0Mcy/XCPI2cTPHutmfu8B+oBkHwH/noH8TV mGpDVTxfS6Kvqq2GoOb4pz+iD6Udk83dN83d9jJ/Vut0/Gi+AJ/BnHFWA6+HMUVxw0LI OdYjvmAL11DrCdLSOc9xCMGdlNEq1GIqrkB7qSqNyg8rg+VifbCrZQIh2hfxdlsmuNwt CXyvnGthfw7qWD2cjEJyJUPnNXkLlMS9QeoQswfzNJZXi/0enCHWVGesQHXXFOYgwxk3 y9Ow== X-Gm-Message-State: AOJu0Yx84zpV9wBrvvrHIDH35CBxHJKj7MX/pq6I8aOm92mkjd3jNzm+ PKwWHfFFcC/w+Lbvy1dJ85/jF/Rmy8dvEnDX5rDXcRjl1yYBkjo+5AlzgfEVBNTavz3Y7XBUSu6 2jaqLencm X-Received: by 2002:a17:906:6415:b0:a5a:84c8:770b with SMTP id a640c23a62f3a-a622812f80fmr145968066b.36.1716393883061; Wed, 22 May 2024 09:04:43 -0700 (PDT) Received: from jerome-XPS-13-9310.. ([2a01:e0a:3cb:7bb0:d6a3:fbd6:c45b:172c]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6209f64ba8sm367670266b.210.2024.05.22.09.04.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 09:04:42 -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 11/15] cmd: bdinfo: enable -e when CONFIG_CMD_NET_LWIP=y Date: Wed, 22 May 2024 18:00:11 +0200 Message-Id: X-Mailer: git-send-email 2.34.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 79106caeec..690fb894bf 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;