Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3604128pxu; Mon, 30 Nov 2020 06:42:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJz6IDMbGE70SkQHDrND13AQjmYUZH3EH8Zagxy9bhqAjYJ6gQxFVauyKGhwOWTQYA6Aa0U3 X-Received: by 2002:a17:906:1282:: with SMTP id k2mr20520026ejb.554.1606747353251; Mon, 30 Nov 2020 06:42:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606747353; cv=none; d=google.com; s=arc-20160816; b=x76PwQ0nmJAu9vuaXDdU0gErjC7xeYcrPc3+KqkDCHNq27x4yC5CNvJQiQSrTUVh3P /zJS0i2cql7v6SdvQk0QEM/SN8OIlxbkw1qsEKhNCuf0DGP4YdRps+bOmnNxjRifihvo qMcPz1TzeKRYcrBO41onwfKR4MZGhYyszFZ0JLpEPHL7Fc3YGqhzaH+nH2B35xlnFqje 4n/Vj3Z2CtgJy5b6/VwW/E7itZ3c8TBEgzo1uS51SUADQ1Bc9nGX6KxHMmxcp1VCZvD5 cU9ZqDfHkSgFUTV0NNOLpAlbFxM5XRVoR+p0ovBWfHEcWygEpr5PtDrTImqw4wWbEcgl 3XzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=VpeELDRyj0/pqUcO/SxVhV1jST9ya4wAkkdqyXodTPU=; b=lM19qgdjc22cdMJN0k6zUkyfWDjoqQbKylRg/862BaOQTpzSgPaxioe5yXdxEq6ccY Z02cTJEhKj0zbo7BVJX088o0vsu9YO2+He/FttBi2Uj1F1aTzS9AscXxdBR8wABjHaDH E3TFQ/8VsXdGx8+KX/tggVF9dNuysGwAIMxS5XEXWzICrWJwQsCtRMOmNiN7M95LJEJS BEkOFq2eJ2bHeVm20uL91Ejdqr2gTBMDz4FCv7qfBl34OveYwXpfsQt9dx8weGUYqSHp KzPVhct0qFk4fWeKTPgPVLU0WYFJM2rlyyi1UVBV+Z+9ny19N5GLqvAas5um3BQKuZ/t cRmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="gg/Ygpse"; 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 u6si11215017ejy.300.2020.11.30.06.42.10; Mon, 30 Nov 2020 06:42:33 -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; dkim=pass header.i=@kernel.org header.s=default header.b="gg/Ygpse"; 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 S1726805AbgK3OkV (ORCPT + 99 others); Mon, 30 Nov 2020 09:40:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:49392 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725859AbgK3OkU (ORCPT ); Mon, 30 Nov 2020 09:40:20 -0500 Received: from dragon (80.251.214.228.16clouds.com [80.251.214.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D3B7420725; Mon, 30 Nov 2020 14:39:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606747180; bh=UtCy0Q6iAI4eqrqdFVaVCDH6fxHOhNgoqJvsr9jGwsM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gg/Ygpse1DxxvOKzrzCjkMF/Pgu5rh3vH7qvVS8mBomxHfCZK3OZhKvLU4LgxQBud RisRlDu+LAZ9haxNjtRDI0ST9xxrOMVjj6vyl17VJCsxpPrh7GM8fSCXeP4YEIoN9Z H6aN7ObL2gz1snrIYOScVqA1+c8o/pBKkjfv1mfw= Date: Mon, 30 Nov 2020 22:39:32 +0800 From: Shawn Guo To: Vladimir Oltean Cc: Li Yang , Rob Herring , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Adrian Hunter , Ulf Hansson , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Ashish Kumar , Yangbo Lu , Michael Walle Subject: Re: [PATCH v2] arm64: dts: ls1028a: make the eMMC and SD card controllers use fixed indices Message-ID: <20201130143923.GK4072@dragon> References: <20201119163821.980841-1-vladimir.oltean@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201119163821.980841-1-vladimir.oltean@nxp.com> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 19, 2020 at 06:38:21PM +0200, Vladimir Oltean wrote: > As the boot order in the kernel continues to change, sometimes it may > happen that the eSDHC controller mmc@2150000 (the one for eMMC) gets > probed before the one at mmc@2140000 (for external SD cards). The effect > is that the eMMC controller gets the /dev/mmcblk0 name, and the SD card > gets /dev/mmcblk1. > > Since the introduction of this SoC, that has never happened in practice, > even though it was never guaranteed in theory. Setting > "root=/dev/mmcblk0p2" in /proc/cmdline has always caused the kernel to > use the second partition from the SD card as the rootfs. > > The NXP development boards are typically shipped with either > - LSDK, which uses "root=UUID=", or > - OpenIL, which uses "root=/dev/mmcblkNp2" > > So for OpenIL, let's preserve that old behavior by adding some aliases > which create naming consistency (for LSDK it doesn't matter): > - the SD card controller uses /dev/mmcblk0 > - the eMMC controller uses /dev/mmcblk1 > > For the Kontron SL28 boards, Michael Walle says that they are shipped > with "root=UUID=" already, so the probing order doesn't matter, but it > is more natural to him for /dev/mmcblk0 to be the eMMC, so let's do it > the other way around there. > > The aliases are parsed by mmc_alloc_host() in drivers/mmc/core/host.c. > > Cc: Ashish Kumar > Cc: Yangbo Lu > Cc: Michael Walle > Signed-off-by: Vladimir Oltean Applied, thanks.