Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1398880pxb; Wed, 4 Nov 2020 07:58:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJy45R3bLrCaePrns3JsXFDbPXl15S/jKozLAfxa4WKR6NFHnktH1384CSiL1e/oTLZ2dW2y X-Received: by 2002:a17:906:26c6:: with SMTP id u6mr26728758ejc.349.1604505493202; Wed, 04 Nov 2020 07:58:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604505493; cv=none; d=google.com; s=arc-20160816; b=yXCT6z0HiW5ox4ghuneBpA8d3YUmbKzW5sbS8bD3F+wdio7cXQUhzHceUVgwqZf2YK iKD5IaDk+wUOkTr+3buBuu/PjX6Fw9lw4gBkr6CELLni3crzyMHkEpII1pyIm5acJGwn kTBG1vQnpDrsh6oXB7qDtoHUNrGphinzlQkKJJBkXpxaPMYbloY4NPyhNkpxzqSdKU2o 0KvD9/OSeVlKR3ux1jd3LM0tbzHtEga0eyi/i/5KokU7f8UVxHzqpCbqD6KDgKKvXGa/ tx6LRv6Cg+D43C8zz2DHYwWSlYWOaL2QxBsIajqG432izy5kvhrT3lFCd+USCsweQgzV pV0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=0u7JBQ6yYa9tqykU+a5OUP0lg17UbgDxQkydnicK3to=; b=opkbj2WfEbR5aXUGpNzHb/dpKGxHfyC0Pzd+9t3h2vFvvVXBmIfmN/1dYKtyu3pcOs OLxl8RL6v9XMzxkw2gZoSOgO6urGd0c7MLfXbMk0jI+v2pdmapgEdEjN1OShpVYODCds TuX62OyCzcakeG5SwhLtF697D3wbrRNB1uOH6O+NnbSRQIL3zDYvOUeR4x6K3pg7dD1O P8rnOKPjG150p/p2o8V6PNdtT6n2AhC9b9CY4IykSG7GcKBgr/7b8Me/b52FMAjICpNR IaEqXRL/x1tKV56MhvjSLDvFLm6CXMXJBkT4/Iy2OXEkRuy4CfXjCvgMd5MUbHJ6eKQv grhg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j15si1621038ejb.160.2020.11.04.07.57.50; Wed, 04 Nov 2020 07:58:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730845AbgKDPym convert rfc822-to-8bit (ORCPT + 99 others); Wed, 4 Nov 2020 10:54:42 -0500 Received: from gloria.sntech.de ([185.11.138.130]:43498 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730429AbgKDPyl (ORCPT ); Wed, 4 Nov 2020 10:54:41 -0500 Received: from ip5f5aa64a.dynamic.kabel-deutschland.de ([95.90.166.74] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kaL7K-0000Fl-3J; Wed, 04 Nov 2020 16:54:34 +0100 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Doug Anderson Cc: "open list:ARM/Rockchip SoC..." , Liam Girdwood , Mark Brown , Rob Herring , Markus Reichl , Rob Herring , LKML , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux ARM Subject: Re: [PATCH] arm64: dts: rockchip: Assign a fixed index to mmc devices on rk3399-roc-pc boards. Date: Wed, 04 Nov 2020 16:54:33 +0100 Message-ID: <10029979.JCShpOL5JR@diego> In-Reply-To: References: <20201104094950.2096-1-m.reichl@fivetechno.de> <4984701.vSXMUKeAfh@diego> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Mittwoch, 4. November 2020, 16:42:01 CET schrieb Doug Anderson: > Hi, > > On Wed, Nov 4, 2020 at 2:51 AM Heiko St?bner wrote: > > > > Hi Markus, > > > > Am Mittwoch, 4. November 2020, 10:49:45 CET schrieb Markus Reichl: > > > Recently introduced async probe on mmc devices can shuffle block IDs. > > > Pin them to fixed values to ease booting in evironments where UUIDs > > > are not practical. Use newly introduced aliases for mmcblk devices from [1]. > > > > > > [1] > > > https://patchwork.kernel.org/patch/11747669/ > > > > > > Signed-off-by: Markus Reichl > > > --- > > > arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi | 5 +++++ > > > 1 file changed, 5 insertions(+) > > > > > > diff --git a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi > > > index e7a459fa4322..bc9482b59428 100644 > > > --- a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi > > > +++ b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi > > > @@ -13,6 +13,11 @@ / { > > > model = "Firefly ROC-RK3399-PC Board"; > > > compatible = "firefly,roc-rk3399-pc", "rockchip,rk3399"; > > > > > > + aliases { > > > + mmc0 = &sdmmc; > > > + mmc1 = &sdhci; > > > + }; > > > + > > > > Any reason for this odering? > > > > I.e. some previous incarnations had it ordered as (emmc, mmc, sdio). > > This is also true for the ChromeOS out-of-tree usage of those, the > > rk3399 dts in the chromeos-4.4 tree also orders this as sdhci, sdmmc, sdio. > > > > And I guess a further question would be when we're doing arbitary orderings > > anyway, why is this not in rk3399.dtsi ;-) ? > > Though I personally like the idea of eMMC, which is typically > built-in, as being the "0" number, I'm personally happy with any > numbering scheme that's consistent. Ordering them by base address is > OK w/ me and seems less controversial. That seems like it could go in > rk3399.dtsi and then if a particular board wanted a different order > they could override it in their board file. Yep that sounds sensible and ordering by base address at least is one "simple" type of order without too much explanation needed. So I guess we'd get a sdio + sdmmc + sdhci ordering @Markus: if nobody else complains, can you do a "simple" rk3399.dtsi change with that please? > The downside of putting > in rk3399 is that boards that don't have all SD/MMC interfaces enabled > would definitely get a new number compared to old kernels, but > hopefully this is the last time? With that new asynchronous mmc-probe-thingy in 5.10 that "caused" this, it sounds like everything gets a new number anyway ;-) . Heiko