From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ezequiel Garcia Subject: Re: [PATCH] ARM: mvebu: add Device Tree for the Armada 385 RD board Date: Thu, 6 Mar 2014 16:17:47 -0300 Message-ID: <20140306191747.GA32655@arch.cereza> References: <1394107868-26094-1-git-send-email-gregory.clement@free-electrons.com> <20140306131429.GJ4780@lunn.ch> <5318779C.8030901@free-electrons.com> <20140306142117.GL4780@lunn.ch> <531886B4.2070002@free-electrons.com> <20140306144600.GM4780@lunn.ch> <53188B73.4000109@free-electrons.com> <53189892.5090502@free-electrons.com> <20140306160213.GA4327@arch.cereza> <20140306172339.GP4780@lunn.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Content-Disposition: inline In-Reply-To: <20140306172339.GP4780@lunn.ch> Sender: linux-kernel-owner@vger.kernel.org To: Andrew Lunn Cc: Thomas Petazzoni , devicetree@vger.kernel.org, Jason Cooper , Tawfik Bayouk , linux-kernel@vger.kernel.org, Nadav Haklai , Lior Amsalem , Gregory CLEMENT , linux-arm-kernel@lists.infradead.org, Sebastian Hesselbarth List-Id: devicetree@vger.kernel.org On Mar 06, Andrew Lunn wrote: > > Can't we fix this so the probe order doesn't affect the name? > >=20 > > Is that sane? >=20 > You are not supposed to trust the device name, since probing can > happen in parallel, on different buses. udev should have rules to nam= e > the interfaces based on the MAC address. On my Debian system i have: >=20 > /etc/udev/rules.d/70-persistent-net.rules >=20 > So what is important is that the MAC addresses are assigned correctly > to the device. And DT does that based on MMIO address, so should be > reliable, independent of probe order. >=20 Right, makes perfect sense! So we can just keep the nodes address-ordered, without caring about the= name? --=20 Ezequiel Garc=EDa, Free Electrons Embedded Linux, Kernel and Android Engineering http://free-electrons.com