devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] regulator: rename regulator-uv-survival-time-ms according to DT binding
@ 2024-12-18 19:54 Ahmad Fatoum
  2024-12-18 20:00 ` Mark Brown
  2024-12-19 14:24 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Ahmad Fatoum @ 2024-12-18 19:54 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown
  Cc: linux-kernel, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	devicetree, kernel, Ahmad Fatoum

The regulator bindings don't document regulator-uv-survival-time-ms, but
the more descriptive regulator-uv-less-critical-window-ms instead.

Looking back at v3[1] and v4[2] of the series adding the support,
the property was indeed renamed between these patch series, but
unfortunately the rename only made it into the DT bindings with the
driver code still using the old name.

Let's therefore rename the property in the driver code to follow suit.
This will break backwards compatibility, but there are no upstream
device trees using the property and we never documented the old name
of the property anyway. ¯\_(ツ)_/¯"

[1]: https://lore.kernel.org/all/20231025084614.3092295-7-o.rempel@pengutronix.de/
[2]: https://lore.kernel.org/all/20231026144824.4065145-5-o.rempel@pengutronix.de/

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 drivers/regulator/of_regulator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/of_regulator.c b/drivers/regulator/of_regulator.c
index 3d85762beda636479f3b3b808602a0be221c0c77..e5b4b93c07e3f5e36122a804d3022eba0b2d6ad9 100644
--- a/drivers/regulator/of_regulator.c
+++ b/drivers/regulator/of_regulator.c
@@ -175,7 +175,7 @@ static int of_get_regulation_constraints(struct device *dev,
 	if (!ret)
 		constraints->enable_time = pval;
 
-	ret = of_property_read_u32(np, "regulator-uv-survival-time-ms", &pval);
+	ret = of_property_read_u32(np, "regulator-uv-less-critical-window-ms", &pval);
 	if (!ret)
 		constraints->uv_less_critical_window_ms = pval;
 	else

---
base-commit: 78d4f34e2115b517bcbfe7ec0d018bbbb6f9b0b8
change-id: 20241218-regulator-uv-survival-time-ms-rename-79e43cb4a181

Best regards,
-- 
Ahmad Fatoum <a.fatoum@pengutronix.de>


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] regulator: rename regulator-uv-survival-time-ms according to DT binding
  2024-12-18 19:54 [PATCH] regulator: rename regulator-uv-survival-time-ms according to DT binding Ahmad Fatoum
@ 2024-12-18 20:00 ` Mark Brown
  2024-12-19 14:24 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2024-12-18 20:00 UTC (permalink / raw)
  To: Ahmad Fatoum
  Cc: Liam Girdwood, linux-kernel, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, devicetree, kernel

[-- Attachment #1: Type: text/plain, Size: 433 bytes --]

On Wed, Dec 18, 2024 at 08:54:53PM +0100, Ahmad Fatoum wrote:

> Let's therefore rename the property in the driver code to follow suit.
> This will break backwards compatibility, but there are no upstream
> device trees using the property and we never documented the old name
> of the property anyway. ¯\_(ツ)_/¯"

We should clearly have the new name, if someone needs the old name we
can always re-add it as a fallback.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] regulator: rename regulator-uv-survival-time-ms according to DT binding
  2024-12-18 19:54 [PATCH] regulator: rename regulator-uv-survival-time-ms according to DT binding Ahmad Fatoum
  2024-12-18 20:00 ` Mark Brown
@ 2024-12-19 14:24 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2024-12-19 14:24 UTC (permalink / raw)
  To: Liam Girdwood, Ahmad Fatoum
  Cc: linux-kernel, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	devicetree, kernel

On Wed, 18 Dec 2024 20:54:53 +0100, Ahmad Fatoum wrote:
> The regulator bindings don't document regulator-uv-survival-time-ms, but
> the more descriptive regulator-uv-less-critical-window-ms instead.
> 
> Looking back at v3[1] and v4[2] of the series adding the support,
> the property was indeed renamed between these patch series, but
> unfortunately the rename only made it into the DT bindings with the
> driver code still using the old name.
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next

Thanks!

[1/1] regulator: rename regulator-uv-survival-time-ms according to DT binding
      commit: 13221496065fa12fac4f8a8e725444679ffddb78

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-12-19 14:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-18 19:54 [PATCH] regulator: rename regulator-uv-survival-time-ms according to DT binding Ahmad Fatoum
2024-12-18 20:00 ` Mark Brown
2024-12-19 14:24 ` Mark Brown

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).