From patchwork Fri Aug 2 16:26:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 816264 Delivered-To: patch@linaro.org Received: by 2002:adf:e00d:0:b0:367:895a:4699 with SMTP id s13csp352367wrh; Fri, 2 Aug 2024 09:30:02 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUzBdE2tD0UrCNh6pr0cEyY+X0oZDM6tNlNCdx1RU0WNY5hiwyEvm+vCB1KHuhi3gpJDuvYwcoUvcHVwvsXOoHV X-Google-Smtp-Source: AGHT+IE1GTwWSB2zsD/CvHLkmZS7qKy2VH4xQQDxrPNBidrFnB6kVdeHY1oeO3l1mYfC+uz/METP X-Received: by 2002:a05:6402:440d:b0:57d:5442:a709 with SMTP id 4fb4d7f45d1cf-5b778dc53f8mr5110952a12.0.1722616202583; Fri, 02 Aug 2024 09:30:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1722616202; cv=none; d=google.com; s=arc-20160816; b=MCJ/KucDc0kBB4cE8uRJrpDkrkhVeHbShwpNZG4w4CxzypMT8Df8VuuKjoEilNsVId 1v1p7W8t4GOvV5rlHfXE96y5eo8x7MyONkMcOlrvm5jHilityszuOaX9a3dh84hbcgMe sHn+BRlBUQSxJmgve3o+jE1I4VgVnsIwt7C6HM5Zu1HbUweoW3sF3U0NHGrQ07TmV3BE sj8ockqQ1MU5NjMbH4M/dTmVBjiO0hMyx77SkzyEI1floIaXsHOZwHCy6TKQM3sE7jZy 0TmIKZ68J66RO1JBtRR8cTfkE6ndbAjlIuDfini18hHUIRCoDvFBURGjxl8QFC3dRADS MYrQ== 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=WQUv/HNCuMRxpKPtwooUf712RMBAKG5Q2VDiw47vrAI=; fh=B9a4yICW9Tgzslqe+zIFfd/s6OBWnj2vbgZwG4RiXQs=; b=zqIGocGw+FP6+SYTt3AtNu4+rMudEHqpQfo/Xc0tMP0THSSTfyqfUbqFcQ5/nRqd7q qjYa+OqWKhWldgnCrfmYHRd9ClZTOch2TjNULc66jp4uOR1Zim09OWpHAwRdigKdvdHA aF2C1LhDWRG30tcA4MNPntjYfo8AJ2QQyaj0tmJNvVHRmEUyAjdeLubVHh9VjwsCixH3 ei4+JDkH+cxSNChOICjP2y0syGtqXVDon82MrH6mOs2RCkxlLI7vzmELxIpZaw5Y+LYA y8qDpULTzQ0oKqWQtCnmJmT4YSSQ8E1GTpJp44pFVTTi6sR5LIW1n6eLpBMZ40BujphV ay0Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gMKeZ8dw; 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 4fb4d7f45d1cf-5b83960f0f6si1226553a12.63.2024.08.02.09.30.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Aug 2024 09:30:02 -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=gMKeZ8dw; 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 4963B88C11; Fri, 2 Aug 2024 18:28:35 +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="gMKeZ8dw"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B067B88BDA; Fri, 2 Aug 2024 18:28:33 +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-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) (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 C71C188B63 for ; Fri, 2 Aug 2024 18:28:31 +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-x32c.google.com with SMTP id 5b1f17b1804b1-42122ac2f38so20522205e9.1 for ; Fri, 02 Aug 2024 09:28:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1722616111; x=1723220911; 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=WQUv/HNCuMRxpKPtwooUf712RMBAKG5Q2VDiw47vrAI=; b=gMKeZ8dwKTtKRB/nsx388SsTRyrGKr2B53HENrhGK/t/fTTXqn9IrriJ0SZGI2L3w8 bvKNzVTpVPnM3pcRLLk46vBxnT/AUhbNBlUQCVrgfhMktIflmcImwthkjupjs9pRxw9c CUTuwXSftS+igrYlSiQwfXXlgdO51sKBexG/JOH0+oxze3MjvZBVRu9fJV/JgXYPTDmi +yUfcezWwy70NvDhELzhwv4E6vQuet2nLaDdGYdY9KpLAd1plg5axZcCXjppEfMDHoaY qRz6frDGD1tOJM0QuEHwErr5tuoUUHNr6gK313UY95bATepuTeMIb/cW7L2FCz6OhTJs Sppw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722616111; x=1723220911; 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=WQUv/HNCuMRxpKPtwooUf712RMBAKG5Q2VDiw47vrAI=; b=dEBbmQI0LlfAP9TtPw5hoNR8DQwRqZjsrBl73A/uNG/hjwvXuyN6KsBNGT+XFWg2mo awP+0rC4WL8JRT4zS3TSBawXdK4T3iBK29AjF6NxHxeAFYqmeiJJMaUGuu5H69ok75hY mUbaFkm2gIuZOPSzL9y0DSI3NVUdmcu7XysG/cqVo7z8HJTxPePCh7dGj4yDbdd2zgrA cjIntCZOlkC5/NBD+Y/dc3Dy5D2JDYPQ2TEBuwrjRTIR7G+mEE08BxeXcHIve6+DLf8G U0qszKcAmqveAZ7GWOkekjKdxrsUubmlDiBtFz8NepmDFKQ60fBHT9dQdoCMolGeP89C 035A== X-Gm-Message-State: AOJu0Yxf9Kndzf2L2COfZCRUpqs761qqW0rYg2FCkSNfI/URQEL5h/nS elD/dfeHJCgdFM9o1YXhnJNbsv4BP3r7XqfTtmZUo7E5Rp8cXC+tgKrcfRJun/U3EQMiYBiVeo/ ag9FKBtnD X-Received: by 2002:a05:600c:1d10:b0:424:895c:b84b with SMTP id 5b1f17b1804b1-428e6985de7mr35886765e9.4.1722616110609; Fri, 02 Aug 2024 09:28:30 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:4fc9:a3ab:c134:cdf4]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36bbd01b5c4sm2297783f8f.42.2024.08.02.09.28.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Aug 2024 09:28:30 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Javier Tia , Raymond Mao , Maxim Uvarov , Tim Harvey , Jerome Forissier , Tom Rini , Marek Vasut , Simon Glass Subject: [PATCH v7 15/20] cmd: bdinfo: enable -e when CONFIG_CMD_NET_LWIP=y Date: Fri, 2 Aug 2024 18:26:42 +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 437ac4e8630..472e5c42b08 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)); bdinfo_print_num_l("new_fdt", (ulong)map_to_sysmem(gd->new_fdt)); @@ -197,7 +197,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;