[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAP-MU4Mr5SkpC9XZuPa5xaAjgJ+_j3Gt5hYcSO6a2Q7jVB8HcQ@mail.gmail.com>
Date: Tue, 9 Feb 2016 09:42:45 -0800
From: Shannon Nelson <shannon.nelson@...el.com>
To: Andrew Lunn <andrew@...n.ch>
Cc: Jeff Kirsher <jeffrey.t.kirsher@...el.com>,
John Holland <jotihojr@...il.com>,
intel-wired-lan@...ts.osuosl.org, netdev@...r.kernel.org
Subject: Re: [Intel-wired-lan] [next] igb: allow setting MAC address on i211
using a device tree blob
It seem to me this should be using eth_platform_get_mac_address(), a
slightly more generic method to do this. See the i40e driver for an
example, commit d9a84324e6 I believe.
sln
On Tue, Feb 9, 2016 at 3:59 AM, Andrew Lunn <andrew@...n.ch> wrote:
>> > + dn = of_find_compatible_node(NULL, NULL, "intel,i211");
>
> Humm, NULL, NULL. That means find the first node anywhere in the
> device tree which matches. This is not going to work too well when you
> have multiple i211s.
>
> There is a way so specify a DT node is attached to a specific PCIe
> bus/slot. I think you should search only there, so solving the
> multiple device issue.
>
> Andrew
--
==============================================
Mr. Shannon Nelson Network Division, Intel Corp.
Shannon.Nelson@...el.com I don't speak for Intel
Parents can't afford to be squeamish
Powered by blists - more mailing lists