Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp1133341img; Thu, 28 Feb 2019 13:39:58 -0800 (PST) X-Google-Smtp-Source: APXvYqzY2Ymcmub3ndQGl2quK9bYIU51n4r1B9mzEEqu6PHcR2L7r24WcrpnOepTheEVB9hnUi48 X-Received: by 2002:a63:ff1f:: with SMTP id k31mr1297473pgi.422.1551389998098; Thu, 28 Feb 2019 13:39:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551389998; cv=none; d=google.com; s=arc-20160816; b=YDR1wKtC0Qn3VgmY8ymFh7Qt1AN84PAwrScFXEw/qxghNbbdRnv+pUP9uE4PKXFFJo 4zdPtBS4Wf4oft9F60mD+AgCjdNXFB0dS83xV6+RZMt9bTpom3OHAFTBBDpDU/WpYJFL 97Oe5iS25a3JYI0gRhMKAgcuYqgPxXvGCgWcbiiVMtut3DrW5SIfl7Wam+FxghYSGF47 0wrdEK6FsIut1v64Gw9wogWFbMctf0KPIuav1qnFnXLPEIZiq29UB8ZBRbg56nu9iiSg NBnpOvC5p8r94/fv7iEPPvgBQwyjPQoaK0TSgQ636p77jam8yFBlj+H0kfskgGbTgdX3 iWzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=D7+oHdxtX/J3zJch+rlZZb1sqBBGQPD2mQHQIkvTwQI=; b=hLxwCBK5g0pHv3qDM8Ms/OpT7S8LfWmVRy239PJG/yafKah1K6M/Tr2hQeeUOPytad ygBJnqQnxNB9PfzA4AfTm7jFovuh4iwVtTpVzEIi6yq88Sy4uXjklf3e3f5wtYlo6UwW Jzl1yH60ammOHHhJtBm+5dANb9LnesD41K8Tw5I/pfo1U94aLpmAW4hUMktj2K8Fvuki 3MOMaM4yvawoLbQbtUE5GDkEVeAXZEmUtqLIdkmcNCa7It6CKy+2pQ/GCXjzS72lQdrk 8vagTt6fYhJRZF2vHHqi9RUU8qUAz20OwcqkVKG2LC/j7a/xSQjNOSPTT9jqXlgBqf32 injA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y18si18410552pgf.247.2019.02.28.13.39.42; Thu, 28 Feb 2019 13:39:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732165AbfB1TrJ (ORCPT + 99 others); Thu, 28 Feb 2019 14:47:09 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:37780 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726087AbfB1TrI (ORCPT ); Thu, 28 Feb 2019 14:47:08 -0500 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::bf5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 0C14E14BF64D0; Thu, 28 Feb 2019 11:47:08 -0800 (PST) Date: Thu, 28 Feb 2019 11:47:07 -0800 (PST) Message-Id: <20190228.114707.11382969767373748.davem@davemloft.net> To: andrew@lunn.ch Cc: f.suligoi@asem.it, jeffrey.t.kirsher@intel.com, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] net: e1000e: add MAC address kernel cmd line parameter From: David Miller In-Reply-To: <20190228192958.GA24085@lunn.ch> References: <20190228163729.GB17912@lunn.ch> <6a7a37813e71420b929c769dd1e77664@asem.it> <20190228192958.GA24085@lunn.ch> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 28 Feb 2019 11:47:08 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andrew Lunn Date: Thu, 28 Feb 2019 20:29:58 +0100 > On Thu, Feb 28, 2019 at 05:13:27PM +0000, Flavio Suligoi wrote: >> > > Hi Andrew, >> > > >> > > we produce a lot of boards and we have to change the MAC address, >> > > from u-boot, for every board. So I must save in the u-boot >> > > environment (SPI NOR flash) the MAC address for every board. >> > >> > Hi Flavio >> > >> > u-boot should be able to write the MAC address in the correct part of >> > device tree. Boards have been doing this a long time. >> > >> > Module parameters are considered bad. You should only do it if you >> > have no other option. Here you do have another options, so it is going >> > to be a hard sell getting David to access your patch. >> > >> > You will have more success by adding a call to >> > eth_platform_get_mac_address() to the e1000e driver. >> >> You have right, and thanks for your suggestions, >> but with a kernel parameter I can use the same method >> for any board where the NVM is missed, independently of any architecture >> (with or without the device tree presence - ARM or x86 or others). > > Hi Flavio > > Well, lets wait for David to say what he thinks about the module > parameter. I already rejected this, no way... Drivers that already have the unacceptable module parameter are no an argument for spreading this mistake further.