Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp651982pxb; Thu, 19 Nov 2020 10:15:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJyBkSaRfm96RiWpJlcJ0726byjrQTBDKi19Hmdn10+cW930rNbWmX37+/7b4TSOeNUCNlsd X-Received: by 2002:a50:9d04:: with SMTP id v4mr32181047ede.363.1605809750327; Thu, 19 Nov 2020 10:15:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605809750; cv=none; d=google.com; s=arc-20160816; b=cX2mKlo29efzpU8d4I54ZsMJwURgJWixU59OpLq8UH5Bv8L4cXR6y88+AyhHoJFXdR PFDTfa99NL1wl42Fl3rla01hemiyHwa1kcYA7eCXADly9P+OXJebLrQQdYRVmI4dhwfX 6hInn+oIy3AON0PbSir7bM8AhTl1QiC2zUeRrT8H1BmIqxmooMC5BbbpY0cM28P0+VX8 AfUzjk3a5lQa1DhaxFIVeKx50BAFCIN2MaaFIMRmDApOZLBtqgoGZU8z2o5TinwJz5cG tWdzBSX8muTa4EjAjhDQXgT0D8FmS6u1TbHV/6yCwJa9M5AMXbfL1KXsfUZTdEqkgcRy yKfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=vC7HVwjANH5oc4E2w8W2S6yvBbfs+xSzba3U+jaONBg=; b=UZE1jKc710D38tmiesriiU1qfZgLQxJj1Exx8SuyLiE14hQPnNLw3RAcZ1zFETb2hl EDnErp+u+fqdq2i/Zw3LlJKaS0WOhWVt/FKlS7IaxzuCNB+DP7xdD+I/5g8UQW/gJZ7k fSZYRs127Bvw2jHEuRPMTbtQF5BI6H3JZRqEujyrbxeqS0RVnBOHXDIoVgeluq6UWKOG 2xPwav9IktQ5gqbDDqfgMBnKwzDRGWEGIMovKxWd0Qx+QUhNb7lB+ssmkOE5eFoGYLme wavFmCl3SwlJNkWH47bBRkmZZUIZZSI94+RZB1iLJ4LkLSHfRs5Bhb2shMGIOEnKxDuw 8eTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=N0g9lCum; 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 1si317724edv.354.2020.11.19.10.15.23; Thu, 19 Nov 2020 10:15:50 -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=@walle.cc header.s=mail2016061301 header.b=N0g9lCum; 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 S1729094AbgKSSMl (ORCPT + 99 others); Thu, 19 Nov 2020 13:12:41 -0500 Received: from ssl.serverraum.org ([176.9.125.105]:45795 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727117AbgKSSMl (ORCPT ); Thu, 19 Nov 2020 13:12:41 -0500 X-Greylist: delayed 7433 seconds by postgrey-1.27 at vger.kernel.org; Thu, 19 Nov 2020 13:12:40 EST Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 0F96422EE4; Thu, 19 Nov 2020 19:12:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1605809558; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vC7HVwjANH5oc4E2w8W2S6yvBbfs+xSzba3U+jaONBg=; b=N0g9lCumldkfoC6XZ82nBq+ZP+XoHM2K2t5RBTkSUZAv2ll9vNFdufhH4xFSsIXnNfCYj5 NxYAJpcyYaGN69MOHWOMHellRWDQrKwxSy42nRljHrBq6MOE0UhOkq716mgJTfB4Nt6Qdi 3rRweMg8Z68m5MeavEODNYPdoY0dowI= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 19 Nov 2020 19:12:37 +0100 From: Michael Walle To: Vladimir Oltean Cc: Shawn Guo , 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 Subject: Re: [PATCH v2] arm64: dts: ls1028a: make the eMMC and SD card controllers use fixed indices In-Reply-To: <20201119163821.980841-1-vladimir.oltean@nxp.com> References: <20201119163821.980841-1-vladimir.oltean@nxp.com> User-Agent: Roundcube Webmail/1.4.9 Message-ID: <31099f0d12b87ad330a59c84f0fa9b42@walle.cc> X-Sender: michael@walle.cc Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 2020-11-19 17:38, schrieb Vladimir Oltean: > 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 Acked-by: Michael Walle [for the sl28 boards] -michael