Thread (5 messages) 5 messages, 3 authors, 2026-01-14

Re: [PATCH] ARM: dts: sun7i: a20: fix MMC index enumeration

From: Chen-Yu Tsai <wens@kernel.org>
Date: 2026-01-14 14:07:29
Also in: linux-devicetree, linux-sunxi, lkml

On Wed, Jan 14, 2026 at 6:50 PM Giulio Benetti
[off-list ref] wrote:
Currently, the OLinuXino-A20-Micro experiences non-deterministic MMC
enumeration during boot. When both an SDIO WiFi module (MMC1) and
an SD card (MMC0) are present, the kernel may swap their indices.

Explicitly define mmc* aliases to ensure consistent device naming
and prevent mapping conflicts.
Years ago we (sunxi maintainers) decided against this.
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
 arch/arm/boot/dts/allwinner/sun7i-a20.dtsi | 4 ++++
And aliases are per board, so this definitely doesn't belong here.


ChenYu
quoted hunk ↗ jump to hunk
 1 file changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts/allwinner/sun7i-a20.dtsi b/arch/arm/boot/dts/allwinner/sun7i-a20.dtsi
index 5f44f09c5545..a958400bcd7c 100644
--- a/arch/arm/boot/dts/allwinner/sun7i-a20.dtsi
+++ b/arch/arm/boot/dts/allwinner/sun7i-a20.dtsi
@@ -55,6 +55,10 @@ / {
        #size-cells = <1>;

        aliases {
+               mmc0 = &mmc0;
+               mmc1 = &mmc1;
+               mmc2 = &mmc2;
+               mmc3 = &mmc3;
                ethernet0 = &gmac;
        };

--
2.47.3
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help