mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andre Przywara <andre.przywara@arm.com>
To: Philippe Simons <simons.philippe@gmail.com>
Cc: Chen-Yu Tsai <wens@csie.org>, Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] regulator: axp20x: AXP717: dcdc4 doesn't have delay
Date: Wed, 19 Mar 2025 11:46:19 +0000	[thread overview]
Message-ID: <20250319114619.59cf9cad@donnerap.manchester.arm.com> (raw)
In-Reply-To: <20250318205147.42850-1-simons.philippe@gmail.com>

On Tue, 18 Mar 2025 21:51:47 +0100
Philippe Simons <simons.philippe@gmail.com> wrote:

Hi,

> According to AXP717 user manual, DCDC4 doesn't have a ramp delay like
> DCDC1/2/3 do.

Yes, all the AXP717 manuals I scanned only mention DCDC1/2/3 for DVM mode,
and DCDC4 has bit 7 (controlling DVM on the other DCDCs) marked as
reserved.

> Remove it from the description and cleanup the macros.
> 
> Signed-off-by: Philippe Simons <simons.philippe@gmail.com>

Changes look alright, we indeed don't need AXP_DESC_DELAY anymore.

Reviewed-by: Andre Przywara <andre.przywara@arm.com>

Cheers,
Andre

> ---
>  drivers/regulator/axp20x-regulator.c | 14 ++++----------
>  1 file changed, 4 insertions(+), 10 deletions(-)
> 
> diff --git a/drivers/regulator/axp20x-regulator.c b/drivers/regulator/axp20x-regulator.c
> index dca99cfb7cbb..da891415efc0 100644
> --- a/drivers/regulator/axp20x-regulator.c
> +++ b/drivers/regulator/axp20x-regulator.c
> @@ -371,8 +371,8 @@
>  		.ops		= &axp20x_ops,					\
>  	}
>  
> -#define AXP_DESC_DELAY(_family, _id, _match, _supply, _min, _max, _step, _vreg,	\
> -		 _vmask, _ereg, _emask, _ramp_delay) 				\
> +#define AXP_DESC(_family, _id, _match, _supply, _min, _max, _step, _vreg,	\
> +		 _vmask, _ereg, _emask)						\
>  	[_family##_##_id] = {							\
>  		.name		= (_match),					\
>  		.supply_name	= (_supply),					\
> @@ -388,15 +388,9 @@
>  		.vsel_mask	= (_vmask),					\
>  		.enable_reg	= (_ereg),					\
>  		.enable_mask	= (_emask),					\
> -		.ramp_delay = (_ramp_delay),					\
>  		.ops		= &axp20x_ops,					\
>  	}
>  
> -#define AXP_DESC(_family, _id, _match, _supply, _min, _max, _step, _vreg,	\
> -		 _vmask, _ereg, _emask) 					\
> -	AXP_DESC_DELAY(_family, _id, _match, _supply, _min, _max, _step, _vreg,	\
> -		 _vmask, _ereg, _emask, 0)
> -
>  #define AXP_DESC_SW(_family, _id, _match, _supply, _ereg, _emask)		\
>  	[_family##_##_id] = {							\
>  		.name		= (_match),					\
> @@ -805,9 +799,9 @@ static const struct regulator_desc axp717_regulators[] = {
>  			axp717_dcdc3_ranges, AXP717_DCDC3_NUM_VOLTAGES,
>  			AXP717_DCDC3_CONTROL, AXP717_DCDC_V_OUT_MASK,
>  			AXP717_DCDC_OUTPUT_CONTROL, BIT(2), 640),
> -	AXP_DESC_DELAY(AXP717, DCDC4, "dcdc4", "vin4", 1000, 3700, 100,
> +	AXP_DESC(AXP717, DCDC4, "dcdc4", "vin4", 1000, 3700, 100,
>  		 AXP717_DCDC4_CONTROL, AXP717_DCDC_V_OUT_MASK,
> -		 AXP717_DCDC_OUTPUT_CONTROL, BIT(3), 6400),
> +		 AXP717_DCDC_OUTPUT_CONTROL, BIT(3)),
>  	AXP_DESC(AXP717, ALDO1, "aldo1", "aldoin", 500, 3500, 100,
>  		 AXP717_ALDO1_CONTROL, AXP717_LDO_V_OUT_MASK,
>  		 AXP717_LDO0_OUTPUT_CONTROL, BIT(0)),


  parent reply	other threads:[~2025-03-19 11:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-18 20:51 Philippe Simons
2025-03-19  4:44 ` Chen-Yu Tsai
2025-03-19 11:46 ` Andre Przywara [this message]
2025-03-19 17:35 ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250319114619.59cf9cad@donnerap.manchester.arm.com \
    --to=andre.przywara@arm.com \
    --cc=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=simons.philippe@gmail.com \
    --cc=wens@csie.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®