Received: by 2002:ac0:950e:0:0:0:0:0 with SMTP id f14csp558880imc; Sat, 16 Mar 2019 08:42:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQPqOladrN8OgE/7sctKTgNLKzyrSwK1TxSS5TfjNyg+BNrZAiB1bcq7au+IqzQHKfI/1e X-Received: by 2002:a63:cf4c:: with SMTP id b12mr9114537pgj.316.1552750951336; Sat, 16 Mar 2019 08:42:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552750951; cv=none; d=google.com; s=arc-20160816; b=VpPVKsBwBnWmZLfzBaHcYLCwRHzbFTcF0bp+/rWnsXxiCKBV3eMwI9Ibe9PdVoSNGa pTWrPPin264A6WwOxuLyxVr/tdTVKuOnrYMYQBAd3TWjH6nYi2gbwf+Z1v2T4CA+q+tj duEwPRtDZIy/R9dP4EiT6exBP/IypvEva4sKzBIKdSXlqLq1am9bZjcxArFe0H6wjQkd JVUVA2SQrKBHTeflWbEtKm3kilhlg1LBUIfQeoPpo/o5lbyeNFg0c3HW92ogxbthys4/ WI8IWTnbf4v6bNX60Utb+88pr5ppS0kmO465g7y6apq6ePkFS8sV6RZwwJq5kavQrg2H y/6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qQb8nquIGKtHTa4PVmHRJG1YlpwlUyA3/AcYGt2hbwM=; b=0K1UsPClwKG+oWnkBmjrTwgZx2nEbaTc0GbJcqslFsUOCJqUlQDa0klLifk3D0GYbo 2tZ021Pg5WPxln6J+syjA0VDY6TS3GTfrjy85Kw6U0FYaXPP4l21pZ7D3ezzgEdJUe03 1+Mgl4ZVyI5F6GoeuZ4dyafrnb8Qh47nI866fJVIvkj1nDOp4f8xtmewvAUZwdjFmhaI FItd5FcvT2UM/hhj6nTkOQ0s6zT2SHjooW5MOgNDiRqGL9f7hBsc9Qjh4kyo+PA615Jv QSOPwdVTRYy2wSwrhGyUZg7s2ktMFGm3yb5i36iBu0UAhGKAXlhGXDsmIjL5PvL1Z/DQ Ngyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=nERWza1+; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 70si4725710pla.128.2019.03.16.08.42.16; Sat, 16 Mar 2019 08:42:31 -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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=nERWza1+; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727142AbfCPPkQ (ORCPT + 99 others); Sat, 16 Mar 2019 11:40:16 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:51546 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726151AbfCPPkP (ORCPT ); Sat, 16 Mar 2019 11:40:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=qQb8nquIGKtHTa4PVmHRJG1YlpwlUyA3/AcYGt2hbwM=; b=nERWza1+EKfzqBTGjjtATj+J2 aX6qvnx5khYks1PrFz5WV7mwIBimYov2zwM5k3vfuV+vvpcg++TvvMwnWu8Qz1vbbHCqOsOCgx/7/ LiiY7IaZGVbnTnm7lCD5nj1Mhf6q6KYODEF77k9p5jFbctBZtJvPI3OY9rA9U9VpCDNqTBeDboj+O 0POMYIO019kjRUI68+IOKxzpSIxLFlbVQh9vSZHStvfjCi8QjTjk3VcJ9huuIsnuqRF8+6M0vU4qd N26pdCb5d355Oe6SoNZ2p7i3uOaPBNCgGhtxDnaIQP/h6jpJcS/PvSRGwvg/VttKPrImhwEj7Liu7 7UhtiJIng==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:51762) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1h5BPC-0004dQ-N0; Sat, 16 Mar 2019 15:39:26 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.89) (envelope-from ) id 1h5BOn-00047k-4K; Sat, 16 Mar 2019 15:39:01 +0000 Date: Sat, 16 Mar 2019 15:39:01 +0000 From: Russell King - ARM Linux admin To: Marek Vasut Cc: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= , Tim Harvey , Douglas Anderson , Ulf Hansson , Jaehoon Chung , shawn.lin@rock-chips.com, Adrian Hunter , stefan@agner.ch, Linux MMC List , Brian Norris , Dmitry Torokhov , Heiko Stuebner , Jisheng Zhang , linux-rockchip@lists.infradead.org, devicetree-spec@vger.kernel.org, Mark Rutland , open list , vbyravarasu@nvidia.com, Lars-Peter Clausen , jonathanh@nvidia.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Pawel Moll , Ian Campbell , grundler@chromium.org, Kumar Gala , lporzio@micron.com, Rob Herring , chaotian.jing@mediatek.com, Sergei Shtylyov , sudeep.holla@arm.com, zhonghui.fu@linux.intel.com, kirill.shutemov@linux.intel.com Subject: Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Message-ID: <20190316153900.xqi55awrockovmsi@shell.armlinux.org.uk> References: <1461951139-6109-1-git-send-email-dianders@chromium.org> <1fcd4dad-1e00-67cc-ac5d-24640ae34340@denx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1fcd4dad-1e00-67cc-ac5d-24640ae34340@denx.de> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 16, 2019 at 01:33:58PM +0100, Marek Vasut wrote: > If you have a FS or partition table there, it does. > If you don't, I agree ... that's a problem. eMMC boot partitions are called mmcblkXbootY, and unless you have more than one eMMC device on the system, they can be found either by looking for /dev/mmcblk*boot* or by querying udev. The advantage of using udev is you can discover the physical device behind it by looking at DEVPATH, ID_PATH, etc, but you may not have that installed on an embedded device. However, as I say, just looking for /dev/mmcblk*boot* is sufficient to find the eMMC boot partitions where there is just one eMMC device present (which seems to be the standard setup.) > > I don't care the slightest what the numbering is, as long as it is > > stable. On some hardware, with an unpatched kernel, the mmc device > > numbering changes depending on whether or not an SD card is inserted on > > boot. Getting rid of that behaviour is really all I want. > > Agreed, that would be an improvement. The mmc device numbering was tied to the mmc host numbering a while back and the order that the hosts are probed should be completely independent of whether a card is inserted or not: snprintf(md->disk->disk_name, sizeof(md->disk->disk_name), "mmcblk%u%s", card->host->index, subname ? subname : ""); snprintf(rpmb_name, sizeof(rpmb_name), "mmcblk%u%s", card->host->index, subname ? subname : ""); I suspect that Mans is quoting something from the dim and distant past to confuse the issue - as shown above, it is now dependent on the host numbering order not the order in which cards are inserted. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up