lkml.org 
[lkml]   [2018]   [Nov]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v1] tg3: optionally use eth_platform_get_mac_address() to get mac address
From
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 <svendev@arcx.com>

Applied to net-next, thanks.

\
 
 \ /
  Last update: 2018-11-18 21:59    [W:0.028 / U:4.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site