Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp321088pxb; Thu, 5 Nov 2020 00:26:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJxXKgXY77NiZ3l7SgdXiz7qHN/iRJMxAvpu7cLmmodiaTgkGWcJuuVGfjzCPOP/FsFUZnaR X-Received: by 2002:a17:906:519b:: with SMTP id y27mr1164264ejk.25.1604564792527; Thu, 05 Nov 2020 00:26:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604564792; cv=none; d=google.com; s=arc-20160816; b=oMrMHKOhRtCJ0IfR+7iQyPf67GYC9QdKj2yANHJGIsXnQnb5QGdrPfp74UI1BVikNa Qq2y2UIxI1BYpSPZ88VqvLhXl5Gq4CrArIW+PV3iyOTIaCvC4TAU9KiZJEeUS1NWLnEH wKJp7PkW6UKRSdQjFyocxbpSdeihyRuTdIchNOabLVpIuWjcDMhg8vmJ3zgJHvv91uwV wfETywsL49VKPi05VqCGl9Kd6RMnOMHAy4xrHiuOKnyV11PzDl3HBWJAeGe/xQJ0JBIO 2pUAtGkhIFwX4a256j0U4nFwZUvqc2MlI3vu5lgwdBsDVzBrw0GZLFXyZeT8LRIXuTLt Kqaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=1Lt3I2S+QBhfdlbmGPy+HPuar9awMz4kGhGY7TEBnDY=; b=pcKalL5xYHpueoPrE4gUfOmYpoK9se8T/AGV/dvbs5K/9kgufCd6TA3dQEUSR8yVtZ UX3b57bWocu4a/OHC2bBXkXGo1xBZfPMRLoO3PI8SnoaFKDAIKzAst3A5mr9Ozhz611L d+UobUAj67ifDlL+bjM1ItvVotJq0sfVVpDz+ovm5xdMu/nFfVxopXpuzeaZ3akX4Hvs nSF6qpDJNn5/DqCS6t59aA8Y6d1hLRLFPmsQtZcbhHGiSpL4oPnV2Glv2jsRGrbP6mAe 1M+59TRxNl9n2mFbVnZeTFwo4RsM46oHkdBk2WQOGj1vZGNkTGiQmp6Ci9b/5ffTGm4Z xWWQ== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k12si551364ejr.406.2020.11.05.00.26.08; Thu, 05 Nov 2020 00:26:32 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728048AbgKEIWS convert rfc822-to-8bit (ORCPT + 99 others); Thu, 5 Nov 2020 03:22:18 -0500 Received: from mail-ej1-f66.google.com ([209.85.218.66]:32786 "EHLO mail-ej1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725287AbgKEIWR (ORCPT ); Thu, 5 Nov 2020 03:22:17 -0500 Received: by mail-ej1-f66.google.com with SMTP id 7so1377575ejm.0; Thu, 05 Nov 2020 00:22:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=B8HtzyMM9O+CRTsQYqsIESSwVGUTg6Wa5A4yh2zKQ6E=; b=rUfaY4J2r72yFjk2xInkHNZjc2rwvKFyP2zJujVzSetTqxeVqZO1UsyzeXSsE7ETLO HSOnmoi2XRYU8raa9pU1Z7rE1HEHbiDu85aoxJwY0gHK+d8Yt+5nLf+6A2wg3ZTgYkEC zPcN2um1awlyZ5l14hcQdO3SMO+RL0RKrU3Y3ED3Xn90EGuvg+772tBataDGQisIKg0T sllqT1bgkSB4/GoUD56vWQenpFtz8LE9vIMt6AXON4wOERB4S+BJN5wmdzh2r/7U/cIv 5a0IIt3qOPmayRpCooNoK79NOd9F49s10L8M5aK/RqjPgiTBGKa56VAwuVb6x/RhuRho eRqA== X-Gm-Message-State: AOAM530mDcbzmI1AXxNitA9Eqz5GIxbRMgtsLIP5MuIqI4TtyVXcjZ6e yykL8UItBMMI/MC59ZoUXBM= X-Received: by 2002:a17:906:4bc9:: with SMTP id x9mr1155633ejv.37.1604564535540; Thu, 05 Nov 2020 00:22:15 -0800 (PST) Received: from kozik-lap (adsl-84-226-167-205.adslplus.ch. [84.226.167.205]) by smtp.googlemail.com with ESMTPSA id n25sm487185ejd.114.2020.11.05.00.22.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2020 00:22:14 -0800 (PST) Date: Thu, 5 Nov 2020 09:22:12 +0100 From: Krzysztof Kozlowski To: Marek Szyprowski Cc: Markus Reichl , Rob Herring , Kukjin Kim , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ARM: dts: exynos: Assign a fixed index to mmc devices on exynos4412 based ODROID boards Message-ID: <20201105082212.GA23722@kozik-lap> References: <20201104102558.11070-1-m.reichl@fivetechno.de> <5800260a-5332-f627-eb36-32df4fbf05e3@fivetechno.de> <71e4ecca-b980-e224-0fbe-b30330e490fb@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: <71e4ecca-b980-e224-0fbe-b30330e490fb@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 04, 2020 at 02:44:10PM +0100, Marek Szyprowski wrote: > On 04.11.2020 14:13, Marek Szyprowski wrote: > > On 04.11.2020 14:06, Markus Reichl wrote: > >> Am 04.11.20 um 13:25 schrieb Marek Szyprowski: > >>> On 04.11.2020 11:25, Markus Reichl wrote: > >>>> Recently introduced async probe on mmc devices can shuffle block IDs. > >>>> Pin them to fixed values to ease booting in evironments where UUIDs > >>>> ar not practical. > >>>> Use newly introduced aliases for mmcblk devices from [1]. > >>>> > >>>> [1] > >>>> https://patchwork.kernel.org/patch/11747669/ > >>>> > >>>> Signed-off-by: Markus Reichl > >>>> --- > >>>>   arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 5 +++++ > >>>>   1 file changed, 5 insertions(+) > >>>> > >>>> diff --git a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi > >>>> b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi > >>>> index a5c1ce1e396c..aa10d5bc7e1c 100644 > >>>> --- a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi > >>>> +++ b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi > >>>> @@ -13,6 +13,11 @@ > >>>>   #include "exynos-mfc-reserved-memory.dtsi" > >>>>     / { > >>>> +    aliases { > >>>> +        mmc0 = &sdhci_2; > >>>> +        mmc1 = &mshc_0; > >>> Like in the OdroidXU3-family patch, I would use 0 for the eMMC (mshc_0) > >>> and 2 for the SD-card (sdhci_2). > >> How to deal then with sdhci_0 (from exynos4.dtsi) vc. mshc_0 (from > >> exynos4412.dts)? > > sdhci_0 and mshc_0 both operate on the same physical MMC0 bus, so this > > is not an issue. They cannot be used simultaneously. The latter is just > > faster, the first one has been left there mainly for the software > > compatibility. > > I've thought a bit more on this and I would simply prefer to add generic > MMC aliases to the top-level Exynos dtsi files (3250, 4210, 4412, 5250, > 5410, 5420) to keep Linux logical MMC bus numbers in sync with the HW > bus numbers on all boards. I like this approach - I don't see much benefit of having different numbering between boards of the same SoC. Let's match old U-Boot behavior (I assume that people switch to PARTUUID around the v4.0 mixup, so they should not be affected). Best regards, Krzysztof