[PATCH 1/1] arm64: dts: meson: g12b: odroid-n2: Assign a fixed index to mmc devices

Neil Armstrong narmstrong at baylibre.com
Fri Jan 29 03:07:45 EST 2021


Hi,

On 28/01/2021 00:08, Alexander Stein wrote:
> Recently introduced async probe on mmc devices can shuffle block IDs.
> Pin them to fixed values to ease booting in environments where UUIDs
> are not practical. Use newly introduced aliases for mmcblk devices from [1].
> [1]
> https://patchwork.kernel.org/patch/11747669/

I understand the goal, and this should be done for _all_ boards, not only the Odroid-N2.

Neil

> 
> Commit message taken from commit 0011c6d18277 ("arm64: dts: rockchip: Assign a fixed index to mmc devices on rk3399 boards.")
> 
> Signed-off-by: Alexander Stein <alexander.stein at mailbox.org>
> ---
> I was wondering which order I should use. Depending in your booting
> medium (SD card or eMMC) you 'want' one or the other as mmc0.
> In the end I ordered them according to the names.
> 
>  arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi
> index 050862cd0996..2faa4da917c1 100644
> --- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi
> +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi
> @@ -13,6 +13,8 @@ / {
>  	aliases {
>  		serial0 = &uart_AO;
>  		ethernet0 = ðmac;
> +		mmc0 = &sd_emmc_b;
> +		mmc1 = &sd_emmc_c;
>  	};
>  
>  	dioo2133: audio-amplifier-0 {
> 




More information about the linux-amlogic mailing list