From patchwork Mon Apr 19 02:52:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 424145 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=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT 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 4D43EC433ED for ; Mon, 19 Apr 2021 02:52:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1733361165 for ; Mon, 19 Apr 2021 02:52:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233179AbhDSCxT (ORCPT ); Sun, 18 Apr 2021 22:53:19 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:35159 "EHLO wout5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232753AbhDSCxT (ORCPT ); Sun, 18 Apr 2021 22:53:19 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 6B7A022D7; Sun, 18 Apr 2021 22:52:49 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sun, 18 Apr 2021 22:52:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm2; bh=ZeiZcL85HOddD F8hJ3Ac4p0YAseVuX3icv/oC5/libA=; b=IfXeLUQjI++WyB97XxMg0zD5FTPZn D6xGZ5sj0rLya0lZVJL/Fd6Ajkpq3aw5RqJm6ziqunFM6soRIHglbX1EXfu+97wZ hVbSC/xkcH47jy666emERnl2FpEFWU2Br9vSOPgpKVqfvFJbsQVQQ5qMmlZP/xyv udzLJ9SbHsPNay3By4txqQMwcwGReltxDGfGWw+sieU47aNvd5+yca125UCvqc+L 78I+/Al/gyYmVIzZJ6/YBLqccTxpCTo7D+vL6vWoqFF9YL/qlR0nDfXFvlPkIE2v KyIMoPi/LgYYCmQ8lrwuTsE/Ctw0XjolpeKNKwI7PthKVn52LuVnoZ5bg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=ZeiZcL85HOddDF8hJ3Ac4p0YAseVuX3icv/oC5/libA=; b=dH0P8swG /Y85HhFnNPwY2nsGvEXtm00dobqP2zNMefWyxFF17/tgdFO+dygS3mEiT5VO4U+M G2Lc5cfBw1pdPD20DZ/nDe/U3imq7H0J3qpjuPa15GhV/Lsn93q2bsGgl/KMhsVr 8zLXB1HLrG6adwyjKb3yVhWk2S6QGA5i7xhGq10Jn5UpE7k4dMvKdxGjB2abwLdM THOFO9UA/Q+sP1A5J2fDx4rHPuvhNdf+ifiDRlyz4jf4aLSrg7UP1nkQ/qrZTit0 6bkSXKjMdCdopuyN3HfvOc+Us9KUSVpqG6LUT7/GBbjw2sUA9Cev2S1ylGvgREbp 7NDJ0GyRZzIObg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvddtvddgleekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgv lhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtf frrghtthgvrhhnpeduhfejfedvhffgfeehtefghfeiiefgfeehgfdvvdevfeegjeehjedv gfejheeuieenucfkphepjedtrddufeehrddugeekrdduhedunecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepshgrmhhuvghlsehshhholhhlrghn ugdrohhrgh X-ME-Proxy: Received: from titanium.stl.sholland.net (70-135-148-151.lightspeed.stlsmo.sbcglobal.net [70.135.148.151]) by mail.messagingengine.com (Postfix) with ESMTPA id B02BC24005C; Sun, 18 Apr 2021 22:52:47 -0400 (EDT) From: Samuel Holland To: Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Samuel Holland Subject: [PATCH 1/2] ARM: dts: sunxi: h3/h5: Enforce consistent MMC numbering Date: Sun, 18 Apr 2021 21:52:45 -0500 Message-Id: <20210419025246.21722-2-samuel@sholland.org> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20210419025246.21722-1-samuel@sholland.org> References: <20210419025246.21722-1-samuel@sholland.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Traditionally, the sunxi-mmc device numbers matched the register address order. However, that was broken by asynchronous probe, and now the MMC device numbers are not deterministic. Add aliases to keep the device numbers consistent between boots. Use the traditional order, since there is no need to change it. Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi b/arch/arm/boot/dts/sunxi-h3-h5.dtsi index e27399aa052c..1cb669c835bd 100644 --- a/arch/arm/boot/dts/sunxi-h3-h5.dtsi +++ b/arch/arm/boot/dts/sunxi-h3-h5.dtsi @@ -53,6 +53,12 @@ / { #address-cells = <1>; #size-cells = <1>; + aliases { + mmc0 = &mmc0; + mmc1 = &mmc1; + mmc2 = &mmc2; + }; + chosen { #address-cells = <1>; #size-cells = <1>;