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

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

From: Giulio Benetti <giulio.benetti@benettiengineering.com>
Date: 2026-01-14 17:53:57
Also in: linux-arm-kernel, linux-sunxi, lkml

On 1/14/26 15:07, Chen-Yu Tsai wrote:
On Wed, Jan 14, 2026 at 6:50 PM Giulio Benetti
[off-list ref] wrote:
quoted
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.
quoted
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.
I see, thank you for taking care.

Best regards
Giulio
ChenYu
quoted
  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