diff mbox series

[1/3] ARM: dts: qcom: msm8974-oneplus-bacon: Add alias for mmc0

Message ID 20250419-msm8974-mmc-alias-v1-1-82aa131224b6@lucaweiss.eu (mailing list archive)
State New
Headers show
Series Add devicetree aliases for mmc on multiple MSM8974 devices | expand

Commit Message

Luca Weiss April 19, 2025, 9:03 a.m. UTC
Add an alias for the internal storage so it always becomes mmcblk0.

Signed-off-by: Luca Weiss <luca@lucaweiss.eu>
---
 arch/arm/boot/dts/qcom/qcom-msm8974pro-oneplus-bacon.dts | 1 +
 1 file changed, 1 insertion(+)

Comments

Bjorn Andersson April 20, 2025, 5:05 p.m. UTC | #1
On Sat, Apr 19, 2025 at 11:03:57AM +0200, Luca Weiss wrote:
> Add an alias for the internal storage so it always becomes mmcblk0.
> 

https://docs.kernel.org/process/submitting-patches.html#describe-your-changes
calls for a problem description to start your commit message. Sometimes
the problem is obvious, but here &sdhc_2 is disable on this board, so
when does this not become mmcblk0? What is the problem you're solving?

Regards,
Bjorn

> Signed-off-by: Luca Weiss <luca@lucaweiss.eu>
> ---
>  arch/arm/boot/dts/qcom/qcom-msm8974pro-oneplus-bacon.dts | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/boot/dts/qcom/qcom-msm8974pro-oneplus-bacon.dts b/arch/arm/boot/dts/qcom/qcom-msm8974pro-oneplus-bacon.dts
> index 4c8edadea0ac63db668dbd666fbb8d92e23232b7..88ff6535477bffefe475cc5fe927b3cc5d223084 100644
> --- a/arch/arm/boot/dts/qcom/qcom-msm8974pro-oneplus-bacon.dts
> +++ b/arch/arm/boot/dts/qcom/qcom-msm8974pro-oneplus-bacon.dts
> @@ -13,6 +13,7 @@ / {
>  	qcom,board-id = <8 0>;
>  
>  	aliases {
> +		mmc0 = &sdhc_1;
>  		serial0 = &blsp1_uart2;
>  	};
>  
> 
> -- 
> 2.49.0
>
Luca Weiss April 20, 2025, 5:14 p.m. UTC | #2
Hi Bjorn,

On 20-04-2025 7:05 p.m., Bjorn Andersson wrote:
> On Sat, Apr 19, 2025 at 11:03:57AM +0200, Luca Weiss wrote:
>> Add an alias for the internal storage so it always becomes mmcblk0.
>>
> 
> https://docs.kernel.org/process/submitting-patches.html#describe-your-changes
> calls for a problem description to start your commit message. Sometimes
> the problem is obvious, but here &sdhc_2 is disable on this board, so
> when does this not become mmcblk0? What is the problem you're solving?

I have really seen internal storage become mmcblk1 on one of these 
devices with no SD card. I can't recall which one anymore, but this was 
the main idea why I wrote these patches. Maybe it's something to do with 
the mmc wifi on some of the boards?

But I think it's not a bad idea to make this explicit for all, and align 
the boards with each other.

Regards
Luca

> 
> Regards,
> Bjorn
> 
>> Signed-off-by: Luca Weiss <luca@lucaweiss.eu>
>> ---
>>   arch/arm/boot/dts/qcom/qcom-msm8974pro-oneplus-bacon.dts | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/arch/arm/boot/dts/qcom/qcom-msm8974pro-oneplus-bacon.dts b/arch/arm/boot/dts/qcom/qcom-msm8974pro-oneplus-bacon.dts
>> index 4c8edadea0ac63db668dbd666fbb8d92e23232b7..88ff6535477bffefe475cc5fe927b3cc5d223084 100644
>> --- a/arch/arm/boot/dts/qcom/qcom-msm8974pro-oneplus-bacon.dts
>> +++ b/arch/arm/boot/dts/qcom/qcom-msm8974pro-oneplus-bacon.dts
>> @@ -13,6 +13,7 @@ / {
>>   	qcom,board-id = <8 0>;
>>   
>>   	aliases {
>> +		mmc0 = &sdhc_1;
>>   		serial0 = &blsp1_uart2;
>>   	};
>>   
>>
>> -- 
>> 2.49.0
>>
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/qcom/qcom-msm8974pro-oneplus-bacon.dts b/arch/arm/boot/dts/qcom/qcom-msm8974pro-oneplus-bacon.dts
index 4c8edadea0ac63db668dbd666fbb8d92e23232b7..88ff6535477bffefe475cc5fe927b3cc5d223084 100644
--- a/arch/arm/boot/dts/qcom/qcom-msm8974pro-oneplus-bacon.dts
+++ b/arch/arm/boot/dts/qcom/qcom-msm8974pro-oneplus-bacon.dts
@@ -13,6 +13,7 @@  / {
 	qcom,board-id = <8 0>;
 
 	aliases {
+		mmc0 = &sdhc_1;
 		serial0 = &blsp1_uart2;
 	};