diff mbox series

ARM: dts: imx6dl-yapp4: Use aliases to set custom MMC device indexes

Message ID 1619790795-8375-1-git-send-email-michal.vokac@ysoft.com
State Accepted
Commit d178918891a1ed09711ac33ff93f7710be137826
Headers show
Series ARM: dts: imx6dl-yapp4: Use aliases to set custom MMC device indexes | expand

Commit Message

Michal Vokáč April 30, 2021, 1:53 p.m. UTC
Until commit fa2d0aa96941 ("mmc: core: Allow setting slot index via
device tree alias") was introduced, our usdhc3 and usdhc4 devices
were enumerated as mmc0 and mmc1. The mmc1 device is used to boot/update
the board and its name must be fixed.

With the referenced commit, aliases from imx6qdl.dtsi took effect.
Override the aliases to get back the original device indexes.

Signed-off-by: Michal Vokáč <michal.vokac@ysoft.com>
---
 arch/arm/boot/dts/imx6dl-yapp4-common.dtsi | 2 ++
 1 file changed, 2 insertions(+)

Comments

Shawn Guo May 23, 2021, 2:02 a.m. UTC | #1
On Fri, Apr 30, 2021 at 03:53:15PM +0200, Michal Vokáč wrote:
> Until commit fa2d0aa96941 ("mmc: core: Allow setting slot index via

> device tree alias") was introduced, our usdhc3 and usdhc4 devices

> were enumerated as mmc0 and mmc1. The mmc1 device is used to boot/update

> the board and its name must be fixed.

> 

> With the referenced commit, aliases from imx6qdl.dtsi took effect.

> Override the aliases to get back the original device indexes.

> 

> Signed-off-by: Michal Vokáč <michal.vokac@ysoft.com>


Applied, thanks.
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/imx6dl-yapp4-common.dtsi b/arch/arm/boot/dts/imx6dl-yapp4-common.dtsi
index 686dab57a1e4..ff8d335ee482 100644
--- a/arch/arm/boot/dts/imx6dl-yapp4-common.dtsi
+++ b/arch/arm/boot/dts/imx6dl-yapp4-common.dtsi
@@ -11,6 +11,8 @@ 
 	aliases: aliases {
 		ethernet1 = &eth1;
 		ethernet2 = &eth2;
+		mmc0 = &usdhc3;
+		mmc1 = &usdhc4;
 	};
 
 	backlight: backlight {