From: David Miller Subject: Re: [PATCH v1] tg3: optionally use eth_platform_get_mac_address() to get mac address Date: Sun, 18 Nov 2018 12:58:27 -0800 (PST) Message-ID: <20181118.125827.533500141350535906.davem@davemloft.net> References: <20181117155618.19486-1-TheSven73@googlemail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: svendev@arcx.com, siva.kallam@broadcom.com, prashant@broadcom.com, mchan@broadcom.com, andrew@lunn.ch, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, arnd@arndb.de To: thesven73@gmail.com Return-path: In-Reply-To: <20181117155618.19486-1-TheSven73@googlemail.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: thesven73@gmail.com Date: Sat, 17 Nov 2018 10:56:18 -0500 > This function will try to determine the mac address via the devicetree, > or via an architecture-specific method (e.g. a PROM on SPARC). > > The SPARC-specific code in this driver (#ifdef SPARC) did exactly this, > and is therefore removed. > > Note that you can now specify the tg3 mac address via the devicetree, > on any platform, not just SPARC: > > Devicetree example: > (see Documentation/devicetree/bindings/pci/pci.txt) > > &pcie { > host@0 { > #address-cells = <3>; > #size-cells = <2>; > reg = <0 0 0 0 0>; > bcm5778: bcm5778@0 { > reg = <0 0 0 0 0>; > mac-address = [CA 11 AB 1E 10 01]; > }; > }; > }; > > Signed-off-by: Sven Van Asbroeck Applied to net-next, thanks.