Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp547732pxb; Thu, 19 Nov 2020 07:52:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJxqwNAhmN7mnxeVABDJfN1S8mt2DXi04XtLKArOZp1Ovqmh4QgbtsD7x0dKBZ+w9HF+LVGE X-Received: by 2002:aa7:dc58:: with SMTP id g24mr18610649edu.55.1605801156293; Thu, 19 Nov 2020 07:52:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1605801156; cv=pass; d=google.com; s=arc-20160816; b=P/VDL54bTgvvNUS4SMbIJ7PfcAmrPIoNEzX2XgudcPWvHk0iMvZpoHhZKJwSnyu2sF Uq/Ehqmp4Zv/wmamjKAjSX/JDtfWF/ieJamwYkrF2gdvlRiWQSckkgiHBJF5Uyue0GDb 1BnCf3v3C80urJ4m2QXDiMCBo2LggxtKjV5JNbE+5vIX0neKYyriBuw/tIVLxTxNI6sp 8bGTtuyaF4R4O5GX3t0SiL9IPZOpocLu20cUj3hAzgb9iBkysRobv0yzx742xn1rLQ9P WtJ9FPoNKMtOgj5jD0vKQ8DO6r6CGNERk/YZat6qVJb4Hic70sldZ1NIzlpYlgmaRTWw kmKA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=XKvnFACw6HePI5+XWl5N70lQ8GELU9Xl/CMUrplLAYU=; b=ys3K8fIyki6q6VLkCN2dY22K3oIcj8Cb3fUWjkeFf9yULQPwuo+tQtMHgRZJmV6u8/ Vi+m+ONZc69QZRORtURaJTyA4ct6N8c9HFHoqKzjoaxKesJdSIAdUsXrBFWqctNCYGRr 6c/Nz6iQPPn26d4+XIqpD1U43l0AdKr6PjKApamZzyeLd4CrwBgLex/Bu7TPvgztvo+O Yl8nT70y7Y2FmevE+/z4F1Ll8gEL3zHuaXhevXt6Iq9gd3U28scUXeeiHLhiq5cmuX4t AfVQ8Dbgng3d2Ae7RPkBH/JaREEs7KBLFOckR5AVjWEiHaQcUg1PY0n+e9QNL/XYBDXt +0nQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=n9OG2s6W; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y11si52397edp.494.2020.11.19.07.52.13; Thu, 19 Nov 2020 07:52: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=@nxp.com header.s=selector2 header.b=n9OG2s6W; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728416AbgKSPu4 (ORCPT + 99 others); Thu, 19 Nov 2020 10:50:56 -0500 Received: from mail-am6eur05on2040.outbound.protection.outlook.com ([40.107.22.40]:34529 "EHLO EUR05-AM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727428AbgKSPuz (ORCPT ); Thu, 19 Nov 2020 10:50:55 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RvKMGZ84nSsheJPX+Evft02OP88aeClZOGSi9iMhQFVON3TDkIid596UpyfG40axJjt7hDtj1J5QY4KjwDO3xJ3Q9XSQRY0/hKL4G6F7RJyqFMkP38JDDBT51LQJ7JQeIsIIy3gS9fz/x4yILG6M42VkgQeSi0tZfWdX67QiWId1e/R/Nw1ENOgd2Jj8bPYjmc/Yt4zZrv9m8uiOLfP279+zhsgrQ7FQlff4rXIBoZu/Qd4VTt+T/diWGyekVoYEOQANvVK3ysuJfiS+bdIchRPPzpiMySv8yTaOiAHqSfKAMdy4/NcMwwCBPRl8CRKBKHME1W/CNl1N/vWni6dbCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XKvnFACw6HePI5+XWl5N70lQ8GELU9Xl/CMUrplLAYU=; b=OAXZJuj5WnvPqe6cSaP68LTtowCbxV7dMGCCacj0+ieH9oeUf9nGLN8MapyJ38mhakFiLeG77hfwVrr7HEcE++LogN+JK4raX4lHGjlYNIl90BBaPg8hJq+r5ybf+GBD7GCe35028nCxbwjNbj+JOGQVwERwIhM/qALD5QEt7RBM5XTDsi6bQM+fWq+kEDVU8fyWPcykuPymUIgcms4Rs3ykKZ1gDDTs4QeqvpiqVjVWhv7MMTqKG8duzTaISAnTKovtDgSy4h8DjEKfVURcp8MyRNEtmZacHFF7L+GzdtDYpL2DK8csqReDj2/ESGG86UDNTVFOul0C4xNlZJFylA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XKvnFACw6HePI5+XWl5N70lQ8GELU9Xl/CMUrplLAYU=; b=n9OG2s6WTaYywvRnhyUvb4hy+EZvQBuLpsJXkJhmp5AdF+01YFq33jbBkwtyYxrjGc/CC4GVPgTtHZ4X3XSzqlX8QXKBsIn2qWCPs8F9wVgsJ9s0b6v2rSl7llNrHwfXt2w6xuEgbI4FOpCOhoPDaASFQOpGN2sjlvoIBf5R9xc= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB5696.eurprd04.prod.outlook.com (2603:10a6:803:e7::13) by VI1PR04MB5503.eurprd04.prod.outlook.com (2603:10a6:803:d1::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3589.20; Thu, 19 Nov 2020 15:50:50 +0000 Received: from VI1PR04MB5696.eurprd04.prod.outlook.com ([fe80::2dd6:8dc:2da7:ad84]) by VI1PR04MB5696.eurprd04.prod.outlook.com ([fe80::2dd6:8dc:2da7:ad84%5]) with mapi id 15.20.3589.024; Thu, 19 Nov 2020 15:50:50 +0000 From: Vladimir Oltean To: Shawn Guo , Li Yang , Rob Herring , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Cc: Adrian Hunter , Ulf Hansson , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Ashish Kumar , Yangbo Lu , Michael Walle Subject: [PATCH] arm64: dts: ls1028a: make the eMMC and SD card controllers use fixed indices Date: Thu, 19 Nov 2020 17:50:25 +0200 Message-Id: <20201119155025.965941-1-vladimir.oltean@nxp.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [188.25.2.177] X-ClientProxiedBy: AM0PR01CA0172.eurprd01.prod.exchangelabs.com (2603:10a6:208:aa::41) To VI1PR04MB5696.eurprd04.prod.outlook.com (2603:10a6:803:e7::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (188.25.2.177) by AM0PR01CA0172.eurprd01.prod.exchangelabs.com (2603:10a6:208:aa::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3589.21 via Frontend Transport; Thu, 19 Nov 2020 15:50:49 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: f9fcff52-d3ca-4c5c-a376-08d88ca2e37d X-MS-TrafficTypeDiagnostic: VI1PR04MB5503: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kj4D2M/pleVTXi8uw6UUIrVxT88qAp312Mj58GENZzXqUuU5i3bJGEddal/bQRuWtmHQECfm5xa1e2dsXbfAMHApeA04Cc7HbKr+u4EiAaPNbBTuhrwKeJazLZ7HVHzIo2qSH+JSEbgjuMnJeevpMGVDP5KXpsPBeWDdi8sHJ4L8sxIWnCXx0GMc1/IEsUfy9Vtx5mdij9hkdX17iksZaYhfbUT6O/SzIa0hvoQMYAOD9MGdOHR7F5sFdCFY/4J9vB+Z34beAS5BtburYlkyX6mKhfOk72oeX+r7oxaKBouASJUyP084T6qv7af/Q+2/WsR08+lmrPkjSP/nTmASKg6vc3fbCiHRc9vvoHzFRRZu38mZbY8NM+JdBRTNDvdc X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5696.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(136003)(346002)(376002)(396003)(366004)(39860400002)(5660300002)(52116002)(86362001)(66556008)(66476007)(66946007)(6512007)(6666004)(2906002)(6486002)(36756003)(8936002)(2616005)(956004)(186003)(16526019)(316002)(44832011)(8676002)(1076003)(83380400001)(54906003)(26005)(478600001)(4326008)(6506007)(110136005)(69590400008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 1Y9FyEOJOeq+SWIaYF9L8CrdU9j+XVXWY9uoC3Jk4rCrwLkkD1RzaARJHZJSJRyaDfQ/m6QdVyDtxuZo7x3i03XTQZWa6jv93PzlA+BfbkwY8xxXxn+v9/fTKPkgY0TABHJO/cqmvl5mnhZz1ScuMWJDrUp+Rqvs3z+T5qpOTZ0Mxyr57Du/a7LIxkpJKuaYlhqEDBiwgXHmvvOYlcVPRfTU7rjy7KIvH15cmkzP8sLdK/BSdh/Ro+yWQPFFTpiUwmM4pMEyYihj3iAAVFYqfuYlBoCdH3qDyo77Jz35T1S3IyupQalnKE5YttBQvyymtBI0Ssjr24Rn2+3qJWG9tyCWeFAXGlzwnssuvCFBkcNVN+CILAnGO3ATvro2A1unC/0RaM1/2BnUldyY6acYMVDxCiDP8Ig0NB2fE9BUVT7eIB/sddewLczgnYXjrmZItI2RHi9/L+N6h+tVA3nSSEu0+8f3kM0FJTaSqgJhTqEQpOjJ1IiWhLvVLke98YZTa8ZNT6VYZTvoVyJ8gGc4T6jSH09KV3UfLW6X2MKS2O2xh4rOHjzbKxsHK6ZP9QYsOhPDCuO1WJZoFmMUlYD4mwaf4OClvWZZr7jh8Ei3JJmRA1GY69F9jhlRduKTvdlZs3NQBglbhJ2ErG1RBIOc9A== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f9fcff52-d3ca-4c5c-a376-08d88ca2e37d X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5696.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Nov 2020 15:50:50.4496 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: gr9OURlqzIEORCGUXhbap6FM74j8lErFuypnR3mvYwVcIquFvILD7zP6PIk3/W2GTsbULHtT4+gwEm0U6RE+ZA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5503 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As the boot order in the kernel continues to change, sometimes it may happen that the eSDHC controller mmc@2150000 (the one for eMMC) gets probed before the one at mmc@2140000 (for external SD cards). The effect is that the eMMC controller gets the /dev/mmcblk0 name, and the SD card gets /dev/mmcblk1. Since the introduction of this SoC, that has never happened in practice, even though it was never guaranteed in theory. Setting "root=/dev/mmcblk0p2" in /proc/cmdline has always caused the kernel to use the second partition from the SD card as the rootfs. Preserve that old behavior by adding some aliases which create naming consistency: - the SD card controller uses /dev/mmcblk0 - the eMMC controller uses /dev/mmcblk1 The aliases are parsed by mmc_alloc_host() in drivers/mmc/core/host.c. Cc: Ashish Kumar Cc: Yangbo Lu Cc: Michael Walle Signed-off-by: Vladimir Oltean --- arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28.dts | 2 ++ arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts | 2 ++ arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts | 2 ++ 3 files changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28.dts index 8161dd237971..7d292999f8da 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28.dts @@ -23,6 +23,8 @@ aliases { serial2 = &lpuart1; spi0 = &fspi; spi1 = &dspi2; + mmc0 = &esdhc; + mmc1 = &esdhc1; }; buttons0 { diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts index 13cdc958ba3e..c0786b713791 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts @@ -23,6 +23,8 @@ aliases { gpio2 = &gpio3; serial0 = &duart0; serial1 = &duart1; + mmc0 = &esdhc; + mmc1 = &esdhc1; }; chosen { diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts index 1efb61cff454..c1d1ba459307 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts @@ -19,6 +19,8 @@ aliases { crypto = &crypto; serial0 = &duart0; serial1 = &duart1; + mmc0 = &esdhc; + mmc1 = &esdhc1; }; chosen { -- 2.25.1