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 842A3C433F5 for ; Thu, 18 Nov 2021 08:30:00 +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 30975600D4 for ; Thu, 18 Nov 2021 08:29:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 30975600D4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=walle.cc 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 0B29782F5D; Thu, 18 Nov 2021 09:29:57 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=walle.cc 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; secure) header.d=walle.cc header.i=@walle.cc header.b="mTUJZr5W"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3788B82F65; Thu, 18 Nov 2021 09:29:55 +0100 (CET) Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C231282F50 for ; Thu, 18 Nov 2021 09:29:51 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=walle.cc Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=michael@walle.cc Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 5244B22175; Thu, 18 Nov 2021 09:29:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1637224191; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YJHH51exqS70hYvi+UveVDGeDJUwqWv+LG4caKR+jP8=; b=mTUJZr5WozdIw+upB4g0e5HizG5u2KYGnTPhPd9krh+KZyhGyYk02nu81JS6jIRiE2cKp7 UWzeR56x+vjEuvJBod3a3oXXI1K6g5SZl1gyUtf+kjxCACUTs+jDy/LVX7yk0HaH/2lxaL j5b8YFFloZ4UmZWKEAwLWtQEHnp4cEo= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 18 Nov 2021 09:29:51 +0100 From: Michael Walle To: Tom Rini Cc: u-boot@lists.denx.de Subject: Re: [PATCH 10/10] board: sl28: disable random MAC address generation In-Reply-To: <20211117182435.GC24579@bill-the-cat> References: <20211115224551.3549744-1-michael@walle.cc> <20211115224551.3549744-11-michael@walle.cc> <20211116211442.GS24579@bill-the-cat> <20211117182435.GC24579@bill-the-cat> User-Agent: Roundcube Webmail/1.4.11 Message-ID: X-Sender: michael@walle.cc 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 Am 2021-11-17 19:24, schrieb Tom Rini: > On Wed, Nov 17, 2021 at 05:45:58PM +0100, Michael Walle wrote: >> Am 2021-11-16 22:14, schrieb Tom Rini: >> > On Mon, Nov 15, 2021 at 11:45:51PM +0100, Michael Walle wrote: >> > >> > > Nowadays, u-boot (when CONFIG_NET_RANDOM_ETHADDR is set) will set >> > > enetaddr to a random value if not set and then pass the randomly >> > > generated MAC address to linux. >> > >> > First, for clarity I'm not nak'ing this. I kind of would like to see a >> > slight reword as I think some things aren't 100% correct, even if the >> > "save random MAC to ethaddr environment variable" change goes in. For >> > example, it's quite long standing that (dev|pdata)->enetaddr populates >> > "mac-address" and "local-mac-address" and it seems in some older cases >> > we only set the "local-mac-address" property. >> >> fdt_fixup_memory() in common/fdt_support.c does a env_get(mac). > > Whoops, yes, I misrecalled this. That means you are fine with this commit message? -michael