Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 070A7C433F5 for ; Mon, 15 Nov 2021 15:20:19 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5F37861AAA for ; Mon, 15 Nov 2021 15:20:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5F37861AAA Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 21FF082A77; Mon, 15 Nov 2021 16:20:16 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="RoMMin1L"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9B73382A77; Mon, 15 Nov 2021 16:20:14 +0100 (CET) Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) (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 123008373B for ; Mon, 15 Nov 2021 16:20:01 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x729.google.com with SMTP id 193so17139270qkh.10 for ; Mon, 15 Nov 2021 07:20:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=SyQTmYGwQSnr5OmHHKcVHeYkkXrIBPWLFv+sQp3PLXI=; b=RoMMin1LsHqUxtNZ3yM+aFbV5FFyb801Rf3Sw6I6p87astV2+6YfON5uyijLmRgUtk mGhlxIpmQM9qjF0VGI1V4o3Rnl+Lm31Js/qAOV/vMMDwllBJpvTVYreiCcBlJF7JsNoy TWiVFxAqUmZGl61IU8kcwxKg3cXy2d9+A/0wU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=SyQTmYGwQSnr5OmHHKcVHeYkkXrIBPWLFv+sQp3PLXI=; b=cmA17xj6kLp/pgdsWCpBDUB6UxMCbq/89YQXHYuzfeI1Rk4GysY9+KdQk2ONxAFdfR aZxQrJxp975/c84qLDIs3c0uDTNQS1sQYN9+BecrK3pANZMXQdRFgCMvjaIuJEIwk2Lx 0FsaHdwQaeySjqKSsJViW8VS+ICvwaiYrKQcqi/DAIb2tcdCfzFxQiBfarfFtU5ZiK9C 5b2mISSE0nO0aOaIrpTvE7oS/29XPANRO4ZN2kB/n/uLTpVcmAvNgvKiqBWLTCxdufMI YFDLcg6TIoPw5sO9pVkLfThizm+9RwNlEOPut9TVvoA75687WA3dBN5ou0EUPAkKw8An kUAQ== X-Gm-Message-State: AOAM530pzgdo1Cg0Jiha/SvbZPaBzzEjas/XXvcS6RvenjZpN1Kjc308 rjpAaH5VkoucbBauNDtBTFKoNw== X-Google-Smtp-Source: ABdhPJxrv+p0ib98j0oXhHki3uB8jblWI7m52Rtu3YAGJwQsAkqn4qq99IyEEvULVlmhPXMkGmMJjg== X-Received: by 2002:a37:9e86:: with SMTP id h128mr30461871qke.486.1636989599947; Mon, 15 Nov 2021 07:19:59 -0800 (PST) Received: from bill-the-cat (2603-6081-7b01-cbda-24a1-dfd8-1438-caaa.res6.spectrum.com. [2603:6081:7b01:cbda:24a1:dfd8:1438:caaa]) by smtp.gmail.com with ESMTPSA id 16sm5359865qty.2.2021.11.15.07.19.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Nov 2021 07:19:58 -0800 (PST) Date: Mon, 15 Nov 2021 10:19:56 -0500 From: Tom Rini To: Michael Walle Cc: Wolfgang Denk , Marek Vasut , u-boot@lists.denx.de, Grygorii Strashko , Michal Simek , fried.dev@gmail.com, joe.hershberger@ni.com, sjg@chromium.org Subject: Re: [PATCH RFC] cmd: fix net list command Message-ID: <20211115151956.GN24579@bill-the-cat> References: <20211115121152.3470910-1-michael@walle.cc> <32aff992-c84b-7b71-b412-7594c2a7d20e@denx.de> <257391f0-9d69-62cc-2353-8f4fc0751d7d@denx.de> <1646331.1636986670@gemini.denx.de> <20211115151220.GM24579@bill-the-cat> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qzbOCEqPmNwyiGcQ" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.35 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.2 at phobos.denx.de X-Virus-Status: Clean --qzbOCEqPmNwyiGcQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 15, 2021 at 04:15:31PM +0100, Michael Walle wrote: > Am 2021-11-15 16:12, schrieb Tom Rini: > > On Mon, Nov 15, 2021 at 03:52:51PM +0100, Michael Walle wrote: > > > Hi, > > >=20 > > > Am 2021-11-15 15:31, schrieb Wolfgang Denk: > > > > In message you wrote: > > > > > > > > > > And again you're masking the error and possible fixes by linux it= self. > > > > > Seems like this isn't an argument. > > > > > > > > Respecting the explicit will of the user (i. e using what he > > > > configured in U-Boot and passed to the kernel) is not an error. it > > > > is intended and documented behaviour. > > >=20 > > > What is the will of the user in this case? It is the will of the > > > developer to make the board more robust. That is, if there is > > > for whatever reason no valid ethernet address found, then there > > > will be one generated. That is the sole purpose of the config > > > option in question (or maybe I used it completely wrong). So from > > > a user perspective, this shouldn't even happen and I doubt he is > > > even aware that there will be a random one. (I saw Tom's mail and > > > I'm not talking about the USB adapters where this might be the > > > normal case.) I might come from a different perspective, but > > > users ususally don't look at the serial output. Instead they > > > look at the kernel log. And there will be not the slightest > > > error, because u-boot will happily fix the missing MAC address > > > with a random one. > >=20 > > So one thing I don't know is what's the situation on (I assume) the > > kontron boards? I see both NXP reference platforms for layerscape and > > imx8 enabling NET_RANDOM_ETHADDR but I don't know what the expectation > > is for on-device MAC addresses, and I recall other threads talking > > about how complex the layerscape physical layout can get. Thanks! >=20 > Kontron boards are fine, well at least if I disable the random mac > address config option, usually there is a serial console. Well, what I mean is, where are the real MAC addresses? What is the rationale for setting NET_RANDOM_ETHADDR? > board/buffalo/lsxl.c needs it definetly (and was actually the first > user). OK, there's a big handy comment there to read, thanks. >=20 > -michael --=20 Tom --qzbOCEqPmNwyiGcQ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmGSepwACgkQFHw5/5Y0 tywXoQwAhT9ceHHbl1dCgaqQC2TiT+F8OP9Jgo4oFMXU/YOyiiUtPeOptnPNVaZc gPNmBzBU30ppNkO72xPsdLNZUD3xGKeT4KbEyYs+oVXQnNWmblNByvRCThBkF2rc ZAfp+akAhMEVs1U5wJpmBn6nFaNR+xX11qh5wiUMhjBSOM/9CpinjGGADSQUQpxa oki0Naew87/G6AJqfO0E+JwptruZ8fFLZTG+3CQkN9deZafckNsBWU396d7nvX1I LnKGQMYx8HVbpZSrzuJigoJyRxW2OXL+zYJliDJw75zFRZFAY0/gqpAEkm0IxG1N RAacCEVufirPpckbgzJc4S+lYn3Jck2y7xQCiqZgHnt9YpSTZeXdsjmlUrlknZZq Oy//t3GhtOnOT6GAOwELAdfq8VcV5fVgPqOIC9t2B+++aXY4zbL1dpxaizuk6+LX a92Uz5TwMCoEDkU/6lrZVHy8illkA/m6JxYGcZxlAmhzocrFYzTBUSb7+RYN2Thk vqLFvLv+ =Ug+v -----END PGP SIGNATURE----- --qzbOCEqPmNwyiGcQ--