From: saravanan sekar <sravanhome@gmail.com>
To: Axel Lin <axel.lin@ingics.com>, Mark Brown <broonie@kernel.org>
Cc: Liam Girdwood <lgirdwood@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH RFT] regulator: mp5416: Fix output discharge enable bit for LDOs
Date: Fri, 14 Feb 2020 22:16:47 +0100 [thread overview]
Message-ID: <33fe095a-4aab-fe8a-bb5e-77050ffa0551@gmail.com> (raw)
In-Reply-To: <20200212150223.20042-1-axel.lin@ingics.com>
On 12/02/20 4:02 pm, Axel Lin wrote:
> The .active_discharge_on/.active_discharge_mask settings does not match
> the datasheet, fix it.
>
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
> Hi Saravanan,
> I don't have the h/w to test, please help review and test this patch.
Thanks for pointing out, I have tested this patch and works as expected.
>
> Thanks,
> Axel
>
> drivers/regulator/mp5416.c | 14 +++++++-------
> 1 file changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/regulator/mp5416.c b/drivers/regulator/mp5416.c
> index 7954ad17249b..67ce1b52a1a1 100644
> --- a/drivers/regulator/mp5416.c
> +++ b/drivers/regulator/mp5416.c
> @@ -73,7 +73,7 @@
> .owner = THIS_MODULE, \
> }
>
> -#define MP5416LDO(_name, _id) \
> +#define MP5416LDO(_name, _id, _dval) \
> [MP5416_LDO ## _id] = { \
> .id = MP5416_LDO ## _id, \
> .name = _name, \
> @@ -87,9 +87,9 @@
> .vsel_mask = MP5416_MASK_VSET, \
> .enable_reg = MP5416_REG_LDO ##_id, \
> .enable_mask = MP5416_REGULATOR_EN, \
> - .active_discharge_on = BIT(_id), \
> + .active_discharge_on = _dval, \
> .active_discharge_reg = MP5416_REG_CTL2, \
> - .active_discharge_mask = BIT(_id), \
> + .active_discharge_mask = _dval, \
> .owner = THIS_MODULE, \
> }
>
> @@ -155,10 +155,10 @@ static struct regulator_desc mp5416_regulators_desc[MP5416_MAX_REGULATORS] = {
> MP5416BUCK("buck2", 2, mp5416_I_limits2, MP5416_REG_CTL1, BIT(1), 2),
> MP5416BUCK("buck3", 3, mp5416_I_limits1, MP5416_REG_CTL1, BIT(2), 1),
> MP5416BUCK("buck4", 4, mp5416_I_limits2, MP5416_REG_CTL2, BIT(5), 2),
> - MP5416LDO("ldo1", 1),
> - MP5416LDO("ldo2", 2),
> - MP5416LDO("ldo3", 3),
> - MP5416LDO("ldo4", 4),
> + MP5416LDO("ldo1", 1, BIT(4)),
> + MP5416LDO("ldo2", 2, BIT(3)),
> + MP5416LDO("ldo3", 3, BIT(2)),
> + MP5416LDO("ldo4", 4, BIT(1)),
> };
>
> /*
next prev parent reply other threads:[~2020-02-14 21:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-12 15:02 [PATCH RFT] regulator: mp5416: Fix output discharge enable bit for LDOs Axel Lin
2020-02-14 21:16 ` saravanan sekar [this message]
2020-02-17 22:04 ` Applied "regulator: mp5416: Fix output discharge enable bit for LDOs" to the regulator tree 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=33fe095a-4aab-fe8a-bb5e-77050ffa0551@gmail.com \
--to=sravanhome@gmail.com \
--cc=axel.lin@ingics.com \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.