Received: by 2002:ac0:950e:0:0:0:0:0 with SMTP id f14csp48634imc; Fri, 15 Mar 2019 16:25:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqyJX7hU9ev0bK/uS5ZHwQKTUbNhY/sqjdn4OKAjXD/3PzH9dh9bo0d8nzYxbbnPCFKJoWOa X-Received: by 2002:a63:4509:: with SMTP id s9mr5870779pga.420.1552692310944; Fri, 15 Mar 2019 16:25:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552692310; cv=none; d=google.com; s=arc-20160816; b=Pbz2rdgFHjBpj0ecNf6/P0UcEx0evocQCn1sceM/vOImof769IQPt8HGuWNfhGLWK3 9gIDdwkA9vTn2yOV3ytDnPdpPD1owPEfg1QOUmSR5K2FVqvE47jAB8mJtfVGtF0iqKv0 B79HxxnO2INbgMg0QSzZp/QH0O43Uef+o74xsKIpYiEzkOtzaQ1FsYA3DgLbaOcj5O6K iixLzOKZLFMZNXmmPnCRnFAdrqO/qtTft/IYaXJ8maT+XY5TUhjtxjHP+rdWbyB34fus bA/kgPvB9vvq3nlbOWUnhEubHVuEJ4Ct0PNW1BBpBJain8jz52FhrkWvO84/xVTC+JIL JoFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=t925Fe6p1JfFbcxLsJ4YZ5IC7rsRB1Ds+u1RXMtkZNc=; b=jrrUgmKX80fiLGs/5BYR7XvNS8hOIDZNLgYSJBiesCQA419VL8m3rgplikuuVsUmQX nOUwG6VHiiJLSzIeDDpiP5js5p1lVTVybX4jBDx1Zol+195umFtZAZeWkdp2hlc8NZwI xOjSmFIK1LzXCDBFUh8PtYMvjOjZfJx+i2Qr0xVAgmnzlsjhExnnHbSwJEfxuEh7JOUR IclVI3bvk8+fYX5QmCp052BOdLU9hpsHAXTyfmXJlTQ/doUkZttErlhAtZazqx4IjGPN nLaLAGi742D3x52WPijXCi7oeOUz1vsKNMj6PiPnvYXR9REj2zpKCLpCh8R5OxNzv/bt lVow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=bFgIz75b; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b13si2770355pgt.374.2019.03.15.16.24.55; Fri, 15 Mar 2019 16:25:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=bFgIz75b; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727497AbfCOXXl (ORCPT + 99 others); Fri, 15 Mar 2019 19:23:41 -0400 Received: from mail-ua1-f66.google.com ([209.85.222.66]:39162 "EHLO mail-ua1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727188AbfCOXXl (ORCPT ); Fri, 15 Mar 2019 19:23:41 -0400 Received: by mail-ua1-f66.google.com with SMTP id m11so710128uad.6 for ; Fri, 15 Mar 2019 16:23:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=t925Fe6p1JfFbcxLsJ4YZ5IC7rsRB1Ds+u1RXMtkZNc=; b=bFgIz75bFsS9uxq0DaaO3U/4bcdw3JwTfNAyXBO8uCMpG1MLZ/P/4/pHi6PhY6js0O VG2pKp6tX6JHmYZwHpXSkoc+aTD1Ms00LWvv5wStFueoVU6E+prpcm5EB7g4I6vZH1DP Lk9dKdEEO/RGVvZTfozYvPdmGLkT84qljPXKk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=t925Fe6p1JfFbcxLsJ4YZ5IC7rsRB1Ds+u1RXMtkZNc=; b=hXza0fQ0rzR+FSs+aWXAqxbQ2xlC2ajiHXLj3QhbwX70O/6tHWgbEvCugPLEzNqCnn ChQLuAHInNowhtNgQVwbQO3Ybo5DuNpyD+oGOYdb33UDesIu8VMMWGtX/yDKbSa71qtP v2SHtAiSDZT7zrzBg3d4c16KGFpR9uKelBsNt1vsPvKV9X4VJdwq7cAUaJNIF4/eibGF v4/9vMYtJ3DZAeycrmU5LradeBt3oblHu7gm/eM/laW1W1liVcT1DVIo9AGCUwIMBzID MhRxutf+YcpX2OCann3WnrhAvLwdK+TSY5u/uBOrRSt2jw3rG5EVAxhtrz24VhadO++8 yxaA== X-Gm-Message-State: APjAAAUwsXcMxAuBJgfOUMyCZAvmNuq7zhZ5U0zqWF8Bhu4XnYJH1ONf yXwSDrplZbQSAkn2Qaq6deFZjCxGNsI= X-Received: by 2002:ab0:4e17:: with SMTP id g23mr1089791uah.95.1552692219721; Fri, 15 Mar 2019 16:23:39 -0700 (PDT) Received: from mail-vs1-f50.google.com (mail-vs1-f50.google.com. [209.85.217.50]) by smtp.gmail.com with ESMTPSA id j92sm154532uad.6.2019.03.15.16.23.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Mar 2019 16:23:38 -0700 (PDT) Received: by mail-vs1-f50.google.com with SMTP id w14so6371917vso.6 for ; Fri, 15 Mar 2019 16:23:38 -0700 (PDT) X-Received: by 2002:a67:b60c:: with SMTP id d12mr2247764vsm.149.1552692218037; Fri, 15 Mar 2019 16:23:38 -0700 (PDT) MIME-Version: 1.0 References: <1461951139-6109-1-git-send-email-dianders@chromium.org> In-Reply-To: From: Doug Anderson Date: Fri, 15 Mar 2019 16:23:26 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree To: Marek Vasut Cc: Tim Harvey , =?UTF-8?B?TcOlbnMgUnVsbGfDpXJk?= , Ulf Hansson , Jaehoon Chung , Shawn Lin , Adrian Hunter , Stefan Agner , Linux MMC List , Brian Norris , Dmitry Torokhov , Heiko Stuebner , Jisheng Zhang , "open list:ARM/Rockchip SoC..." , devicetree-spec@vger.kernel.org, Mark Rutland , open list , Venu Byravarasu , Lars-Peter Clausen , Russell King - ARM Linux , Jon Hunter , Linux ARM , devicetree@vger.kernel.org, Pawel Moll , Ian Campbell , Grant Grundler , Kumar Gala , "Luca Porzio (lporzio)" , Rob Herring , =?UTF-8?B?Q2hhb3RpYW4gSmluZyAo5LqV5pyd5aSpKQ==?= , 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Fri, Mar 15, 2019 at 4:00 PM Marek Vasut wrote: > > > Completely agree here - we need a dt solution that allows us to > > specify ordering. > > Nope, ordering would be a policy and does not describe hardware, thus it > shouldn't be in the DT. Use UUID or PARTUUID, they apply both to raw FS > (fsuuid) and to partitions (part uuid). Linux kernel can mount FS using > PARTUUID, to support UUID you need initramfs. Two thoughts about that: 1. Some amount of policy is allowed in device tree. At some point in time there was a big discussion about the need for a separate "config tree" that was totally parallel to the device tree so we could put policy stuff in that. Nobody wanted that and (as I recall) it was agreed that in some cases policy could go there if that policy expressed policy that was the generic intent of how the board ought to be run. I believe this is how things like the assigned-clocks is justified. 2. In some cases this number does describe the hardware. You look at the hardware reference manual and see that there are 3 MMC controllers: 0, 1, and 2. In such cases it seems like it's an OK description of the hardware to encode this info into the DTS. ...from what I recall, one big objection is for SoCs that didn't just have numbers for their controllers. AKA I think some SoCs might call their controllers the "eMMC" controller, the "SD" controller, and the "SDIO" controller. They may be nearly the same hardware, but perhaps the SoC allows for a GPIO interrupt on the SDIO controller and perhaps the eMMC controller exposes the strobe line or has an 8-bit wide datapath. In this case making up numbers does become a bit more arbitrary and folks didn't like it. IIRC there was general consensus that it'd be OK to somehow specify a string (AKA non-numeric) name for different SD controllers. I don't have pointers to that conversation offhand and it's possible I imagined it. -Doug