RE: [PATCH v3] arm64: dts: renesas: Add mmc aliases into board dts files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Geert-san,

> From: Yoshihiro Shimoda, Sent: Friday, February 26, 2021 10:02 AM
> > From: Geert Uytterhoeven, Sent: Thursday, February 25, 2021 9:47 PM
> > On Thu, Feb 25, 2021 at 1:16 PM Yoshihiro Shimoda
> > <yoshihiro.shimoda.uh@xxxxxxxxxxx> wrote:
> > > --- a/arch/arm64/boot/dts/renesas/salvator-common.dtsi
> > > +++ b/arch/arm64/boot/dts/renesas/salvator-common.dtsi
> > > @@ -36,6 +36,9 @@
> > >                 serial0 = &scif2;
> > >                 serial1 = &hscif1;
> > >                 ethernet0 = &avb;
> > > +               mmc0 = &sdhi0;
> > > +               mmc1 = &sdhi2;
> > > +               mmc2 = &sdhi3;
> > >         };
> >
> > Looks like on Salvator-X(S) the two SD card slots are labeled
> > SD0 and SD3, so the last one should be mmc3?
> >
> > What's most important? Getting the naming right, or matching the
> > traditional naming?
> 
> Most important is stable these mmcblkN naming for using it on
> the "root=" parameter :)
> 
> I don't have a strong opinion though, IMO, matching the traditional naming
> is better than board labeled because:
> - we don't need to add any alias into a board dts if the board is using one
>   sdhi/eMMC only like r8a77995-draak.dts.
> - also, the traditional naming is familiar to us.

I'm afraid about changing my mind. But, may I use eMMC channel as mmc0?
This mean that I'd like to change the aliases as below.

+               mmc0 = &sdhi2;
+               mmc1 = &sdhi0;
+               mmc2 = &sdhi3;

This is because it's easy to imagine mmcblk0 as eMMC
and super old kernels (v5.4 or or earlier) were probed as mmcblk0
so that we can use "root=/dev/mmcblk0pN" on the kernel parameter.

Best regards,
Yoshihiro Shimoda





[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux