From: Andrew Lunn Date: Tue, 9 Feb 2016 12:59:21 +0100 Subject: [Intel-wired-lan] [next] igb: allow setting MAC address on i211 using a device tree blob In-Reply-To: <1455015744.3592.46.camel@intel.com> References: <56ABE3A8.4010602@gmail.com> <1455015744.3592.46.camel@intel.com> Message-ID: <20160209115921.GE18781@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: intel-wired-lan@osuosl.org List-ID: > > +???????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