Skip to contentSkip to conversation

of: property: fw_devlink: Add support for "mmc-pwrseq"

PATCH Applied Francesco Valla 4 participants 5 messages Jan 10 – Jan 15

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 of: property: fw_devlink: Add support for "mmc-pwrseq"

Add support for parsing MMC power sequencing (pwrseq) binding so that fw_devlink can enforce the dependency.

---
Resending this patch as it slipped through the cracks (of my attention, at least).

Original submission is at [0]; there it appears as a v2 because it was the first time I used b4. It was also part of [1], which wasn't really a patchset but a follow-up to the boot time SIG meeting.

I added Ulf and CC'd the mmc list, hoping they can (more authoritatively than me) reply to Saravan's question:

"""
I took a quick look at the documentation. It's not clear to me that mmc-pwrseq always points to a supplier. Can someone with more experience on this confirm that is what it's supposed to point at?

Meaning if A lists B as pwrseq, is it always the case that B needs to be powered on? The binding documentation doesn't say anything about B needs to be powered on first. It's just saying A and B have an ordering requirement.

If the meaning of the binding is _ALWAYS_ B needs to be powered on first, then yes, this patch is correct and I can give a reviewed-by. """

[0] https://lore.kernel.org/all/[email protected]/
[1] https://lore.kernel.org/linux-embedded/[email protected]/T/

Thank you!

Regards,
Francesco

---
 drivers/of/property.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/of/property.c +2 -0
index 4e3524227720a596b0f12976f83357851e9b94f3..05ae33a58b5aec0a8f4d3b7237ce88066d86dc9d 100644
@@ -1410,6 +1410,7 @@ DEFINE_SIMPLE_PROP(post_init_providers, "post-init-providers", NULL)
 DEFINE_SIMPLE_PROP(access_controllers, "access-controllers", "#access-controller-cells")
 DEFINE_SIMPLE_PROP(pses, "pses", "#pse-cells")
 DEFINE_SIMPLE_PROP(power_supplies, "power-supplies", NULL)
+DEFINE_SIMPLE_PROP(mmc_pwrseq, "mmc-pwrseq", NULL)
 DEFINE_SUFFIX_PROP(regulators, "-supply", NULL)
 DEFINE_SUFFIX_PROP(gpio, "-gpio", "#gpio-cells")
 
@@ -1557,6 +1558,7 @@ static const struct supplier_bindings of_supplier_bindings[] = {
 	{ .parse_prop = parse_msi_parent, },
 	{ .parse_prop = parse_pses, },
 	{ .parse_prop = parse_power_supplies, },
+	{ .parse_prop = parse_mmc_pwrseq, },
 	{ .parse_prop = parse_gpio_compat, },
 	{ .parse_prop = parse_interrupts, },
 	{ .parse_prop = parse_interrupt_map, },

---
base-commit: b6151c4e60e5f695fac8b5c3e011cfcfd6e27cba
change-id: 20260110-mmc-pwrseq-e885e677ca2b

Best regards,

Signature · 1 line
Francesco Valla <[email protected]>
#1 lore raw
Quoted 21 lines · Francesco Valla

Add support for parsing MMC power sequencing (pwrseq) binding so that fw_devlink can enforce the dependency.

---
Resending this patch as it slipped through the cracks (of my attention, at least).

Original submission is at [0]; there it appears as a v2 because it was the first time I used b4. It was also part of [1], which wasn't really a patchset but a follow-up to the boot time SIG meeting.

I added Ulf and CC'd the mmc list, hoping they can (more authoritatively than me) reply to Saravan's question:

"""
I took a quick look at the documentation. It's not clear to me that mmc-pwrseq always points to a supplier. Can someone with more experience on this confirm that is what it's supposed to point at?

Quoted 8 lines

Meaning if A lists B as pwrseq, is it always the case that B needs to be powered on? The binding documentation doesn't say anything about B needs to be powered on first. It's just saying A and B have an ordering requirement.

If the meaning of the binding is _ALWAYS_ B needs to be powered on first, then yes, this patch is correct and I can give a reviewed-by. """

Ulf, in case you missed it, this email is directed at you or other MMC folks.

Francesco, can you see who added support for that property and direct your question specifically to them (in case it's not Ulf)?

Is this fixing a specific issue for you that's pressing? If so, we can land this and then see if anyone complains.

Thanks,
Saravana

Quoted 41 lines

[0] https://lore.kernel.org/all/[email protected]/
[1] https://lore.kernel.org/linux-embedded/[email protected]/T/

Thank you!

Regards,
Francesco

---
 drivers/of/property.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/of/property.c +2 -1
index 4e3524227720a596b0f12976f83357851e9b94f3..05ae33a58b5aec0a8f4d3b7237ce88066d86dc9d 100644
@@ -1410,6 +1410,7 @@ DEFINE_SIMPLE_PROP(post_init_providers, "post-init-providers", NULL)
 DEFINE_SIMPLE_PROP(access_controllers, "access-controllers", "#access-controller-cells")
 DEFINE_SIMPLE_PROP(pses, "pses", "#pse-cells")
 DEFINE_SIMPLE_PROP(power_supplies, "power-supplies", NULL)
+DEFINE_SIMPLE_PROP(mmc_pwrseq, "mmc-pwrseq", NULL)
 DEFINE_SUFFIX_PROP(regulators, "-supply", NULL)
 DEFINE_SUFFIX_PROP(gpio, "-gpio", "#gpio-cells")
 
@@ -1557,6 +1558,7 @@ static const struct supplier_bindings of_supplier_bindings[] = {
        { .parse_prop = parse_msi_parent, },
        { .parse_prop = parse_pses, },
        { .parse_prop = parse_power_supplies, },
+       { .parse_prop = parse_mmc_pwrseq, },
        { .parse_prop = parse_gpio_compat, },
        { .parse_prop = parse_interrupts, },
        { .parse_prop = parse_interrupt_map, },
 
---

base-commit: b6151c4e60e5f695fac8b5c3e011cfcfd6e27cba
change-id: 20260110-mmc-pwrseq-e885e677ca2b

Best regards,
--
Francesco Valla <[email protected]>

#2 lore raw
Quoted 15 lines · Sarav K
Quoted 13 lines · Francesco Valla

Add support for parsing MMC power sequencing (pwrseq) binding so that fw_devlink can enforce the dependency.

---
Resending this patch as it slipped through the cracks (of my attention, at least).

Original submission is at [0]; there it appears as a v2 because it was the first time I used b4. It was also part of [1], which wasn't really a patchset but a follow-up to the boot time SIG meeting.

Quoted 7 lines
Quoted 7 lines

I added Ulf and CC'd the mmc list, hoping they can (more authoritatively than me) reply to Saravan's question:

"""
I took a quick look at the documentation. It's not clear to me that mmc-pwrseq always points to a supplier. Can someone with more experience on this confirm that is what it's supposed to point at?

Yes, the mmc-pwrseq property provides a phandle to the supplier.

Quoted 5 lines
Quoted 5 lines

Meaning if A lists B as pwrseq, is it always the case that B needs to be powered on? The binding documentation doesn't say anything about B needs to be powered on first. It's just saying A and B have an ordering requirement.

I assume with "powered on" you mean "probed". In that case, yes, A (consumer) can't probe unless B (provider) has probed first.

Up until now, we have relied on deferred probing to manage this.

Quoted 5 lines
Quoted 4 lines

If the meaning of the binding is _ALWAYS_ B needs to be powered on first, then yes, this patch is correct and I can give a reviewed-by. """

Quoted 7 lines

Ulf, in case you missed it, this email is directed at you or other MMC folks.

Francesco, can you see who added support for that property and direct your question specifically to them (in case it's not Ulf)?

Is this fixing a specific issue for you that's pressing? If so, we can land this and then see if anyone complains.

Thanks for pinging me about this. Please let me know if there is anything unclear.

Quoted 37 lines

Thanks,
Saravana

Quoted 33 lines

[0] https://lore.kernel.org/all/[email protected]/
[1] https://lore.kernel.org/linux-embedded/[email protected]/T/

Thank you!

Regards,
Francesco

---
 drivers/of/property.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/of/property.c +2 -0
index 4e3524227720a596b0f12976f83357851e9b94f3..05ae33a58b5aec0a8f4d3b7237ce88066d86dc9d 100644
@@ -1410,6 +1410,7 @@ DEFINE_SIMPLE_PROP(post_init_providers, "post-init-providers", NULL)
 DEFINE_SIMPLE_PROP(access_controllers, "access-controllers", "#access-controller-cells")
 DEFINE_SIMPLE_PROP(pses, "pses", "#pse-cells")
 DEFINE_SIMPLE_PROP(power_supplies, "power-supplies", NULL)
+DEFINE_SIMPLE_PROP(mmc_pwrseq, "mmc-pwrseq", NULL)
 DEFINE_SUFFIX_PROP(regulators, "-supply", NULL)
 DEFINE_SUFFIX_PROP(gpio, "-gpio", "#gpio-cells")
 
@@ -1557,6 +1558,7 @@ static const struct supplier_bindings of_supplier_bindings[] = {
        { .parse_prop = parse_msi_parent, },
        { .parse_prop = parse_pses, },
        { .parse_prop = parse_power_supplies, },
+       { .parse_prop = parse_mmc_pwrseq, },
        { .parse_prop = parse_gpio_compat, },
        { .parse_prop = parse_interrupts, },
        { .parse_prop = parse_interrupt_map, },
Quoted 8 lines
Quoted 8 lines

---
base-commit: b6151c4e60e5f695fac8b5c3e011cfcfd6e27cba
change-id: 20260110-mmc-pwrseq-e885e677ca2b

Best regards,
--
Francesco Valla <[email protected]>

Kind regards
Uffe

Reviewed-by on v1 1/1
#3 lore raw
In reply to Francesco Valla
Quoted 5 lines · Francesco Valla

Add support for parsing MMC power sequencing (pwrseq) binding so that fw_devlink can enforce the dependency.

Kind regards
Uffe

Quoted 65 lines

---
Resending this patch as it slipped through the cracks (of my attention, at least).

Original submission is at [0]; there it appears as a v2 because it was the first time I used b4. It was also part of [1], which wasn't really a patchset but a follow-up to the boot time SIG meeting.

I added Ulf and CC'd the mmc list, hoping they can (more authoritatively than me) reply to Saravan's question:

"""
I took a quick look at the documentation. It's not clear to me that mmc-pwrseq always points to a supplier. Can someone with more experience on this confirm that is what it's supposed to point at?

Meaning if A lists B as pwrseq, is it always the case that B needs to be powered on? The binding documentation doesn't say anything about B needs to be powered on first. It's just saying A and B have an ordering requirement.

If the meaning of the binding is _ALWAYS_ B needs to be powered on first, then yes, this patch is correct and I can give a reviewed-by. """

[0] https://lore.kernel.org/all/[email protected]/
[1] https://lore.kernel.org/linux-embedded/[email protected]/T/

Thank you!

Regards,
Francesco

---
 drivers/of/property.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/of/property.c +2 -1
index 4e3524227720a596b0f12976f83357851e9b94f3..05ae33a58b5aec0a8f4d3b7237ce88066d86dc9d 100644
@@ -1410,6 +1410,7 @@ DEFINE_SIMPLE_PROP(post_init_providers, "post-init-providers", NULL)
 DEFINE_SIMPLE_PROP(access_controllers, "access-controllers", "#access-controller-cells")
 DEFINE_SIMPLE_PROP(pses, "pses", "#pse-cells")
 DEFINE_SIMPLE_PROP(power_supplies, "power-supplies", NULL)
+DEFINE_SIMPLE_PROP(mmc_pwrseq, "mmc-pwrseq", NULL)
 DEFINE_SUFFIX_PROP(regulators, "-supply", NULL)
 DEFINE_SUFFIX_PROP(gpio, "-gpio", "#gpio-cells")
 
@@ -1557,6 +1558,7 @@ static const struct supplier_bindings of_supplier_bindings[] = {
        { .parse_prop = parse_msi_parent, },
        { .parse_prop = parse_pses, },
        { .parse_prop = parse_power_supplies, },
+       { .parse_prop = parse_mmc_pwrseq, },
        { .parse_prop = parse_gpio_compat, },
        { .parse_prop = parse_interrupts, },
        { .parse_prop = parse_interrupt_map, },
 
---

base-commit: b6151c4e60e5f695fac8b5c3e011cfcfd6e27cba
change-id: 20260110-mmc-pwrseq-e885e677ca2b

Best regards,
--
Francesco Valla <[email protected]>

maintainer Applied
#4 lore raw
In reply to Francesco Valla
Quoted 32 lines · Francesco Valla

Add support for parsing MMC power sequencing (pwrseq) binding so that fw_devlink can enforce the dependency.

---
Resending this patch as it slipped through the cracks (of my attention, at least).

Original submission is at [0]; there it appears as a v2 because it was the first time I used b4. It was also part of [1], which wasn't really a patchset but a follow-up to the boot time SIG meeting.

I added Ulf and CC'd the mmc list, hoping they can (more authoritatively than me) reply to Saravan's question:

"""
I took a quick look at the documentation. It's not clear to me that mmc-pwrseq always points to a supplier. Can someone with more experience on this confirm that is what it's supposed to point at?

Meaning if A lists B as pwrseq, is it always the case that B needs to be powered on? The binding documentation doesn't say anything about B needs to be powered on first. It's just saying A and B have an ordering requirement.

If the meaning of the binding is _ALWAYS_ B needs to be powered on first, then yes, this patch is correct and I can give a reviewed-by. """

[0] https://lore.kernel.org/all/[email protected]/
[1] https://lore.kernel.org/linux-embedded/[email protected]/T/

Quoted 8 lines

Thank you!

Regards,
Francesco

---
 drivers/of/property.c | 2 ++
 1 file changed, 2 insertions(+)

Applied, thanks!