* [PATCH] regulator: da9211: fix obtaining "enable" GPIO
@ 2019-09-10 17:02 Dmitry Torokhov
2019-09-11 14:59 ` Applied "regulator: da9211: fix obtaining "enable" GPIO" to the regulator tree Mark Brown
2019-09-12 9:23 ` [PATCH] regulator: da9211: fix obtaining "enable" GPIO Linus Walleij
0 siblings, 2 replies; 4+ messages in thread
From: Dmitry Torokhov @ 2019-09-10 17:02 UTC (permalink / raw)
To: Mark Brown, Linus Walleij; +Cc: Support Opensource, Liam Girdwood, linux-kernel
This fixes 11da04af0d3b, as devm_gpiod_get_from_of_node() does
not do translation "con-id" -> "con-id-gpios" that our bindings expects,
and therefore it was wrong to change connection ID to be simply "enable"
when moving to using devm_gpiod_get_from_of_node().
Fixes: 11da04af0d3b ("regulator: da9211: Pass descriptors instead of GPIO numbers")
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
---
drivers/regulator/da9211-regulator.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/regulator/da9211-regulator.c b/drivers/regulator/da9211-regulator.c
index 0309823d2c72..bf80748f1ccc 100644
--- a/drivers/regulator/da9211-regulator.c
+++ b/drivers/regulator/da9211-regulator.c
@@ -285,7 +285,7 @@ static struct da9211_pdata *da9211_parse_regulators_dt(
pdata->reg_node[n] = da9211_matches[i].of_node;
pdata->gpiod_ren[n] = devm_gpiod_get_from_of_node(dev,
da9211_matches[i].of_node,
- "enable",
+ "enable-gpios",
0,
GPIOD_OUT_HIGH | GPIOD_FLAGS_BIT_NONEXCLUSIVE,
"da9211-enable");
--
2.23.0.162.g0b9fbb3734-goog
--
Dmitry
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Applied "regulator: da9211: fix obtaining "enable" GPIO" to the regulator tree
2019-09-10 17:02 [PATCH] regulator: da9211: fix obtaining "enable" GPIO Dmitry Torokhov
@ 2019-09-11 14:59 ` Mark Brown
2019-09-12 9:23 ` [PATCH] regulator: da9211: fix obtaining "enable" GPIO Linus Walleij
1 sibling, 0 replies; 4+ messages in thread
From: Mark Brown @ 2019-09-11 14:59 UTC (permalink / raw)
To: Dmitry Torokhov
Cc: Liam Girdwood, Linus Walleij, linux-kernel, Mark Brown,
Support Opensource
The patch
regulator: da9211: fix obtaining "enable" GPIO
has been applied to the regulator tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-5.4
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 5eda8e95b7922cb9dd1343f7beece3cd78565216 Mon Sep 17 00:00:00 2001
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: Tue, 10 Sep 2019 10:02:46 -0700
Subject: [PATCH] regulator: da9211: fix obtaining "enable" GPIO
This fixes 11da04af0d3b, as devm_gpiod_get_from_of_node() does
not do translation "con-id" -> "con-id-gpios" that our bindings expects,
and therefore it was wrong to change connection ID to be simply "enable"
when moving to using devm_gpiod_get_from_of_node().
Fixes: 11da04af0d3b ("regulator: da9211: Pass descriptors instead of GPIO numbers")
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Link: https://lore.kernel.org/r/20190910170246.GA56792@dtor-ws
Signed-off-by: Mark Brown <broonie@kernel.org>
---
drivers/regulator/da9211-regulator.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/regulator/da9211-regulator.c b/drivers/regulator/da9211-regulator.c
index 0309823d2c72..bf80748f1ccc 100644
--- a/drivers/regulator/da9211-regulator.c
+++ b/drivers/regulator/da9211-regulator.c
@@ -285,7 +285,7 @@ static struct da9211_pdata *da9211_parse_regulators_dt(
pdata->reg_node[n] = da9211_matches[i].of_node;
pdata->gpiod_ren[n] = devm_gpiod_get_from_of_node(dev,
da9211_matches[i].of_node,
- "enable",
+ "enable-gpios",
0,
GPIOD_OUT_HIGH | GPIOD_FLAGS_BIT_NONEXCLUSIVE,
"da9211-enable");
--
2.20.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] regulator: da9211: fix obtaining "enable" GPIO
2019-09-10 17:02 [PATCH] regulator: da9211: fix obtaining "enable" GPIO Dmitry Torokhov
2019-09-11 14:59 ` Applied "regulator: da9211: fix obtaining "enable" GPIO" to the regulator tree Mark Brown
@ 2019-09-12 9:23 ` Linus Walleij
2019-09-12 9:49 ` Mark Brown
1 sibling, 1 reply; 4+ messages in thread
From: Linus Walleij @ 2019-09-12 9:23 UTC (permalink / raw)
To: Dmitry Torokhov
Cc: Mark Brown, Support Opensource, Liam Girdwood, linux-kernel
On Tue, Sep 10, 2019 at 6:02 PM Dmitry Torokhov
<dmitry.torokhov@gmail.com> wrote:
> This fixes 11da04af0d3b, as devm_gpiod_get_from_of_node() does
> not do translation "con-id" -> "con-id-gpios" that our bindings expects,
> and therefore it was wrong to change connection ID to be simply "enable"
> when moving to using devm_gpiod_get_from_of_node().
>
> Fixes: 11da04af0d3b ("regulator: da9211: Pass descriptors instead of GPIO numbers")
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Mark: please tag both of these for stable.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] regulator: da9211: fix obtaining "enable" GPIO
2019-09-12 9:23 ` [PATCH] regulator: da9211: fix obtaining "enable" GPIO Linus Walleij
@ 2019-09-12 9:49 ` Mark Brown
0 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2019-09-12 9:49 UTC (permalink / raw)
To: Linus Walleij
Cc: Dmitry Torokhov, Support Opensource, Liam Girdwood, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 247 bytes --]
On Thu, Sep 12, 2019 at 10:23:44AM +0100, Linus Walleij wrote:
> Mark: please tag both of these for stable.
Too late, I already applied them. If you ping Greg I'm sure
he'll pick them up (and there's a good chance Sasha will find
them anyway).
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-09-12 9:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-10 17:02 [PATCH] regulator: da9211: fix obtaining "enable" GPIO Dmitry Torokhov
2019-09-11 14:59 ` Applied "regulator: da9211: fix obtaining "enable" GPIO" to the regulator tree Mark Brown
2019-09-12 9:23 ` [PATCH] regulator: da9211: fix obtaining "enable" GPIO Linus Walleij
2019-09-12 9:49 ` 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).