Skip to contentSkip to conversation

power: regulator: support off-on-delay-us

PATCH New Peng Fan 2 participants 2 messages Nov 4, 2019 – Jan 8, 2020

lore
Share & tools
lore

Peng Fan

author
#0 lore raw

PATCH 1/1 power: regulator: support off-on-delay-us

off-on-delay-us has been supported by Linux, so let's use it.

---

V1:
Linux Tree:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=f7907e57aea2adcd0b57ebcca410e125412ab680

 drivers/power/regulator/regulator_common.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/power/regulator/regulator_common.c +4 -0
index 2041086567..939efb2c0d 100644
@@ -37,7 +37,11 @@ int regulator_common_ofdata_to_platdata(struct udevice *dev,
 	dev_pdata->startup_delay_us = dev_read_u32_default(dev,
 							"startup-delay-us", 0);
 	dev_pdata->off_on_delay_us =
+		dev_read_u32_default(dev, "off-on-delay-us", 0);
+	if (!dev_pdata->off_on_delay_us) {
+		dev_pdata->off_on_delay_us =
 			dev_read_u32_default(dev, "u-boot,off-on-delay-us", 0);
+	}
 
 	return 0;
 }
Signature · 1 line
2.16.4
#1 lore raw

PATCH 1/1 power: regulator: support off-on-delay-us

Quoted 3 lines · Peng Fan

off-on-delay-us has been supported by Linux, so let's use it.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200108/198f7fbe/attachment.sig>