Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752465AbcD3IjI (ORCPT ); Sat, 30 Apr 2016 04:39:08 -0400 Received: from pandora.arm.linux.org.uk ([78.32.30.218]:60664 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752101AbcD3IjA (ORCPT ); Sat, 30 Apr 2016 04:39:00 -0400 Date: Sat, 30 Apr 2016 09:38:16 +0100 From: Russell King - ARM Linux To: Peter Hurley Cc: Doug Anderson , Ulf Hansson , Jaehoon Chung , Shawn Lin , Adrian Hunter , Stefan Agner , "linux-mmc@vger.kernel.org" , Brian Norris , Dmitry Torokhov , Heiko Stuebner , Jisheng Zhang , "open list:ARM/Rockchip SoC..." , devicetree-spec@vger.kernel.org, Mark Rutland , "linux-kernel@vger.kernel.org" , Venu Byravarasu , Lars-Peter Clausen , Jon Hunter , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , Pawel Moll , Ian Campbell , Grant Grundler , Kumar Gala , "Luca Porzio (lporzio)" , Rob Herring , Chaotian Jing , Sergei Shtylyov , Sudeep Holla , zhonghui.fu@linux.intel.com, kirill.shutemov@linux.intel.com Subject: Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Message-ID: <20160430083816.GI19428@n2100.arm.linux.org.uk> References: <20160429215017.GC19428@n2100.arm.linux.org.uk> <20160429221606.GE19428@n2100.arm.linux.org.uk> <20160429224407.GF19428@n2100.arm.linux.org.uk> <5723F514.4@hurleysoftware.com> <5723FCE3.9070308@hurleysoftware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5723FCE3.9070308@hurleysoftware.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1072 Lines: 26 On Fri, Apr 29, 2016 at 05:31:31PM -0700, Peter Hurley wrote: > FWIW, there is already a defacto expectation by boot configurations in the > field that a given mmc block device is stable across boots. The reality > is that 100000's of kernel command lines look like: > > root=/dev/mmcblk0p2 Thankfully, MMC does generally give a stable naming across reboots - I have platforms with eMMC and SD (eg, the SDP4430 board which is in the test farm) and only when things change in the kernel does the MMC device name change. Changes in device ordering can be provoked by the order in which entries in the DT file appear, and hence the order in which the host SD interfaces are probed by the kernel. When it changed, I switched from using the device specifier to using a UUID. Now I have no problems since I no longer care which MMC block device ends up as the SD card. The kernel there is TFTP'd too. -- RMK's Patch system: http://www.arm.linux.org.uk/developer/patches/ FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net.