[PATCH] ARM: dts: sun7i: a20: fix MMC index enumeration
Giulio Benetti
giulio.benetti at benettiengineering.com
Wed Jan 14 09:50:56 PST 2026
On 1/14/26 15:07, Chen-Yu Tsai wrote:
> On Wed, Jan 14, 2026 at 6:50 PM Giulio Benetti
> <giulio.benetti at benettiengineering.com> 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 at 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
>
>> 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
>>
>>
More information about the linux-arm-kernel
mailing list