From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C0158C433DB for ; Wed, 3 Feb 2021 10:01:43 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 727BB64DD4 for ; Wed, 3 Feb 2021 10:01:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 727BB64DD4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=cerno.tech Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject: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-Owner; bh=KHrlOR8S6gjTItA4vNRSvNp8iuh5YHs9pbuEl70d0zo=; b=CXxWh1cLE3Y3I+bFB6aU9fVPV E3YsaW7oKvWNFR52elnNz3JIMcGnc/No+0nPseJWvyG/zd40Y0N0PriIZ1ALr7k2R1cqd+TxmQX4j IAB1+tTHrSZBKH/7a03Jg+GUlIkLZjDH/lLbVU+q3nUe4uJFWm3clZs/+esM9SSNmnszEDxzNGcGw 5t71l4oOqaixU+bW9PvpvbUwHB97t1KIk0qbqwS0l4Y+VrHJllawreWCDVuxpa72U9s9MymeROGS5 S6+LG1xnzXRSX+PK7e5XTMvH7OgmJH/Bc7AN7p8p5t9cOMPoRRL+mL9bIjxfLcrXwx3f9sK7noMOr mde31o+Zg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l7Exa-0007yY-6k; Wed, 03 Feb 2021 10:00:30 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l7ExX-0007y4-Os for linux-arm-kernel@lists.infradead.org; Wed, 03 Feb 2021 10:00:28 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 720CD9EB; Wed, 3 Feb 2021 05:00:23 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 03 Feb 2021 05:00:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=E4L+1XtSxc+gT8WxAB2fGZI5P2p /OpnyQE0/QGStu7g=; b=hDWYE1Gq3os6DJAQF4sbe61SZ2UMAbwoPLS1E9Gz7Px Wgz+oCxb0ykLKvvIXAt/mKKrql8usbXTYH8kReiHQeZFbMDlrdtzd4wLsU76KlT5 KYV/4V/hdsrmeL2eiQBZK1iDDE6wLUzEb9yjuUPXAyR5PcljllQt/JzBXVEHlTZS iIw3HJLyiehdf6xW5KJwnW6SrKYE5If1gxXQz07JGO2L7tNwNKmoVOJ7x8p2KDUT rq5henA4XBEK1v6xVXoOzuiBgCRAC0n78ySA8fKM8CC+9R2LY98ZmPCa1Lrs0djK yU20o67UWSlJy8SaQZHzoCcuyC6oLftpiGbcCcR3NsQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=E4L+1X tSxc+gT8WxAB2fGZI5P2p/OpnyQE0/QGStu7g=; b=g1R5qbUYkKD87+uoVhfBPH TNmwuFe1ZNn7lpn9vBxE26c9I6534TjYk1wTm2T/Ij36DUo2Py8chm2Gyh0moY7R xybSuRmSj1HayiVCwy/IcUqTuIUhNAnrP+H7k/wj+ku4xR7ndYLJZ9bvpObQkszc 9GHsX8HnG9rJmQsKAbLCBati0MFZr7zJ/fU0NtBHnhSWGZNGuAunGCayaKI26Ja3 e5sRrVRKTAV23PWX+ne1o24nTHNDeXRAWn9kY7pidIZiKhvPqBWzQ7JRYhTD4/54 prwd4vEa1wdu6+wsugIc+btvBxE1DktmkBUjf6hoElLSGWp9St9LmitetYIs6QsA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrgedvgddutdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtth gvrhhnpeelkeeghefhuddtleejgfeljeffheffgfeijefhgfeufefhtdevteegheeiheeg udenucfkphepledtrdekledrieekrdejieenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id 8F448240064; Wed, 3 Feb 2021 05:00:21 -0500 (EST) Date: Wed, 3 Feb 2021 11:00:19 +0100 From: Maxime Ripard To: Chen-Yu Tsai Subject: Re: [PATCH 1/1] ARM: dts: orange-pi-zero-plus2: use fixed mmc indexes Message-ID: <20210203100019.sdlb6rxfoxl45b2h@gilmour> References: <20210127054620.510912-1-geomatsi@gmail.com> <20210203092912.s3wm3y5hfptwirqy@gilmour> MIME-Version: 1.0 In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210203_050027_918429_5355621F X-CRM114-Status: GOOD ( 24.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree , Jernej Skrabec , linux-arm-kernel , Sergey Matyukevich Content-Type: multipart/mixed; boundary="===============0136260968530050148==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============0136260968530050148== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5r7f2yelcaek4r7g" Content-Disposition: inline --5r7f2yelcaek4r7g Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 03, 2021 at 05:36:58PM +0800, Chen-Yu Tsai wrote: > On Wed, Feb 3, 2021 at 5:29 PM Maxime Ripard wrote: > > > > Hi, > > > > On Wed, Jan 27, 2021 at 08:46:20AM +0300, Sergey Matyukevich wrote: > > > Driver sunxi-mmc has recently been switched to asynchronous probe. > > > As a result, mmc indexes can be shuffled breaking existing setups > > > where UUIDs are not used for boot devices. Pin mmc indexes to keep > > > running the systems where fixed MMC or eMMC are specified, > > > e.g. root=3D/dev/mmcblk0p2. > > > > > > Signed-off-by: Sergey Matyukevich > > > > I'm not sure, really. > > > > That would change the indices once again, and you shouldn't really rely > > on them anyway, there's never been any guarantee on the order of any > > device. >=20 > I assume one reason people want stable MMC indices is for setting the > root device. This could be done with UUID or PARTUUID. PARTLABEL is also an option > Another would be setting the LED trigger to some MMC device, > preferably in the DT so it kicks in when the LED device is created. > Though even that isn't guaranteed since the MMC could probe after the > LED. :( >=20 > Currently I'm using some shell script to parse the root device then > get the device name and program that as an LED trigger through sysfs. Surely a udev / mdev rule can help there? > > And whatever the outcome of that discussion, it definitely shouldn't be > > done for a single board. >=20 > I believe this should be done at the SoC level so we would have consistent > MMC indices across the board. However that seems to conflict with the ord= er > swap we currently have in U-boot to support eMMCs seamlessly. I'm not sure we can do it at the SoC level anyway: if only the emmc is enabled, we want it to be mmcblk0 Maxime --5r7f2yelcaek4r7g Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYBp0MwAKCRDj7w1vZxhR xbYzAQC+kPJQLAHljopX1M1FmPdSALG1ao9tWSrmU72OkCniDAD/Sj3OpCouLCMb oKHAvxtXkZlg1+o2DMaS9gPVGS5e5Qs= =SF4k -----END PGP SIGNATURE----- --5r7f2yelcaek4r7g-- --===============0136260968530050148== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============0136260968530050148==--