linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] regulator: bd70528: Remove .set_ramp_delay for bd70528_ldo_ops
@ 2020-01-01  2:24 Axel Lin
  2020-01-02  6:47 ` Vaittinen, Matti
  2020-01-03  1:05 ` Applied "regulator: bd70528: Remove .set_ramp_delay for bd70528_ldo_ops" to the regulator tree Mark Brown
  0 siblings, 2 replies; 5+ messages in thread
From: Axel Lin @ 2020-01-01  2:24 UTC (permalink / raw)
  To: Mark Brown; +Cc: Matti Vaittinen, Liam Girdwood, linux-kernel, Axel Lin

The .set_ramp_delay should be for bd70528_buck_ops only.
Setting .set_ramp_delay for for bd70528_ldo_ops causes problem because
BD70528_MASK_BUCK_RAMP (0x10) overlaps with BD70528_MASK_LDO_VOLT (0x1f).
So setting ramp_delay for LDOs may change the voltage output, fix it.

Fixes: 99ea37bd1e7d ("regulator: bd70528: Support ROHM BD70528 regulator block")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/regulator/bd70528-regulator.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/regulator/bd70528-regulator.c b/drivers/regulator/bd70528-regulator.c
index ec764022621f..5bf8a2dc5fe7 100644
--- a/drivers/regulator/bd70528-regulator.c
+++ b/drivers/regulator/bd70528-regulator.c
@@ -101,7 +101,6 @@ static const struct regulator_ops bd70528_ldo_ops = {
 	.set_voltage_sel = regulator_set_voltage_sel_regmap,
 	.get_voltage_sel = regulator_get_voltage_sel_regmap,
 	.set_voltage_time_sel = regulator_set_voltage_time_sel,
-	.set_ramp_delay = bd70528_set_ramp_delay,
 };
 
 static const struct regulator_ops bd70528_led_ops = {
-- 
2.20.1


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

* Re: [PATCH] regulator: bd70528: Remove .set_ramp_delay for bd70528_ldo_ops
  2020-01-01  2:24 [PATCH] regulator: bd70528: Remove .set_ramp_delay for bd70528_ldo_ops Axel Lin
@ 2020-01-02  6:47 ` Vaittinen, Matti
  2020-01-02  6:50   ` Axel Lin
  2020-01-03  1:05 ` Applied "regulator: bd70528: Remove .set_ramp_delay for bd70528_ldo_ops" to the regulator tree Mark Brown
  1 sibling, 1 reply; 5+ messages in thread
From: Vaittinen, Matti @ 2020-01-02  6:47 UTC (permalink / raw)
  To: axel.lin, broonie; +Cc: lgirdwood, linux-kernel

Hello Axel,

On Wed, 2020-01-01 at 10:24 +0800, Axel Lin wrote:
> The .set_ramp_delay should be for bd70528_buck_ops only.
Indeed! Only the bucks on BD70528 can change the ramp-delay. Thank you
for fixing this! May I ask, how did you notice this prolem?

> Setting .set_ramp_delay for for bd70528_ldo_ops causes problem
> because
> BD70528_MASK_BUCK_RAMP (0x10) overlaps with BD70528_MASK_LDO_VOLT
> (0x1f).
> So setting ramp_delay for LDOs may change the voltage output, fix it.
> 
> Fixes: 99ea37bd1e7d ("regulator: bd70528: Support ROHM BD70528
> regulator block")
> Signed-off-by: Axel Lin <axel.lin@ingics.com>

Acked-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>

Br,
	Matti

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

* Re: [PATCH] regulator: bd70528: Remove .set_ramp_delay for bd70528_ldo_ops
  2020-01-02  6:47 ` Vaittinen, Matti
@ 2020-01-02  6:50   ` Axel Lin
  2020-01-02  6:51     ` Vaittinen, Matti
  0 siblings, 1 reply; 5+ messages in thread
From: Axel Lin @ 2020-01-02  6:50 UTC (permalink / raw)
  To: Vaittinen, Matti; +Cc: broonie, lgirdwood, linux-kernel

Vaittinen, Matti <Matti.Vaittinen@fi.rohmeurope.com> 於 2020年1月2日 週四 下午2:48寫道:
>
> Hello Axel,
>
> On Wed, 2020-01-01 at 10:24 +0800, Axel Lin wrote:
> > The .set_ramp_delay should be for bd70528_buck_ops only.
> Indeed! Only the bucks on BD70528 can change the ramp-delay. Thank you
> for fixing this! May I ask, how did you notice this prolem?
I just read the code.

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

* Re: [PATCH] regulator: bd70528: Remove .set_ramp_delay for bd70528_ldo_ops
  2020-01-02  6:50   ` Axel Lin
@ 2020-01-02  6:51     ` Vaittinen, Matti
  0 siblings, 0 replies; 5+ messages in thread
From: Vaittinen, Matti @ 2020-01-02  6:51 UTC (permalink / raw)
  To: axel.lin; +Cc: lgirdwood, broonie, linux-kernel


On Thu, 2020-01-02 at 14:50 +0800, Axel Lin wrote:
> Vaittinen, Matti <Matti.Vaittinen@fi.rohmeurope.com> 於 2020年1月2日 週四
> 下午2:48寫道:
> > Hello Axel,
> > 
> > On Wed, 2020-01-01 at 10:24 +0800, Axel Lin wrote:
> > > The .set_ramp_delay should be for bd70528_buck_ops only.
> > Indeed! Only the bucks on BD70528 can change the ramp-delay. Thank
> > you
> > for fixing this! May I ask, how did you notice this prolem?
> I just read the code.

Impressive :) Thanks again!

--Matti

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

* Applied "regulator: bd70528: Remove .set_ramp_delay for bd70528_ldo_ops" to the regulator tree
  2020-01-01  2:24 [PATCH] regulator: bd70528: Remove .set_ramp_delay for bd70528_ldo_ops Axel Lin
  2020-01-02  6:47 ` Vaittinen, Matti
@ 2020-01-03  1:05 ` Mark Brown
  1 sibling, 0 replies; 5+ messages in thread
From: Mark Brown @ 2020-01-03  1:05 UTC (permalink / raw)
  To: Axel Lin; +Cc: Liam Girdwood, linux-kernel, Mark Brown, Matti Vaittinen

The patch

   regulator: bd70528: Remove .set_ramp_delay for bd70528_ldo_ops

has been applied to the regulator tree at

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

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

From 6f1ff76154b8b36033efcbf6453a71a3d28f52cd Mon Sep 17 00:00:00 2001
From: Axel Lin <axel.lin@ingics.com>
Date: Wed, 1 Jan 2020 10:24:06 +0800
Subject: [PATCH] regulator: bd70528: Remove .set_ramp_delay for
 bd70528_ldo_ops

The .set_ramp_delay should be for bd70528_buck_ops only.
Setting .set_ramp_delay for for bd70528_ldo_ops causes problem because
BD70528_MASK_BUCK_RAMP (0x10) overlaps with BD70528_MASK_LDO_VOLT (0x1f).
So setting ramp_delay for LDOs may change the voltage output, fix it.

Fixes: 99ea37bd1e7d ("regulator: bd70528: Support ROHM BD70528 regulator block")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Link: https://lore.kernel.org/r/20200101022406.15176-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 drivers/regulator/bd70528-regulator.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/regulator/bd70528-regulator.c b/drivers/regulator/bd70528-regulator.c
index 0248a61f1006..6041839ec38c 100644
--- a/drivers/regulator/bd70528-regulator.c
+++ b/drivers/regulator/bd70528-regulator.c
@@ -101,7 +101,6 @@ static const struct regulator_ops bd70528_ldo_ops = {
 	.set_voltage_sel = regulator_set_voltage_sel_regmap,
 	.get_voltage_sel = regulator_get_voltage_sel_regmap,
 	.set_voltage_time_sel = regulator_set_voltage_time_sel,
-	.set_ramp_delay = bd70528_set_ramp_delay,
 };
 
 static const struct regulator_ops bd70528_led_ops = {
-- 
2.20.1


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

end of thread, other threads:[~2020-01-03  1:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-01  2:24 [PATCH] regulator: bd70528: Remove .set_ramp_delay for bd70528_ldo_ops Axel Lin
2020-01-02  6:47 ` Vaittinen, Matti
2020-01-02  6:50   ` Axel Lin
2020-01-02  6:51     ` Vaittinen, Matti
2020-01-03  1:05 ` Applied "regulator: bd70528: Remove .set_ramp_delay for bd70528_ldo_ops" to the regulator tree 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).