* [PATCH] ARM: dts: bcm2711-rpi: Use aliases to set custom MMC device index
@ 2022-06-14 14:12 Ariel D'Alessandro
2022-06-14 20:47 ` Stefan Wahren
0 siblings, 1 reply; 3+ messages in thread
From: Ariel D'Alessandro @ 2022-06-14 14:12 UTC (permalink / raw)
To: krzysztof.kozlowski+dt, nsaenz, robh+dt
Cc: bcm-kernel-feedback-list, devicetree, linux-rpi-kernel,
linux-arm-kernel, linux-kernel, pbrobinson, f.fainelli,
stefan.wahren
Add MMC aliases to ensure that the /dev/mmcblk ID for the first
eMMC/SD card won't change depending on the probe order of the MMC
drivers.
Signed-off-by: Ariel D'Alessandro <ariel.dalessandro@collabora.com>
---
Changes in v2:
* Moved alias from bcm2711-rpi-4-b.dts to bcm2711-rpi.dtsi
arch/arm/boot/dts/bcm2711-rpi.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/boot/dts/bcm2711-rpi.dtsi b/arch/arm/boot/dts/bcm2711-rpi.dtsi
index ca266c5d9f9b..a39b2f68e4cc 100644
--- a/arch/arm/boot/dts/bcm2711-rpi.dtsi
+++ b/arch/arm/boot/dts/bcm2711-rpi.dtsi
@@ -13,6 +13,7 @@ memory@0 {
aliases {
emmc2bus = &emmc2bus;
ethernet0 = &genet;
+ mmc0 = &emmc2; /* mmcblk0 for eMMC/SD */
pcie0 = &pcie0;
blconfig = &blconfig;
};
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: dts: bcm2711-rpi: Use aliases to set custom MMC device index
2022-06-14 14:12 [PATCH] ARM: dts: bcm2711-rpi: Use aliases to set custom MMC device index Ariel D'Alessandro
@ 2022-06-14 20:47 ` Stefan Wahren
2022-06-29 18:44 ` Ariel D'Alessandro
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Wahren @ 2022-06-14 20:47 UTC (permalink / raw)
To: Ariel D'Alessandro, krzysztof.kozlowski+dt, nsaenz, robh+dt
Cc: bcm-kernel-feedback-list, devicetree, linux-rpi-kernel,
linux-arm-kernel, linux-kernel, pbrobinson, f.fainelli
Hi Ariel,
Am 14.06.22 um 16:12 schrieb Ariel D'Alessandro:
> Add MMC aliases to ensure that the /dev/mmcblk ID for the first
> eMMC/SD card won't change depending on the probe order of the MMC
> drivers.
this changes the emmc2 from mmc1 to mmc0 in my case (RPi 4,
multi_v7_defconfig), which i consider as a regression / unexpected
change in userspace.
Could you please explain your actual motivation of your patch?
>
> Signed-off-by: Ariel D'Alessandro <ariel.dalessandro@collabora.com>
> ---
>
> Changes in v2:
> * Moved alias from bcm2711-rpi-4-b.dts to bcm2711-rpi.dtsi
>
> arch/arm/boot/dts/bcm2711-rpi.dtsi | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm/boot/dts/bcm2711-rpi.dtsi b/arch/arm/boot/dts/bcm2711-rpi.dtsi
> index ca266c5d9f9b..a39b2f68e4cc 100644
> --- a/arch/arm/boot/dts/bcm2711-rpi.dtsi
> +++ b/arch/arm/boot/dts/bcm2711-rpi.dtsi
> @@ -13,6 +13,7 @@ memory@0 {
> aliases {
> emmc2bus = &emmc2bus;
> ethernet0 = &genet;
> + mmc0 = &emmc2; /* mmcblk0 for eMMC/SD */
> pcie0 = &pcie0;
> blconfig = &blconfig;
> };
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: dts: bcm2711-rpi: Use aliases to set custom MMC device index
2022-06-14 20:47 ` Stefan Wahren
@ 2022-06-29 18:44 ` Ariel D'Alessandro
0 siblings, 0 replies; 3+ messages in thread
From: Ariel D'Alessandro @ 2022-06-29 18:44 UTC (permalink / raw)
To: Stefan Wahren, krzysztof.kozlowski+dt, nsaenz, robh+dt
Cc: bcm-kernel-feedback-list, devicetree, linux-rpi-kernel,
linux-arm-kernel, linux-kernel, pbrobinson, f.fainelli
Hi Stefan,
Sorry for the delay.
On 6/14/22 17:47, Stefan Wahren wrote:
> Hi Ariel,
>
> Am 14.06.22 um 16:12 schrieb Ariel D'Alessandro:
>> Add MMC aliases to ensure that the /dev/mmcblk ID for the first
>> eMMC/SD card won't change depending on the probe order of the MMC
>> drivers.
>
> this changes the emmc2 from mmc1 to mmc0 in my case (RPi 4,
> multi_v7_defconfig), which i consider as a regression / unexpected
> change in userspace.
>
> Could you please explain your actual motivation of your patch?
That's a good point. The original reason comes from u-boot in fact, I
just sent the patch here as u-boot is syncing the dts files from the kernel.
U-boot uses the same defconfig `configs/rpi_arm64_defconfig` for
different RPi versions, which have different mmcblk ids numbering.
In order to use bootcount support in u-boot, the config option
CONFIG_SYS_BOOTCOUNT_EXT_DEVPART needs to be filled with the fixed
dev/part ids. In general I'd expect mmcblk0 to be eMMC/SD, which is not
in this case, at least for RPi4.
Anyway, this is probably something to be discussed on the u-boot mailing
list, not here.
Thanks,
Ariel
>
>>
>> Signed-off-by: Ariel D'Alessandro <ariel.dalessandro@collabora.com>
>> ---
>>
>> Changes in v2:
>> * Moved alias from bcm2711-rpi-4-b.dts to bcm2711-rpi.dtsi
>>
>> arch/arm/boot/dts/bcm2711-rpi.dtsi | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/arch/arm/boot/dts/bcm2711-rpi.dtsi
>> b/arch/arm/boot/dts/bcm2711-rpi.dtsi
>> index ca266c5d9f9b..a39b2f68e4cc 100644
>> --- a/arch/arm/boot/dts/bcm2711-rpi.dtsi
>> +++ b/arch/arm/boot/dts/bcm2711-rpi.dtsi
>> @@ -13,6 +13,7 @@ memory@0 {
>> aliases {
>> emmc2bus = &emmc2bus;
>> ethernet0 = &genet;
>> + mmc0 = &emmc2; /* mmcblk0 for eMMC/SD */
>> pcie0 = &pcie0;
>> blconfig = &blconfig;
>> };
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-06-29 18:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-14 14:12 [PATCH] ARM: dts: bcm2711-rpi: Use aliases to set custom MMC device index Ariel D'Alessandro
2022-06-14 20:47 ` Stefan Wahren
2022-06-29 18:44 ` Ariel D'Alessandro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).