From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VT4Va-0001i6-Ff for barebox@lists.infradead.org; Mon, 07 Oct 2013 06:41:35 +0000 Date: Mon, 7 Oct 2013 08:41:11 +0200 From: Sascha Hauer Message-ID: <20131007064111.GT30088@pengutronix.de> References: <20131003171726.096b0daa@archvile> <20131003192349.GR32444@ns203013.ovh.net> <20131004091739.4debe909@archvile> <20131006103949.GL30088@pengutronix.de> <20131007083203.7aa17d5b@archvile> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20131007083203.7aa17d5b@archvile> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: /dev/disk0 vs /dev/mmc0 To: barebox@lists.infradead.org On Mon, Oct 07, 2013 at 08:32:03AM +0200, David Jander wrote: > > Dear Sascha, > > On Sun, 6 Oct 2013 12:39:50 +0200 > Sascha Hauer wrote: > > > > It doesn't interfere with the kernel. The kernel currently ignores this > > aliases. There are patches floating to let the kernel honor this > > aliases, but then they should simply have the same effect as they have > > in barebox. > > That doesn't _feel_ right. Changing standard device names in Linux via aliases > in the DT might be a fancy idea, but it'd have a different reason/use-case > than in the case of barebox. IMHO using the same DT for both seems to be the > Right Thing (tm) to do, but then the semantics must be the same also. > If I need aliases in the DT only to be able to tell devices apart from each > other in barebox, while in Linux the effect would only be a rather inconvenient > renaming of devices with no other added value, I think we need a different way > to differentiate devices in barebox. Why not just use a simple driver-provided > prefix (mci, mmc, usb, sata, etc...) for now? That's not enough. We also need a fixed numbering. Otherwise a nonremovable eMMC and a removable SD card change their device names depending on the detect order. Using aliases to provide a numbering is done in the Kernel aswell at least for gpios, uarts and i2c busses, so expanding this scheme to mmc/sd slots doesn't feel too wrong to me. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox