From mboxrd@z Thu Jan 1 00:00:00 1970 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 5A27DC433F5 for ; Wed, 17 Nov 2021 07:45:10 +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 2A0836187F for ; Wed, 17 Nov 2021 07:45:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2A0836187F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de 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 DDFAA8351A; Wed, 17 Nov 2021 08:45:05 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1637135106; bh=tSI4GNv7a4JJd7X9qUwmclmYwfO3MFuunb3LaCA+png=; h=To:cc:From:Subject:In-reply-to:References:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Nb3LxpNdr3NsrDc1bFgZVvdxH/+Hq+oKRawgwWhL/n5/HPfRN3u7+8i4gpUZG9wDe UrZdq+yIylhjk6Ketfxl3NlwaCbc+ecR77ftgYn/tZ15bHHc7ahAwPhdDq5PRPZLjP Sds69vTzYjkxKCw8oOrp25+1xPyCbmDMmzuVQODrMKwNPhHcEPticd0SZiVwNG4wrM eBxp/dxNUKKTo50SM7U/fivHnCxNsU/JjjzISIhhbg9n95COT3KahJky8vbZ1nIL1k 7LLaDY7MpHzzaV2YjVq52iXEBFVoJAK/PyIRajPcuSHk8Vc7ph/SJXBMLENCIpt1eH YLJ3jgpcsOQxQ== Received: from janitor.denx.de (unknown [62.91.23.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: noc@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id A734383305 for ; Wed, 17 Nov 2021 08:45:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1637135102; bh=tSI4GNv7a4JJd7X9qUwmclmYwfO3MFuunb3LaCA+png=; h=To:cc:From:Subject:In-reply-to:References:Date:From; b=BI3P1vOuP2QM0MB4fexzhbh0jYxSpcJZA7U4gP2OI1OBLXGGdOpaXuFbs1eujRZtC hkpVwQUTtQuy2dgrIzVeNo+GHaEx+FBQtZq7ZRRZfEQ/C+8SlWCPNpt+uXxOAIi9+0 N2PtE0fiaKNC8xj27wvPym6dD0eu8wdz0KNkuPn5lgAjeme8gp0Zeu+ZYe0Nlx5GpJ lm8DBXAHnj8k33EJsDTC02KLUK2YntuNsC1X9KRKaqa4U0KGaq8YZzwcUsiuTXymVw FIuxgpHL5lH1oSroUIttbjDxjiY9AeWhWvQUroyqZilibO9nAiVcqgHiT1NMEwJdb8 ep04NoL1etwqw== Received: by janitor.denx.de (Postfix, from userid 108) id A64B2A02FC; Wed, 17 Nov 2021 08:45:01 +0100 (CET) Received: from gemini.denx.de (gemini.denx.de [10.4.0.2]) by janitor.denx.de (Postfix) with ESMTPS id DEBEFA005A; Wed, 17 Nov 2021 08:44:52 +0100 (CET) Received: from gemini.denx.de (localhost [IPv6:::1]) by gemini.denx.de (Postfix) with ESMTP id 875611E0CB7; Wed, 17 Nov 2021 08:44:52 +0100 (CET) To: Tom Rini cc: Ramon Fried , Michael Walle , Michal Simek , Grygorii Strashko , git , Joe Hershberger , Simon Glass , U-Boot Mailing List From: Wolfgang Denk Subject: Re: [PATCH] net: uclass: Save ethernet MAC address when generated MIME-Version: 1.0 Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: 8bit In-reply-to: <20211116184146.GF24579@bill-the-cat> References: <1d5f84ab-e481-8779-4b5b-adfbc4ff3bf3@ti.com> <07b688d8-f05f-d11e-5e3e-e5454e1c9af0@xilinx.com> <5fd1c7f2-d37d-3008-06d3-877958aa9757@xilinx.com> <610dcc295f1f9f8eb609269ac5a2e0d8@walle.cc> <97cbcf456d2fa9572ef0d0c9adc7380b@walle.cc> <20211116141855.GD24579@bill-the-cat> <1739526.1637074605@gemini.denx.de> <20211116184146.GF24579@bill-the-cat> Comments: In-reply-to Tom Rini message dated "Tue, 16 Nov 2021 13:41:46 -0500." Date: Wed, 17 Nov 2021 08:44:52 +0100 Message-ID: <1797888.1637135092@gemini.denx.de> 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 Dear Tom, In message <20211116184146.GF24579@bill-the-cat> you wrote: > > Because honestly, the more I read this, the more I think > https://patchwork.ozlabs.org/project/uboot/patch/20211115121152.3470910-1-m= > ichael@walle.cc/ > is essentially the right direction. There's no reason for 'net list' to > be using the environment here when ->enetaddr is what's being used by > the stack. The use case of "I want to make my locally administered MAC > persist because my USB ethernet adapter lacks a MAC address" is solved > via the environment already. If the MAC address is not placed in the environment, then how can a user query the currently used MAC address? All documentation says basically: run "printenv ethaddr". Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de "Plan to throw one away. You will anyway." - Fred Brooks, "The Mythical Man Month"