diff mbox series

[v2,1/4] arm64: dts: ti: k3-am65: Flip mmc device ordering

Message ID 0dce149347353556e38a0bdf9a9489ffc9cf66d2.1631032682.git.jan.kiszka@siemens.com
State New
Headers show
Series [v2,1/4] arm64: dts: ti: k3-am65: Flip mmc device ordering | expand

Commit Message

Jan Kiszka Sept. 7, 2021, 4:37 p.m. UTC
From: Jan Kiszka <jan.kiszka@siemens.com>

This ensures that the SD card will remain mmc0 across devices with and
without eMMC.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 arch/arm64/boot/dts/ti/k3-am65.dtsi | 2 ++
 1 file changed, 2 insertions(+)

Comments

Nishanth Menon Sept. 8, 2021, 2:44 a.m. UTC | #1
On 18:37-20210907, Jan Kiszka wrote:
> From: Jan Kiszka <jan.kiszka@siemens.com>

> 

> This ensures that the SD card will remain mmc0 across devices with and

> without eMMC.

> 

> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>

> ---

>  arch/arm64/boot/dts/ti/k3-am65.dtsi | 2 ++

>  1 file changed, 2 insertions(+)

> 

> diff --git a/arch/arm64/boot/dts/ti/k3-am65.dtsi b/arch/arm64/boot/dts/ti/k3-am65.dtsi

> index a9fc1af03f27..785d931a2dd9 100644

> --- a/arch/arm64/boot/dts/ti/k3-am65.dtsi

> +++ b/arch/arm64/boot/dts/ti/k3-am65.dtsi

> @@ -31,6 +31,8 @@ aliases {

>  		i2c4 = &main_i2c2;

>  		i2c5 = &main_i2c3;

>  		ethernet0 = &cpsw_port1;

> +		mmc0 = &sdhci1;

> +		mmc1 = &sdhci0;


Jan,

Responding in context of [1]. Suggestion from Aswath is to do the
following instead at SoC level:
+		mmc0 = &sdhci0;
+		mmc1 = &sdhci1;

>  	};

>  

>  	chosen { };

> -- 

> 2.31.1

> 

[1] https://lore.kernel.org/all/4cb6e76e-479f-5e06-778a-4788be53afb9@siemens.com/
-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
Jan Kiszka Sept. 8, 2021, 5:25 a.m. UTC | #2
On 08.09.21 04:44, Nishanth Menon wrote:
> On 18:37-20210907, Jan Kiszka wrote:

>> From: Jan Kiszka <jan.kiszka@siemens.com>

>>

>> This ensures that the SD card will remain mmc0 across devices with and

>> without eMMC.

>>

>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>

>> ---

>>  arch/arm64/boot/dts/ti/k3-am65.dtsi | 2 ++

>>  1 file changed, 2 insertions(+)

>>

>> diff --git a/arch/arm64/boot/dts/ti/k3-am65.dtsi b/arch/arm64/boot/dts/ti/k3-am65.dtsi

>> index a9fc1af03f27..785d931a2dd9 100644

>> --- a/arch/arm64/boot/dts/ti/k3-am65.dtsi

>> +++ b/arch/arm64/boot/dts/ti/k3-am65.dtsi

>> @@ -31,6 +31,8 @@ aliases {

>>  		i2c4 = &main_i2c2;

>>  		i2c5 = &main_i2c3;

>>  		ethernet0 = &cpsw_port1;

>> +		mmc0 = &sdhci1;

>> +		mmc1 = &sdhci0;

> 

> Jan,

> 

> Responding in context of [1]. Suggestion from Aswath is to do the

> following instead at SoC level:

> +		mmc0 = &sdhci0;

> +		mmc1 = &sdhci1;

> 


Then I will leave this up to you and will go back to v1 of this patch
(as we require it the other way around).

Jan

>>  	};

>>  

>>  	chosen { };

>> -- 

>> 2.31.1

>>

> [1] https://lore.kernel.org/all/4cb6e76e-479f-5e06-778a-4788be53afb9@siemens.com/

> 


-- 
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux
Nishanth Menon Sept. 8, 2021, 5:48 a.m. UTC | #3
On 07:25-20210908, Jan Kiszka wrote:
> On 08.09.21 04:44, Nishanth Menon wrote:

> > On 18:37-20210907, Jan Kiszka wrote:

> >> From: Jan Kiszka <jan.kiszka@siemens.com>

> >>

> >> This ensures that the SD card will remain mmc0 across devices with and

> >> without eMMC.

> >>

> >> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>

> >> ---

> >>  arch/arm64/boot/dts/ti/k3-am65.dtsi | 2 ++

> >>  1 file changed, 2 insertions(+)

> >>

> >> diff --git a/arch/arm64/boot/dts/ti/k3-am65.dtsi b/arch/arm64/boot/dts/ti/k3-am65.dtsi

> >> index a9fc1af03f27..785d931a2dd9 100644

> >> --- a/arch/arm64/boot/dts/ti/k3-am65.dtsi

> >> +++ b/arch/arm64/boot/dts/ti/k3-am65.dtsi

> >> @@ -31,6 +31,8 @@ aliases {

> >>  		i2c4 = &main_i2c2;

> >>  		i2c5 = &main_i2c3;

> >>  		ethernet0 = &cpsw_port1;

> >> +		mmc0 = &sdhci1;

> >> +		mmc1 = &sdhci0;

> > 

> > Jan,

> > 

> > Responding in context of [1]. Suggestion from Aswath is to do the

> > following instead at SoC level:

> > +		mmc0 = &sdhci0;

> > +		mmc1 = &sdhci1;

> > 

> 

> Then I will leave this up to you and will go back to v1 of this patch

> (as we require it the other way around).


Could you elaborate on the rationale as to why the other way around?
That would probably provide the reasoning to override the SoC generic
definitions in the board dts/dtsi as the exception case.

-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
Jan Kiszka Sept. 8, 2021, 6:06 a.m. UTC | #4
On 08.09.21 07:48, Nishanth Menon wrote:
> On 07:25-20210908, Jan Kiszka wrote:

>> On 08.09.21 04:44, Nishanth Menon wrote:

>>> On 18:37-20210907, Jan Kiszka wrote:

>>>> From: Jan Kiszka <jan.kiszka@siemens.com>

>>>>

>>>> This ensures that the SD card will remain mmc0 across devices with and

>>>> without eMMC.

>>>>

>>>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>

>>>> ---

>>>>  arch/arm64/boot/dts/ti/k3-am65.dtsi | 2 ++

>>>>  1 file changed, 2 insertions(+)

>>>>

>>>> diff --git a/arch/arm64/boot/dts/ti/k3-am65.dtsi b/arch/arm64/boot/dts/ti/k3-am65.dtsi

>>>> index a9fc1af03f27..785d931a2dd9 100644

>>>> --- a/arch/arm64/boot/dts/ti/k3-am65.dtsi

>>>> +++ b/arch/arm64/boot/dts/ti/k3-am65.dtsi

>>>> @@ -31,6 +31,8 @@ aliases {

>>>>  		i2c4 = &main_i2c2;

>>>>  		i2c5 = &main_i2c3;

>>>>  		ethernet0 = &cpsw_port1;

>>>> +		mmc0 = &sdhci1;

>>>> +		mmc1 = &sdhci0;

>>>

>>> Jan,

>>>

>>> Responding in context of [1]. Suggestion from Aswath is to do the

>>> following instead at SoC level:

>>> +		mmc0 = &sdhci0;

>>> +		mmc1 = &sdhci1;

>>>

>>

>> Then I will leave this up to you and will go back to v1 of this patch

>> (as we require it the other way around).

> 

> Could you elaborate on the rationale as to why the other way around?

> That would probably provide the reasoning to override the SoC generic

> definitions in the board dts/dtsi as the exception case.

> 


As I wrote in v1: We have deployed devices that use mmcblk0 == SD card
in the field. Those should now be migrated to upstream kernel/DT, but
ideally without glitches in the interface.

Jan

-- 
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/ti/k3-am65.dtsi b/arch/arm64/boot/dts/ti/k3-am65.dtsi
index a9fc1af03f27..785d931a2dd9 100644
--- a/arch/arm64/boot/dts/ti/k3-am65.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am65.dtsi
@@ -31,6 +31,8 @@  aliases {
 		i2c4 = &main_i2c2;
 		i2c5 = &main_i2c3;
 		ethernet0 = &cpsw_port1;
+		mmc0 = &sdhci1;
+		mmc1 = &sdhci0;
 	};
 
 	chosen { };