Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1201901pxb; Wed, 10 Feb 2021 02:41:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJxQ24LwgNG5LL0X8IwCovRGfTDzL9thQ62Kv/gaWMywjyfVaD1VTBi7X6mX+16rgTwNY2dX X-Received: by 2002:a50:9d0b:: with SMTP id v11mr2590845ede.308.1612953681446; Wed, 10 Feb 2021 02:41:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612953681; cv=none; d=google.com; s=arc-20160816; b=Sc1cg5+yjO5/2RtBVQkRRD/xy+zmVE6We/JFbF1kPXDuccAMM7dXdBAYSpjkpNghoi wYNaSmiOKM0Yznn9R2vdAI2/7v7O2dYPsoZ4e2XOD/j3JeYfUtTlCn1pjPk1Do9WYTEi pmPAV10cnPNRwJaaxcLGhkFIVz4zGkYrbk5igt/cAyoG9EmxV7KfpfipTZp+Xe9NrjBl iTsFf+ssdR0AOAJPlQe1ojccyhf0fG3Q7LzSDcZpCKwosM7RETl7UB1jEW6W1NsbyFc4 TUrGrmnahn9m6/GYn9BjJmBCQW5NaNj56RAQ3Dc2CBVgoow0Gy5YKYY4N8uSDKT/zY+C frUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=bn0SylWgfHTtD0H+P288yYrIrxxxszIwj4JVqwmfyAg=; b=iZ1oaMI2cKDDuusSQWtPDAJxSh4lhqidaMRGid9sj2dHFQ/78X1ADF/X4igdmn0HpN o4wYlkYQpY791OQ1ggw91OKvP+cPQ/gJVjwqYmQHAFqxQOXzL41P4pi/kreTiJslXCYM YvunGH5Mgw0Uf3nP4dM087ylE66fd0hBxtPAb4gvO4SKAJYeSdbYEMbJoqvWCgkvQAJE vNy6cOnJkz6kWejk6Wsx2ONaSU9NqRFgPVnPJPNUxt1DDOI8bM7zkDsIQIrgyiXx6wyt bQs1Rvbksd7tu2ITbaTQE6SdTQCGzsinJjMIzJsbmA7ghaLAG3klXL9hPVqrWz3V0iOp WbJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ApRSEIX4; 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 g22si980760ejr.383.2021.02.10.02.40.57; Wed, 10 Feb 2021 02:41:21 -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=ApRSEIX4; 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 S230382AbhBJKiw (ORCPT + 99 others); Wed, 10 Feb 2021 05:38:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:48738 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231309AbhBJKfk (ORCPT ); Wed, 10 Feb 2021 05:35:40 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 10F2464E2E; Wed, 10 Feb 2021 10:34:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612953299; bh=1K3KbJuoIq4iabQNHnrRpJS5tQ/x2No+KUluIejW7Pc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ApRSEIX4DkcNosi6JBGhym3f3lE2MS1mNHWiTHA43HBP6CLiaWmEjOlifUANJD5rp FS/4DRsT5eGNrRcGCZwMZnrkDHLnV1VDTUymPsIDMlQbrchGt9XDUndQxw5ijJ/9c7 csiS+CJ3kpBOikFl2+YIcbeEQqavukH9b4GJEWdij+70tvMW3FIvgshdDO3gYqRiyY vAKeHMpOnhiJ/XBkpd2ms0K99MhrJwokEtaOneVfP0fvZItQP2TXkFduEvYvZiJnVL 1F7xExOHZWIb8w7TllVj2sjCOunc/H5X3Rd/OEgy4EZUTglLK12VtSVI7uMvc9RKGp sNSco52+2x9Zw== Received: by mail-oi1-f171.google.com with SMTP id r75so1449354oie.11; Wed, 10 Feb 2021 02:34:59 -0800 (PST) X-Gm-Message-State: AOAM531kOore39SPczvcIj+Y48Nj6ppud2it45uDO/ZraRFHJF4noEIx 5sEX5pG/CxPf8eS48VIYRMv0mbfHQIhXO0sAW0k= X-Received: by 2002:aca:e103:: with SMTP id y3mr1528656oig.11.1612953298253; Wed, 10 Feb 2021 02:34:58 -0800 (PST) MIME-Version: 1.0 References: <20210118155242.7172-1-jbx6244@gmail.com> <20210118155242.7172-2-jbx6244@gmail.com> <6598201.ejJDZkT8p0@diego> In-Reply-To: <6598201.ejJDZkT8p0@diego> From: Arnd Bergmann Date: Wed, 10 Feb 2021 11:34:41 +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: =?UTF-8?Q?Heiko_St=C3=BCbner?= Cc: Johan Jonker , Rob Herring , "open list:ARM/Rockchip SoC support" , DTML , Linux ARM , "linux-kernel@vger.kernel.org" , Robin Murphy Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 10, 2021 at 12:50 AM Heiko St=C3=BCbner wrote= : > Am Dienstag, 9. Februar 2021, 23:25:40 CET schrieb Arnd Bergmann: > > Hmm, right now I don't see the disadvantage of missing mmc numbers. It's inconsistent with the normal use of these aliases across other platforms. > As similarly we count i2c and serial numbers for a long time, even though > not all of them appear on every board. Yes, that is a similar mistake. > Especially as the main goal is to simply have stable numbers and > not having the mmc devices swap numbers on every boot. > > So right now we're not using them from a userspace POV but > instead agreed on following the address ordering of the soc. > so when ordering mmc controllers by their io-address, mmc0 > is the first one, then mmc1, etc. > > So just for my understanding, what is different for mmc? > I guess to guarantee ongoing numbering similar to sd{a,b,c,...} > Or should all aliases be duplicted in each board dts and not > live in any soc dtsi? Each board should have its own aliases node that describes exactly which of the devices are wired up on that board, and in which order. If there are connectors on the board that are labeled in some form, then the aliases are meant to match what is written on the board or in its documentation. Arnd