Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp934122pxb; Tue, 9 Feb 2021 17:11:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJw6GmasH77FDmqexPXhbZlC+FacTKqHezZnAIcQacrhZRlfgGrg6IwqseLD1Q5kM8ON4FK2 X-Received: by 2002:a17:907:d86:: with SMTP id go6mr407190ejc.337.1612919496542; Tue, 09 Feb 2021 17:11:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612919496; cv=none; d=google.com; s=arc-20160816; b=W3h053EdXc373QXbJ1p5619c9mIjW6ZNl4fbzGlL476X9Mi+qbgzqg25Xzj+EzOCAc /hHJySJJPPQ0PjbAv5agiCGzypBn5LUlr8L2L0vI6C14f206WZ245L+CUFglThMv1VKh TKnvkDJZ3SqP4az3vhB1bbtNzRsPcCG03oaBgDcZEA+oKv4D5TQ22FMMBA+/OXTREQBp 9BEim5RcjUL/CC7SDKs8kZs0PSdCVFsM7haJEY7cyyHXmFKUpoEauJLn+8JCaLEOGG3T FMFclQnXQfSjDAwSfiVVlMkLeWpqQvhGl8nfTyc+AxzXrUZ6yMDVTr1VbqlapYKj92YO QF9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=upT4OTIHMSiy4liDR17oruA5W/6n03HLvf9aYt9XymI=; b=HCqDG6FaVI74LYTk//MLhuxTb+AzyzdHlMYkQbXTixqE9yfsgWsrKbzoxmbaz7fyu3 Fzh3hWY+fvrhGTmYldrFvSZvhG1zbYyu9zjlZPN9dbI31kKqmtFW0svz20ciHLeW8lP5 a3EoVpdXjFbZcp2jyrUj/4EfpnbK/ZGKU/fZxJZWOgMFKaYl/o032CrshEI/4BkRlDMC p3WWLwM0XNNv+av4ycoEBfLNy5qaALyAWyR6KPYfqwOOnN9T2ZWjvErrxJuRtB0+oPBa LKfGQEcUjwlIOmbN1q0OyUuJAjvsrMIWWV+oYh9RXHXW2DK74q3HPH26jyh2sJWqgqk0 X3qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CkRLsGOl; 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 cs10si216038ejc.200.2021.02.09.17.11.12; Tue, 09 Feb 2021 17:11:36 -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=k20201202 header.b=CkRLsGOl; 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 S234686AbhBJBKP (ORCPT + 99 others); Tue, 9 Feb 2021 20:10:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:58140 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234429AbhBIW1n (ORCPT ); Tue, 9 Feb 2021 17:27:43 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1CD7764E7E; Tue, 9 Feb 2021 22:25:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612909557; bh=nw/ggB5jzR4hpWOSjGu1T6DGUn4f/TcXu5vrKIAECdE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=CkRLsGOlFRPALIbg9/QTofurAP7gdziEAZNjlF4+9qYK9AZfVJ6LH17Y1uajqGAGa 292m7F97yZocwCj6yK9Z5Nj7JEiFa5Sm7q9aMNpwmQWtbwSOYXQ1RXJkwUtGjtZ66u H4LJXF+vmX4QnCPmrhPwsZQBUHgLjGBLFvtqVXTjPLF6zEaRzhoDA3Q9A4gFrRTH/g wkCdKQ30/e12eWoAwVoCcqqTFfcgkbbPFR6OWqAhb2UkCKP/geRjTc54zBtizWPk8K rUbkL8YUeQS+dr/wluoyyXy7HnTNQBu4jO/e7D293KJ2nWcBAMfxkjo172iHv7phAI my1k0yqoZnVWw== Received: by mail-oi1-f182.google.com with SMTP id h6so21210505oie.5; Tue, 09 Feb 2021 14:25:57 -0800 (PST) X-Gm-Message-State: AOAM53202Y77G0mTdmM0dLFPBKjT7w7vOYW9pt93YnC56/1kMm+R5BZK 7N+fmT1G7KjJdrxR+ZrLeMTiNxV6Z5quiJrH940= X-Received: by 2002:aca:d908:: with SMTP id q8mr3778046oig.67.1612909556361; Tue, 09 Feb 2021 14:25:56 -0800 (PST) MIME-Version: 1.0 References: <20210118155242.7172-1-jbx6244@gmail.com> <20210118155242.7172-2-jbx6244@gmail.com> In-Reply-To: <20210118155242.7172-2-jbx6244@gmail.com> From: Arnd Bergmann Date: Tue, 9 Feb 2021 23:25:40 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/5] ARM: dts: rockchip: assign a fixed index to mmc devices on rv1108 boards To: Johan Jonker Cc: Heiko Stuebner , Rob Herring , "open list:ARM/Rockchip SoC support" , DTML , Linux ARM , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 18, 2021 at 4:52 PM Johan Jonker wrote: > > Recently introduced async probe on mmc devices can shuffle block IDs. > Pin them to fixed values to ease booting in environments where UUIDs are > not practical. Use newly introduced aliases for mmcblk devices from [1]. > The sort order is based on reg address. > > [1] https://patchwork.kernel.org/patch/11747669/ I just saw this in the pull request: > Signed-off-by: Johan Jonker > --- > arch/arm/boot/dts/rv1108.dtsi | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/arm/boot/dts/rv1108.dtsi b/arch/arm/boot/dts/rv1108.dtsi > index bec47e0be..a754851f4 100644 > --- a/arch/arm/boot/dts/rv1108.dtsi > +++ b/arch/arm/boot/dts/rv1108.dtsi > @@ -19,6 +19,9 @@ > i2c1 = &i2c1; > i2c2 = &i2c2; > i2c3 = &i2c3; > + mmc0 = &emmc; > + mmc1 = &sdio; > + mmc2 = &sdmmc; > serial0 = &uart0; > serial1 = &uart1; > serial2 = &uart2; Please don't put these aliases into a .dtsi file, as not every board will provide each instance. The entire point of the aliases is to have sane enumeration, so you should start at index 0 for the first one that is actually present and count up from there. I would suggest you move these aliases into the .dts files for the existing boards for the next cycle, and then make sure only the ones that are present have an alias. It might actually be a good idea to have a warning in dtc when there is an alias pointing to a status="disabled" device, but I suspect there would be a lot of fallout from that. Arnd