Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752286AbcD3NXr (ORCPT ); Sat, 30 Apr 2016 09:23:47 -0400 Received: from mail.kernel.org ([198.145.29.136]:43229 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751548AbcD3NXo (ORCPT ); Sat, 30 Apr 2016 09:23:44 -0400 MIME-Version: 1.0 In-Reply-To: References: <20160429195741.GY19428@n2100.arm.linux.org.uk> <20160429211328.GZ19428@n2100.arm.linux.org.uk> <20160429212920.GA19428@n2100.arm.linux.org.uk> <20160429215017.GC19428@n2100.arm.linux.org.uk> <20160429221606.GE19428@n2100.arm.linux.org.uk> <20160429224407.GF19428@n2100.arm.linux.org.uk> From: Rob Herring Date: Sat, 30 Apr 2016 08:23:17 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree To: Doug Anderson Cc: Russell King - ARM Linux , 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)" , Chaotian Jing , Sergei Shtylyov , Sudeep Holla , zhonghui.fu@linux.intel.com, kirill.shutemov@linux.intel.com Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 847 Lines: 24 On Fri, Apr 29, 2016 at 6:01 PM, Doug Anderson wrote: > Hi, > > On Fri, Apr 29, 2016 at 3:44 PM, Russell King - ARM Linux > wrote: >> My reply would be... why should MMC have special handling that no >> other subsystem has? > > No other subsystem? > > * i2c allows numbering devices by alias > * rtc allows numbering devices by alias. > * serial allows numbering devices by alias. > * spi allows numbering devices by alias. > * watchdog allows numbering devices by alias. > > ...at least that's my impression doing a grep for of_alias_get_id(), > which I suggested earlier in this thread but apparently wasn't done. IMO, we should remove most or all of these not add more. We shoud move to identifying devices by other OS independent means. Peter already pointed out why serial is a problem. Rob