]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: renesas: Add mmc aliases into board dts files
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Mon, 1 Mar 2021 11:06:26 +0000 (20:06 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 08:49:35 +0000 (10:49 +0200)
[ Upstream commit d765a4f302cc046ca23453ba990d21120ceadbbd ]

After the commit 7320915c8861 ("mmc: Set PROBE_PREFER_ASYNCHRONOUS
for drivers that existed in v4.14"), the order of /dev/mmcblkN
was not fixed in some SoCs which have multiple sdhi controllers.
So, we were hard to use an sdhi device as rootfs by using
the kernel parameter like "root=/dev/mmcblkNpM".

According to the discussion on a mainling list [1], we can add
mmc aliases to fix the issue. So, add such aliases into Renesas
arm64 board dts files. Notes that mmc0 is an eMMC channel if
available.

[1]
https://lore.kernel.org/linux-arm-kernel/CAPDyKFptyEQNJu8cqzMt2WRFZcwEdjDiytMBp96nkoZyprTgmA@mail.gmail.com/

Fixes: 7320915c8861 ("mmc: Set PROBE_PREFER_ASYNCHRONOUS for drivers that existed in v4.14")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/1614596786-22326-1-git-send-email-yoshihiro.shimoda.uh@renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm64/boot/dts/renesas/hihope-common.dtsi
arch/arm64/boot/dts/renesas/r8a774a1-beacon-rzg2m-kit.dts
arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts
arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts
arch/arm64/boot/dts/renesas/salvator-common.dtsi
arch/arm64/boot/dts/renesas/ulcb-kf.dtsi
arch/arm64/boot/dts/renesas/ulcb.dtsi

index 2eda9f66ae81d8ff6b1bc4b8fbff68dd9bc0f912..e8bf6f0c4c4009c37fb40e8fe52590343508e0c6 100644 (file)
@@ -12,6 +12,9 @@
        aliases {
                serial0 = &scif2;
                serial1 = &hscif0;
+               mmc0 = &sdhi3;
+               mmc1 = &sdhi0;
+               mmc2 = &sdhi2;
        };
 
        chosen {
index 2c5b057c30c62ee5c101b8ac56d174046a2584f4..ad26f5bf0648de8d7bfaaa5dfffab427eb44199d 100644 (file)
@@ -21,6 +21,9 @@
                serial4 = &hscif2;
                serial5 = &scif5;
                ethernet0 = &avb;
+               mmc0 = &sdhi3;
+               mmc1 = &sdhi0;
+               mmc2 = &sdhi2;
        };
 
        chosen {
index ea87cb5a459c89b307b0362dd07c70f68905828c..33257c6440b2cb33f837611d71156d4399c3f912 100644 (file)
@@ -17,6 +17,8 @@
        aliases {
                serial0 = &scif2;
                serial1 = &hscif2;
+               mmc0 = &sdhi0;
+               mmc1 = &sdhi3;
        };
 
        chosen {
index e0ccca2222d2d00c23bc354d3f1ae37dc70fadcf..b9e3b6762ff42dde8f41c0d97fe22daa6ae4fef0 100644 (file)
@@ -16,6 +16,9 @@
        aliases {
                serial0 = &scif2;
                ethernet0 = &avb;
+               mmc0 = &sdhi3;
+               mmc1 = &sdhi0;
+               mmc2 = &sdhi1;
        };
 
        chosen {
index 6c643ed74fc586bb0ebd7e6207eb1487b4dd3966..ee82fcb7192d2a2c36b8774161df162d208fcb01 100644 (file)
@@ -36,6 +36,9 @@
                serial0 = &scif2;
                serial1 = &hscif1;
                ethernet0 = &avb;
+               mmc0 = &sdhi2;
+               mmc1 = &sdhi0;
+               mmc2 = &sdhi3;
        };
 
        chosen {
index e9ed2597f1c20621bc562f4d718b1fdda98ea88e..61bd4df09df0da9ab92926c022f8aaa963e54f08 100644 (file)
@@ -16,6 +16,7 @@
        aliases {
                serial1 = &hscif0;
                serial2 = &scif1;
+               mmc2 = &sdhi3;
        };
 
        clksndsel: clksndsel {
index 8f8d7371d8e24a11503816c7827963ddd253c479..e69e136d767a54b894d6f385d4991d258c8c6c80 100644 (file)
@@ -23,6 +23,8 @@
        aliases {
                serial0 = &scif2;
                ethernet0 = &avb;
+               mmc0 = &sdhi2;
+               mmc1 = &sdhi0;
        };
 
        chosen {