* [PATCH] dt-bindings: mmc: move compatible property to its specific binding
@ 2024-12-19 4:10 Dharma Balasubiramani
2024-12-19 20:11 ` Conor Dooley
0 siblings, 1 reply; 10+ messages in thread
From: Dharma Balasubiramani @ 2024-12-19 4:10 UTC (permalink / raw)
To: Ulf Hansson, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Neil Armstrong, Kevin Hilman, Jerome Brunet, Martin Blumenstingl
Cc: linux-mmc, devicetree, linux-arm-kernel, linux-amlogic,
linux-kernel, Dharma Balasubiramani
Move the `compatible` property into its specific binding to make the MMC
slot more generic and modular.
Signed-off-by: Dharma Balasubiramani <dharma.b@microchip.com>
---
Documentation/devicetree/bindings/mmc/amlogic,meson-mx-sdio.yaml | 4 ++++
Documentation/devicetree/bindings/mmc/mmc-slot.yaml | 7 +------
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/Documentation/devicetree/bindings/mmc/amlogic,meson-mx-sdio.yaml b/Documentation/devicetree/bindings/mmc/amlogic,meson-mx-sdio.yaml
index 022682a977c6..7600a4988eca 100644
--- a/Documentation/devicetree/bindings/mmc/amlogic,meson-mx-sdio.yaml
+++ b/Documentation/devicetree/bindings/mmc/amlogic,meson-mx-sdio.yaml
@@ -54,6 +54,10 @@ patternProperties:
A node for each slot provided by the MMC controller
properties:
+ compatible:
+ items:
+ - const: mmc-slot
+
reg:
enum: [0, 1, 2]
diff --git a/Documentation/devicetree/bindings/mmc/mmc-slot.yaml b/Documentation/devicetree/bindings/mmc/mmc-slot.yaml
index 1f0667828063..84c4605658e0 100644
--- a/Documentation/devicetree/bindings/mmc/mmc-slot.yaml
+++ b/Documentation/devicetree/bindings/mmc/mmc-slot.yaml
@@ -20,19 +20,15 @@ properties:
$nodename:
pattern: "^slot(@.*)?$"
- compatible:
- const: mmc-slot
-
reg:
description:
the slot (or "port") ID
maxItems: 1
required:
- - compatible
- reg
-unevaluatedProperties: false
+additionalProperties: true
examples:
- |
@@ -40,7 +36,6 @@ examples:
#address-cells = <1>;
#size-cells = <0>;
slot@0 {
- compatible = "mmc-slot";
reg = <0>;
bus-width = <4>;
};
---
base-commit: 7fa366f1b6e376c38966faa42da7f0f2e013fdab
change-id: 20241219-mmc-slot-0574889daea3
Best regards,
--
Dharma Balasubiramani <dharma.b@microchip.com>
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH] dt-bindings: mmc: move compatible property to its specific binding
2024-12-19 4:10 [PATCH] dt-bindings: mmc: move compatible property to its specific binding Dharma Balasubiramani
@ 2024-12-19 20:11 ` Conor Dooley
2025-01-07 3:34 ` Dharma.B
0 siblings, 1 reply; 10+ messages in thread
From: Conor Dooley @ 2024-12-19 20:11 UTC (permalink / raw)
To: Dharma Balasubiramani
Cc: Ulf Hansson, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Neil Armstrong, Kevin Hilman, Jerome Brunet, Martin Blumenstingl,
linux-mmc, devicetree, linux-arm-kernel, linux-amlogic,
linux-kernel
[-- Attachment #1: Type: text/plain, Size: 2430 bytes --]
On Thu, Dec 19, 2024 at 09:40:41AM +0530, Dharma Balasubiramani wrote:
> Move the `compatible` property into its specific binding to make the MMC
> slot more generic and modular.
This makes no sense, as presented. What's the real reason for this
change? You want to ref mmc-slot.yaml but the compatible is causing a
driver to probe?
Otherwise, if this is just to avoid having to fix up some devicetree
source files, I don't think we should do this.
Thanks,
Conor.
>
> Signed-off-by: Dharma Balasubiramani <dharma.b@microchip.com>
> ---
> Documentation/devicetree/bindings/mmc/amlogic,meson-mx-sdio.yaml | 4 ++++
> Documentation/devicetree/bindings/mmc/mmc-slot.yaml | 7 +------
> 2 files changed, 5 insertions(+), 6 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/mmc/amlogic,meson-mx-sdio.yaml b/Documentation/devicetree/bindings/mmc/amlogic,meson-mx-sdio.yaml
> index 022682a977c6..7600a4988eca 100644
> --- a/Documentation/devicetree/bindings/mmc/amlogic,meson-mx-sdio.yaml
> +++ b/Documentation/devicetree/bindings/mmc/amlogic,meson-mx-sdio.yaml
> @@ -54,6 +54,10 @@ patternProperties:
> A node for each slot provided by the MMC controller
>
> properties:
> + compatible:
> + items:
> + - const: mmc-slot
> +
> reg:
> enum: [0, 1, 2]
>
> diff --git a/Documentation/devicetree/bindings/mmc/mmc-slot.yaml b/Documentation/devicetree/bindings/mmc/mmc-slot.yaml
> index 1f0667828063..84c4605658e0 100644
> --- a/Documentation/devicetree/bindings/mmc/mmc-slot.yaml
> +++ b/Documentation/devicetree/bindings/mmc/mmc-slot.yaml
> @@ -20,19 +20,15 @@ properties:
> $nodename:
> pattern: "^slot(@.*)?$"
>
> - compatible:
> - const: mmc-slot
> -
> reg:
> description:
> the slot (or "port") ID
> maxItems: 1
>
> required:
> - - compatible
> - reg
>
> -unevaluatedProperties: false
> +additionalProperties: true
>
> examples:
> - |
> @@ -40,7 +36,6 @@ examples:
> #address-cells = <1>;
> #size-cells = <0>;
> slot@0 {
> - compatible = "mmc-slot";
> reg = <0>;
> bus-width = <4>;
> };
>
> ---
> base-commit: 7fa366f1b6e376c38966faa42da7f0f2e013fdab
> change-id: 20241219-mmc-slot-0574889daea3
>
> Best regards,
> --
> Dharma Balasubiramani <dharma.b@microchip.com>
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] dt-bindings: mmc: move compatible property to its specific binding
2024-12-19 20:11 ` Conor Dooley
@ 2025-01-07 3:34 ` Dharma.B
2025-01-07 20:34 ` Martin Blumenstingl
0 siblings, 1 reply; 10+ messages in thread
From: Dharma.B @ 2025-01-07 3:34 UTC (permalink / raw)
To: conor
Cc: ulf.hansson, robh, krzk+dt, conor+dt, neil.armstrong, khilman,
jbrunet, martin.blumenstingl, linux-mmc, devicetree,
linux-arm-kernel, linux-amlogic, linux-kernel
On 20/12/24 1:41 am, Conor Dooley wrote:
> On Thu, Dec 19, 2024 at 09:40:41AM +0530, Dharma Balasubiramani wrote:
>> Move the `compatible` property into its specific binding to make the MMC
>> slot more generic and modular.
> This makes no sense, as presented. What's the real reason for this
> change? You want to ref mmc-slot.yaml but the compatible is causing a
> driver to probe?
We don’t have the configuration for that driver enabled. Wouldn’t
including the compatible in the DTS files without the actual driver be
redundant?
Is it the correct approach to add the compatible just to fix the dt
binding errors?
related discussion:
https://lore.kernel.org/lkml/63473475-f29e-4a65-a0aa-1f1e4112b57d@microchip.com/
> Otherwise, if this is just to avoid having to fix up some devicetree
> source files, I don't think we should do this.
>
> Thanks,
> Conor.
>
>> Signed-off-by: Dharma Balasubiramani<dharma.b@microchip.com>
>> ---
>> Documentation/devicetree/bindings/mmc/amlogic,meson-mx-sdio.yaml | 4 ++++
>> Documentation/devicetree/bindings/mmc/mmc-slot.yaml | 7 +------
>> 2 files changed, 5 insertions(+), 6 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/mmc/amlogic,meson-mx-sdio.yaml b/Documentation/devicetree/bindings/mmc/amlogic,meson-mx-sdio.yaml
>> index 022682a977c6..7600a4988eca 100644
>> --- a/Documentation/devicetree/bindings/mmc/amlogic,meson-mx-sdio.yaml
>> +++ b/Documentation/devicetree/bindings/mmc/amlogic,meson-mx-sdio.yaml
>> @@ -54,6 +54,10 @@ patternProperties:
>> A node for each slot provided by the MMC controller
>>
>> properties:
>> + compatible:
>> + items:
>> + - const: mmc-slot
>> +
>> reg:
>> enum: [0, 1, 2]
>>
>> diff --git a/Documentation/devicetree/bindings/mmc/mmc-slot.yaml b/Documentation/devicetree/bindings/mmc/mmc-slot.yaml
>> index 1f0667828063..84c4605658e0 100644
>> --- a/Documentation/devicetree/bindings/mmc/mmc-slot.yaml
>> +++ b/Documentation/devicetree/bindings/mmc/mmc-slot.yaml
>> @@ -20,19 +20,15 @@ properties:
>> $nodename:
>> pattern:"^slot(@.*)?$"
>>
>> - compatible:
>> - const: mmc-slot
>> -
>> reg:
>> description:
>> the slot (or "port") ID
>> maxItems: 1
>>
>> required:
>> - - compatible
>> - reg
>>
>> -unevaluatedProperties: false
>> +additionalProperties: true
>>
>> examples:
>> - |
>> @@ -40,7 +36,6 @@ examples:
>> #address-cells = <1>;
>> #size-cells = <0>;
>> slot@0 {
>> - compatible = "mmc-slot";
>> reg = <0>;
>> bus-width = <4>;
>> };
>>
>> ---
>> base-commit: 7fa366f1b6e376c38966faa42da7f0f2e013fdab
>> change-id: 20241219-mmc-slot-0574889daea3
>>
>> Best regards,
>> --
>> Dharma Balasubiramani<dharma.b@microchip.com>
--
With Best Regards,
Dharma B.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] dt-bindings: mmc: move compatible property to its specific binding
2025-01-07 3:34 ` Dharma.B
@ 2025-01-07 20:34 ` Martin Blumenstingl
2025-01-08 3:11 ` Dharma.B
0 siblings, 1 reply; 10+ messages in thread
From: Martin Blumenstingl @ 2025-01-07 20:34 UTC (permalink / raw)
To: Dharma.B
Cc: conor, ulf.hansson, robh, krzk+dt, conor+dt, neil.armstrong,
khilman, jbrunet, linux-mmc, devicetree, linux-arm-kernel,
linux-amlogic, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 2139 bytes --]
Hi Dharma,
On Tue, Jan 7, 2025 at 4:34 AM <Dharma.B@microchip.com> wrote:
>
> On 20/12/24 1:41 am, Conor Dooley wrote:
> > On Thu, Dec 19, 2024 at 09:40:41AM +0530, Dharma Balasubiramani wrote:
> >> Move the `compatible` property into its specific binding to make the MMC
> >> slot more generic and modular.
> > This makes no sense, as presented. What's the real reason for this
> > change? You want to ref mmc-slot.yaml but the compatible is causing a
> > driver to probe?
>
> We don’t have the configuration for that driver enabled. Wouldn’t
> including the compatible in the DTS files without the actual driver be
> redundant?
>
> Is it the correct approach to add the compatible just to fix the dt
> binding errors?
Let me try to summarize what I understand so far:
- your are trying to convert the dt-binding of atmel-hsmci from .txt to .yaml
- while doing so Rob asked to reference the mmc-slot schema
- after referencing the mmc-slot schema you now get warnings in when
validating the .dts because your .dts doesn't specify compatible =
"mmc-slot"
Is that correct?
There aren't many MMC controllers with multiple slot support out there.
When I wrote the dt-bindings for amlogic,meson-mx-sdio I *think* (it's
been some years) Ulf pointed out another dt-binding
(Documentation/devicetree/bindings/mmc/cavium-mmc.txt) and driver
(drivers/mmc/host/cavium-thunderx.c) that already used the mmc-slot
compatible string.
> related discussion:
> https://lore.kernel.org/lkml/63473475-f29e-4a65-a0aa-1f1e4112b57d@microchip.com/
Rob has suggested two approaches in that thread:
- don't mark the "compatible" property as required (in
Documentation/devicetree/bindings/mmc/mmc-slot.yaml)
- add the compatible string where needed (I attached a diff with an
example where I picked one random Atmel board and added the compatible
string)
Your patch is different from these suggestions as it forbids the
compatible property in the generic mmc-slot binding.
What's the problem with Rob's suggestions? If they cannot be
implemented then please document why that is.
Best regards,
Martin
[-- Attachment #2: add-compatible-string-example.diff --]
[-- Type: text/x-patch, Size: 489 bytes --]
diff --git a/arch/arm/boot/dts/microchip/at91sam9n12ek.dts b/arch/arm/boot/dts/microchip/at91sam9n12ek.dts
index 643c3b2ab97e..a27fcef28df5 100644
--- a/arch/arm/boot/dts/microchip/at91sam9n12ek.dts
+++ b/arch/arm/boot/dts/microchip/at91sam9n12ek.dts
@@ -80,6 +80,7 @@ &pinctrl_mmc0_slot0_clk_cmd_dat0
&pinctrl_mmc0_slot0_dat1_3>;
status = "okay";
slot@0 {
+ compatible = "mmc-slot";
reg = <0>;
bus-width = <4>;
cd-gpios = <&pioA 7 GPIO_ACTIVE_HIGH>;
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH] dt-bindings: mmc: move compatible property to its specific binding
2025-01-07 20:34 ` Martin Blumenstingl
@ 2025-01-08 3:11 ` Dharma.B
2025-01-08 20:56 ` Martin Blumenstingl
0 siblings, 1 reply; 10+ messages in thread
From: Dharma.B @ 2025-01-08 3:11 UTC (permalink / raw)
To: martin.blumenstingl
Cc: conor, ulf.hansson, robh, krzk+dt, conor+dt, neil.armstrong,
khilman, jbrunet, linux-mmc, devicetree, linux-arm-kernel,
linux-amlogic, linux-kernel
Hi Martin,
On 08/01/25 2:04 am, Martin Blumenstingl wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> Hi Dharma,
>
> On Tue, Jan 7, 2025 at 4:34 AM <Dharma.B@microchip.com> wrote:
>>
>> On 20/12/24 1:41 am, Conor Dooley wrote:
>>> On Thu, Dec 19, 2024 at 09:40:41AM +0530, Dharma Balasubiramani wrote:
>>>> Move the `compatible` property into its specific binding to make the MMC
>>>> slot more generic and modular.
>>> This makes no sense, as presented. What's the real reason for this
>>> change? You want to ref mmc-slot.yaml but the compatible is causing a
>>> driver to probe?
>>
>> We don’t have the configuration for that driver enabled. Wouldn’t
>> including the compatible in the DTS files without the actual driver be
>> redundant?
>>
>> Is it the correct approach to add the compatible just to fix the dt
>> binding errors?
> Let me try to summarize what I understand so far:
> - your are trying to convert the dt-binding of atmel-hsmci from .txt to .yaml
> - while doing so Rob asked to reference the mmc-slot schema
> - after referencing the mmc-slot schema you now get warnings in when
> validating the .dts because your .dts doesn't specify compatible =
> "mmc-slot"
>
> Is that correct?
Yes.
>
> There aren't many MMC controllers with multiple slot support out there.
> When I wrote the dt-bindings for amlogic,meson-mx-sdio I *think* (it's
> been some years) Ulf pointed out another dt-binding
> (Documentation/devicetree/bindings/mmc/cavium-mmc.txt) and driver
> (drivers/mmc/host/cavium-thunderx.c) that already used the mmc-slot
> compatible string.
>
>> related discussion:
>> https://lore.kernel.org/lkml/63473475-f29e-4a65-a0aa-1f1e4112b57d@microchip.com/
> Rob has suggested two approaches in that thread:
> - don't mark the "compatible" property as required (in
> Documentation/devicetree/bindings/mmc/mmc-slot.yaml)
> - add the compatible string where needed (I attached a diff with an
> example where I picked one random Atmel board and added the compatible
> string)
>
> Your patch is different from these suggestions as it forbids the
> compatible property in the generic mmc-slot binding.
> What's the problem with Rob's suggestions? If they cannot be
> implemented then please document why that is.
Thanks for the comprehensive explanation.
I misinterpreted the Rob's suggestion [1].
"One issue is 'compatible' is required. Either that would have to be
dropped as required."
Instead of just dropping it from "required:", I removed the property
itself and moved it to another binding.
I will send a v2 by removing it from the required, will it be fine?
>
>
> Best regards,
> Martin
--
With Best Regards,
Dharma B.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] dt-bindings: mmc: move compatible property to its specific binding
2025-01-08 3:11 ` Dharma.B
@ 2025-01-08 20:56 ` Martin Blumenstingl
2025-01-20 4:30 ` Dharma.B
0 siblings, 1 reply; 10+ messages in thread
From: Martin Blumenstingl @ 2025-01-08 20:56 UTC (permalink / raw)
To: Dharma.B
Cc: conor, ulf.hansson, robh, krzk+dt, conor+dt, neil.armstrong,
khilman, jbrunet, linux-mmc, devicetree, linux-arm-kernel,
linux-amlogic, linux-kernel
Hi Dharma,
On Wed, Jan 8, 2025 at 4:11 AM <Dharma.B@microchip.com> wrote:
[...]
> "One issue is 'compatible' is required. Either that would have to be
> dropped as required."
>
> Instead of just dropping it from "required:", I removed the property
> itself and moved it to another binding.
>
> I will send a v2 by removing it from the required, will it be fine?
For me this is fine.
My understanding is that if we drop the compatible property completely
then any compatible string will be allowed (for example: compatible =
"random,name"). This is because mmc-slot.yaml inherits the properties
from mmc-controller-common.yaml which itself has
"additionalProperties: true".
However, if we allow it but make it optional it means that there's
only two valid states:
- no compatible property (on the Atmel / Microchip SoCs)
- a compatible property with the value "mmc-slot" (as used on Amlogic
Meson and Cavium Thunder SoCs)
- (anything else is considered invalid)
Rob, Conor: can confirm this or correct me wherever I got something wrong.
I hope that your feedback will help Dharma write a good patch
description for v2.
Best regards,
Martin
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] dt-bindings: mmc: move compatible property to its specific binding
2025-01-08 20:56 ` Martin Blumenstingl
@ 2025-01-20 4:30 ` Dharma.B
2025-02-04 4:24 ` Dharma.B
0 siblings, 1 reply; 10+ messages in thread
From: Dharma.B @ 2025-01-20 4:30 UTC (permalink / raw)
To: robh, conor
Cc: ulf.hansson, krzk+dt, conor+dt, neil.armstrong, khilman, jbrunet,
linux-mmc, devicetree, linux-arm-kernel, linux-amlogic,
linux-kernel, martin.blumenstingl
Hi Rob/Conor,
On 09/01/25 2:26 am, Martin Blumenstingl wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> Hi Dharma,
>
> On Wed, Jan 8, 2025 at 4:11 AM <Dharma.B@microchip.com> wrote:
> [...]
>> "One issue is 'compatible' is required. Either that would have to be
>> dropped as required."
>>
>> Instead of just dropping it from "required:", I removed the property
>> itself and moved it to another binding.
>>
>> I will send a v2 by removing it from the required, will it be fine?
> For me this is fine.
>
> My understanding is that if we drop the compatible property completely
> then any compatible string will be allowed (for example: compatible =
> "random,name"). This is because mmc-slot.yaml inherits the properties
> from mmc-controller-common.yaml which itself has
> "additionalProperties: true".
> However, if we allow it but make it optional it means that there's
> only two valid states:
> - no compatible property (on the Atmel / Microchip SoCs)
> - a compatible property with the value "mmc-slot" (as used on Amlogic
> Meson and Cavium Thunder SoCs)
> - (anything else is considered invalid)
>
> Rob, Conor: can confirm this or correct me wherever I got something wrong.
> I hope that your feedback will help Dharma write a good patch
> description for v2.
Shall I proceed with v2 by dropping the compatible from the required
property list?
>
>
> Best regards,
> Martin
>
--
With Best Regards,
Dharma B.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] dt-bindings: mmc: move compatible property to its specific binding
2025-01-20 4:30 ` Dharma.B
@ 2025-02-04 4:24 ` Dharma.B
2025-02-04 8:14 ` neil.armstrong
0 siblings, 1 reply; 10+ messages in thread
From: Dharma.B @ 2025-02-04 4:24 UTC (permalink / raw)
To: robh, conor
Cc: ulf.hansson, krzk+dt, conor+dt, neil.armstrong, khilman, jbrunet,
linux-mmc, devicetree, linux-arm-kernel, linux-amlogic,
linux-kernel, martin.blumenstingl
Rob / Conor,
On 20/01/25 10:00 am, Dharma B wrote:
> Hi Rob/Conor,
>
> On 09/01/25 2:26 am, Martin Blumenstingl wrote:
>> EXTERNAL EMAIL: Do not click links or open attachments unless you know
>> the content is safe
>>
>> Hi Dharma,
>>
>> On Wed, Jan 8, 2025 at 4:11 AM <Dharma.B@microchip.com> wrote:
>> [...]
>>> "One issue is 'compatible' is required. Either that would have to be
>>> dropped as required."
>>>
>>> Instead of just dropping it from "required:", I removed the property
>>> itself and moved it to another binding.
>>>
>>> I will send a v2 by removing it from the required, will it be fine?
>> For me this is fine.
>>
>> My understanding is that if we drop the compatible property completely
>> then any compatible string will be allowed (for example: compatible =
>> "random,name"). This is because mmc-slot.yaml inherits the properties
>> from mmc-controller-common.yaml which itself has
>> "additionalProperties: true".
>> However, if we allow it but make it optional it means that there's
>> only two valid states:
>> - no compatible property (on the Atmel / Microchip SoCs)
>> - a compatible property with the value "mmc-slot" (as used on Amlogic
>> Meson and Cavium Thunder SoCs)
>> - (anything else is considered invalid)
>>
>> Rob, Conor: can confirm this or correct me wherever I got something
>> wrong.
>> I hope that your feedback will help Dharma write a good patch
>> description for v2.
>
> Shall I proceed with v2 by dropping the compatible from the required
> property list?
I hope this email finds you well. Just following up on my previous
message from 20/01/25, as it seems to have achieved an impressive
feat—perfect stealth mode. Either my patch is so flawless that it left
everyone speechless, or it has been silently sacrificed to the inbox
gods. 😅
If there are any concerns, feedback, or a secret ritual I need to
perform to get a response, please do let me know. Would love to hear
your thoughts when time permits.
Looking forward to breaking the radio silence!
>
>>
>>
>> Best regards,
>> Martin
>>
>
>
--
With Best Regards,
Dharma B.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] dt-bindings: mmc: move compatible property to its specific binding
2025-02-04 4:24 ` Dharma.B
@ 2025-02-04 8:14 ` neil.armstrong
2025-02-05 3:49 ` Dharma.B
0 siblings, 1 reply; 10+ messages in thread
From: neil.armstrong @ 2025-02-04 8:14 UTC (permalink / raw)
To: Dharma.B, robh, conor
Cc: ulf.hansson, krzk+dt, conor+dt, khilman, jbrunet, linux-mmc,
devicetree, linux-arm-kernel, linux-amlogic, linux-kernel,
martin.blumenstingl
Hi,
On 04/02/2025 05:24, Dharma.B@microchip.com wrote:
> Rob / Conor,
>
> On 20/01/25 10:00 am, Dharma B wrote:
>> Hi Rob/Conor,
>>
>> On 09/01/25 2:26 am, Martin Blumenstingl wrote:
>>> EXTERNAL EMAIL: Do not click links or open attachments unless you know
>>> the content is safe
>>>
>>> Hi Dharma,
>>>
>>> On Wed, Jan 8, 2025 at 4:11 AM <Dharma.B@microchip.com> wrote:
>>> [...]
>>>> "One issue is 'compatible' is required. Either that would have to be
>>>> dropped as required."
>>>>
>>>> Instead of just dropping it from "required:", I removed the property
>>>> itself and moved it to another binding.
>>>>
>>>> I will send a v2 by removing it from the required, will it be fine?
>>> For me this is fine.
>>>
>>> My understanding is that if we drop the compatible property completely
>>> then any compatible string will be allowed (for example: compatible =
>>> "random,name"). This is because mmc-slot.yaml inherits the properties
>>> from mmc-controller-common.yaml which itself has
>>> "additionalProperties: true".
>>> However, if we allow it but make it optional it means that there's
>>> only two valid states:
>>> - no compatible property (on the Atmel / Microchip SoCs)
>>> - a compatible property with the value "mmc-slot" (as used on Amlogic
>>> Meson and Cavium Thunder SoCs)
>>> - (anything else is considered invalid)
>>>
>>> Rob, Conor: can confirm this or correct me wherever I got something
>>> wrong.
>>> I hope that your feedback will help Dharma write a good patch
>>> description for v2.
>>
>> Shall I proceed with v2 by dropping the compatible from the required
>> property list?
>
> I hope this email finds you well. Just following up on my previous
> message from 20/01/25, as it seems to have achieved an impressive
> feat—perfect stealth mode. Either my patch is so flawless that it left
> everyone speechless, or it has been silently sacrificed to the inbox
> gods. 😅
>
> If there are any concerns, feedback, or a secret ritual I need to
> perform to get a response, please do let me know. Would love to hear
> your thoughts when time permits.
>
> Looking forward to breaking the radio silence!
Just send a v2 as RFC, so we can comment on it.
Thanks,
Neil
>>
>>>
>>>
>>> Best regards,
>>> Martin
>>>
>>
>>
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] dt-bindings: mmc: move compatible property to its specific binding
2025-02-04 8:14 ` neil.armstrong
@ 2025-02-05 3:49 ` Dharma.B
0 siblings, 0 replies; 10+ messages in thread
From: Dharma.B @ 2025-02-05 3:49 UTC (permalink / raw)
To: neil.armstrong, robh, conor
Cc: ulf.hansson, krzk+dt, conor+dt, khilman, jbrunet, linux-mmc,
devicetree, linux-arm-kernel, linux-amlogic, linux-kernel,
martin.blumenstingl
On 04/02/25 1:44 pm, neil.armstrong@linaro.org wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know
> the content is safe
>
> Hi,
>
> On 04/02/2025 05:24, Dharma.B@microchip.com wrote:
>> Rob / Conor,
>>
>> On 20/01/25 10:00 am, Dharma B wrote:
>>> Hi Rob/Conor,
>>>
>>> On 09/01/25 2:26 am, Martin Blumenstingl wrote:
>>>> EXTERNAL EMAIL: Do not click links or open attachments unless you know
>>>> the content is safe
>>>>
>>>> Hi Dharma,
>>>>
>>>> On Wed, Jan 8, 2025 at 4:11 AM <Dharma.B@microchip.com> wrote:
>>>> [...]
>>>>> "One issue is 'compatible' is required. Either that would have to be
>>>>> dropped as required."
>>>>>
>>>>> Instead of just dropping it from "required:", I removed the property
>>>>> itself and moved it to another binding.
>>>>>
>>>>> I will send a v2 by removing it from the required, will it be fine?
>>>> For me this is fine.
>>>>
>>>> My understanding is that if we drop the compatible property completely
>>>> then any compatible string will be allowed (for example: compatible =
>>>> "random,name"). This is because mmc-slot.yaml inherits the properties
>>>> from mmc-controller-common.yaml which itself has
>>>> "additionalProperties: true".
>>>> However, if we allow it but make it optional it means that there's
>>>> only two valid states:
>>>> - no compatible property (on the Atmel / Microchip SoCs)
>>>> - a compatible property with the value "mmc-slot" (as used on Amlogic
>>>> Meson and Cavium Thunder SoCs)
>>>> - (anything else is considered invalid)
>>>>
>>>> Rob, Conor: can confirm this or correct me wherever I got something
>>>> wrong.
>>>> I hope that your feedback will help Dharma write a good patch
>>>> description for v2.
>>>
>>> Shall I proceed with v2 by dropping the compatible from the required
>>> property list?
>>
>> I hope this email finds you well. Just following up on my previous
>> message from 20/01/25, as it seems to have achieved an impressive
>> feat—perfect stealth mode. Either my patch is so flawless that it left
>> everyone speechless, or it has been silently sacrificed to the inbox
>> gods. 😅
>>
>> If there are any concerns, feedback, or a secret ritual I need to
>> perform to get a response, please do let me know. Would love to hear
>> your thoughts when time permits.
>>
>> Looking forward to breaking the radio silence!
>
> Just send a v2 as RFC, so we can comment on it.
Thanks Neil, sent a v2 RFC.
>
> Thanks,
> Neil
>
>>>
>>>>
>>>>
>>>> Best regards,
>>>> Martin
>>>>
>>>
>>>
>>
>>
>
--
With Best Regards,
Dharma B.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2025-02-05 3:49 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-19 4:10 [PATCH] dt-bindings: mmc: move compatible property to its specific binding Dharma Balasubiramani
2024-12-19 20:11 ` Conor Dooley
2025-01-07 3:34 ` Dharma.B
2025-01-07 20:34 ` Martin Blumenstingl
2025-01-08 3:11 ` Dharma.B
2025-01-08 20:56 ` Martin Blumenstingl
2025-01-20 4:30 ` Dharma.B
2025-02-04 4:24 ` Dharma.B
2025-02-04 8:14 ` neil.armstrong
2025-02-05 3:49 ` Dharma.B
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).