Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp36952imb; Thu, 28 Feb 2019 15:12:56 -0800 (PST) X-Google-Smtp-Source: APXvYqzHy8v7JVVugoxc5oH9VlJS4tUUgvluM/iV/1TlSKrniRvtCeTAn6gwqcXndSKwCdc0MdEf X-Received: by 2002:a63:8441:: with SMTP id k62mr1575547pgd.219.1551395576897; Thu, 28 Feb 2019 15:12:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551395576; cv=none; d=google.com; s=arc-20160816; b=n+4/GGEr9kCuAjnn5FaWecWPqsKj7uCkW6X3U4ZIe3C26iChdoEm+DtRLGGvV8Z+hx XZu+VmG344X6kJbLuCR+Af6mqML4eQ3NMr87p4r92UCAyO+3I4S9k7SA09i9W0E06xmn EQMmvSd1ufWkMVZorgRCUpLSiRFHqbyjzzNC11shBp9xACyjPWHmZTxhxi01unq9v7hM h5h56yjJ5vepHu45hO77fuiJtT1hKGRBddlz1zfr5PIHzQYo2g0ElULzAa5js8TYt7Ns rnASzn8+/Fqd+F/LMhie921GUgIGgxj93VDDUGfABcJL7OE1sjYreGhM9/KvD0lVPBig MNSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=oqtDSzwd5ELH28w0GCFEmY0xjVDDqKrR18GouO17bKU=; b=V+SHuHxKNSu9d0spCX3+zVL9lbO6x/JWuUrOZAhqskq+OoxTUdGJzF1v0z6m37Ik+8 K28zbq8jWgPt9xs2e47uGFN+bsgmyn7yC9T0/QgKWuc0OWOy6z/MNWGPzobERQ19L8Ju qQHk0D0m8AliS7y/+y3DaEqYNinhVzAt2SfIDAkKsK6JLrGnxPcXfJUjDxci2Gqevvjs AyYRk5bUGdVBZo6nanDtW8UmaQS28FXBrre4M2AfLjUNjoBoPbNs249AT++UjzSWOKaU Avq3GL3F7zUvlWMgVU7n0h2/DgU8RUn0splxqzRdBURCsnlTFSi+2QMTKPp/AGt0SAUk uIaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=4bogwG09; 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 s61si15182347plb.305.2019.02.28.15.12.41; Thu, 28 Feb 2019 15:12:56 -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; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=4bogwG09; 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 S2387708AbfB1TaZ (ORCPT + 99 others); Thu, 28 Feb 2019 14:30:25 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:42224 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726271AbfB1TaX (ORCPT ); Thu, 28 Feb 2019 14:30:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=oqtDSzwd5ELH28w0GCFEmY0xjVDDqKrR18GouO17bKU=; b=4bogwG09B2oVOAyoWd5qTvuf2h vjO94hDriHMKFIHccEP1h43B/MFpxbqmuuhSGX7XkxV8kxCNqS9Dn59050For6V23oLG1+z7C4jMZ n7lJpsfRYjakW8TNnCCtuAKSdSnnPvjxNi6lgsA4o3rul9Lvhx0K7UB1rYCoKll+7JZw=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1gzRNW-0006L3-OX; Thu, 28 Feb 2019 20:29:58 +0100 Date: Thu, 28 Feb 2019 20:29:58 +0100 From: Andrew Lunn To: Flavio Suligoi Cc: Jeff Kirsher , "David S . Miller" , "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 Message-ID: <20190228192958.GA24085@lunn.ch> References: <1551361135-404-1-git-send-email-f.suligoi@asem.it> <1551361951-1595-1-git-send-email-f.suligoi@asem.it> <20190228153245.GA17912@lunn.ch> <20190228163729.GB17912@lunn.ch> <6a7a37813e71420b929c769dd1e77664@asem.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6a7a37813e71420b929c769dd1e77664@asem.it> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Andrew