All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Chen-Yu Tsai <wens@csie.org>, Mark Brown <broonie@kernel.org>
Cc: linux-kernel@vger.kernel.org
Subject: Applied "regulator: axp20x: Remove voltage readout support for switch regulators" to the regulator tree
Date: Wed, 03 Feb 2016 18:11:59 +0000	[thread overview]
Message-ID: <E1aR1uJ-0006M5-9e@debutante> (raw)
In-Reply-To: <1454408864-24112-5-git-send-email-wens@csie.org>

The patch

   regulator: axp20x: Remove voltage readout support for switch regulators

has been applied to the regulator tree at

   git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git 

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 94c39041ae0c0e83d10bc1a56974a2eefd9386c8 Mon Sep 17 00:00:00 2001
From: Chen-Yu Tsai <wens@csie.org>
Date: Tue, 2 Feb 2016 18:27:37 +0800
Subject: [PATCH] regulator: axp20x: Remove voltage readout support for switch
 regulators

Switch-type regulators, such as DC1SW on AXP22X, are a secondary output
from DCDC1. They are just an on/off switch, and the driver should not
try to read its voltage directly from the DCDC1 control registers.

Instead, the core will pass down the voltage from the regulator supply
chain.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 drivers/regulator/axp20x-regulator.c | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)

diff --git a/drivers/regulator/axp20x-regulator.c b/drivers/regulator/axp20x-regulator.c
index f2e1a39ce0f3..fafaaa8eb8b3 100644
--- a/drivers/regulator/axp20x-regulator.c
+++ b/drivers/regulator/axp20x-regulator.c
@@ -78,8 +78,7 @@
 		.ops		= &axp20x_ops,					\
 	}
 
-#define AXP_DESC_SW(_family, _id, _match, _supply, _min, _max, _step, _vreg,	\
-		    _vmask, _ereg, _emask) 					\
+#define AXP_DESC_SW(_family, _id, _match, _supply, _ereg, _emask)		\
 	[_family##_##_id] = {							\
 		.name		= #_id,						\
 		.supply_name	= (_supply),					\
@@ -87,12 +86,7 @@
 		.regulators_node = of_match_ptr("regulators"),			\
 		.type		= REGULATOR_VOLTAGE,				\
 		.id		= _family##_##_id,				\
-		.n_voltages	= (((_max) - (_min)) / (_step) + 1),		\
 		.owner		= THIS_MODULE,					\
-		.min_uV		= (_min) * 1000,				\
-		.uV_step	= (_step) * 1000,				\
-		.vsel_reg	= (_vreg),					\
-		.vsel_mask	= (_vmask),					\
 		.enable_reg	= (_ereg),					\
 		.enable_mask	= (_emask),					\
 		.ops		= &axp20x_ops_sw,				\
@@ -160,8 +154,6 @@ static struct regulator_ops axp20x_ops = {
 };
 
 static struct regulator_ops axp20x_ops_sw = {
-	.get_voltage_sel	= regulator_get_voltage_sel_regmap,
-	.list_voltage		= regulator_list_voltage_linear,
 	.enable			= regulator_enable_regmap,
 	.disable		= regulator_disable_regmap,
 	.is_enabled		= regulator_is_enabled_regmap,
@@ -196,8 +188,8 @@ static const struct regulator_desc axp22x_regulators[] = {
 	AXP_DESC(AXP22X, DCDC5, "dcdc5", "vin5", 1000, 2550, 50,
 		 AXP22X_DCDC5_V_OUT, 0x1f, AXP22X_PWR_OUT_CTRL1, BIT(5)),
 	/* secondary switchable output of DCDC1 */
-	AXP_DESC_SW(AXP22X, DC1SW, "dc1sw", NULL, 1600, 3400, 100,
-		    AXP22X_DCDC1_V_OUT, 0x1f, AXP22X_PWR_OUT_CTRL2, BIT(7)),
+	AXP_DESC_SW(AXP22X, DC1SW, "dc1sw", NULL, AXP22X_PWR_OUT_CTRL2,
+		    BIT(7)),
 	/* LDO regulator internally chained to DCDC5 */
 	AXP_DESC(AXP22X, DC5LDO, "dc5ldo", NULL, 700, 1400, 100,
 		 AXP22X_DC5LDO_V_OUT, 0x7, AXP22X_PWR_OUT_CTRL1, BIT(0)),
-- 
2.7.0.rc3

  reply	other threads:[~2016-02-03 18:12 UTC|newest]

Thread overview: 95+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-02 10:27 [PATCH 00/11] mfd: axp20x: Add support for AXP809 PMIC Chen-Yu Tsai
2016-02-02 10:27 ` Chen-Yu Tsai
2016-02-02 10:27 ` Chen-Yu Tsai
2016-02-02 10:27 ` [PATCH 01/11] MAINTAINERS: Add entry for X-Powers AXP family PMIC drivers Chen-Yu Tsai
2016-02-02 10:27   ` Chen-Yu Tsai
2016-02-02 10:27   ` Chen-Yu Tsai
2016-02-02 13:27   ` Maxime Ripard
2016-02-02 13:27     ` Maxime Ripard
2016-02-02 13:27     ` Maxime Ripard
2016-02-03  0:19   ` [linux-sunxi] " Julian Calaby
2016-02-03  0:19     ` Julian Calaby
2016-02-03  0:19     ` Julian Calaby
2016-02-03  1:28     ` [linux-sunxi] " Joe Perches
2016-02-03  1:28       ` Joe Perches
2016-02-03  1:28       ` Joe Perches
2016-02-03  1:30       ` [linux-sunxi] " Julian Calaby
2016-02-03  1:30         ` Julian Calaby
2016-02-03  1:30         ` Julian Calaby
2016-02-03  6:49       ` Chen-Yu Tsai
2016-02-03  6:49         ` Chen-Yu Tsai
2016-02-03  6:49         ` Chen-Yu Tsai
2016-02-02 10:27 ` [PATCH 02/11] mfd: axp20x: Add bindings for AXP809 PMIC Chen-Yu Tsai
2016-02-02 10:27   ` Chen-Yu Tsai
2016-02-02 10:27   ` Chen-Yu Tsai
2016-02-02 22:43   ` Rob Herring
2016-02-02 22:43     ` Rob Herring
2016-02-02 22:43     ` Rob Herring
2016-02-09 10:18     ` Lee Jones
2016-02-09 10:18       ` Lee Jones
2016-02-09 10:18       ` Lee Jones
2016-02-02 10:27 ` [PATCH 03/11] mfd: axp20x: Add support " Chen-Yu Tsai
2016-02-02 10:27   ` Chen-Yu Tsai
2016-02-02 10:27   ` Chen-Yu Tsai
2016-02-02 10:27 ` [PATCH 04/11] regulator: axp20x: Remove voltage readout support for switch regulators Chen-Yu Tsai
2016-02-02 10:27   ` Chen-Yu Tsai
2016-02-02 10:27   ` Chen-Yu Tsai
2016-02-03 18:11   ` Mark Brown [this message]
2016-02-02 10:27 ` [PATCH 05/11] regulator: axp20x: Use linear voltage ranges for AXP20X LDO4 Chen-Yu Tsai
2016-02-02 10:27   ` Chen-Yu Tsai
2016-02-02 10:27   ` Chen-Yu Tsai
2016-02-03 18:11   ` Applied "regulator: axp20x: Use linear voltage ranges for AXP20X LDO4" to the regulator tree Mark Brown
2016-02-02 10:27 ` [PATCH 06/11] regulator: axp20x: support AXP809 variant Chen-Yu Tsai
2016-02-02 10:27   ` Chen-Yu Tsai
2016-02-02 10:27   ` Chen-Yu Tsai
2016-02-03 17:15   ` Mark Brown
2016-02-03 17:15     ` Mark Brown
2016-02-03 17:15     ` Mark Brown
2016-05-31 17:46   ` Applied "regulator: axp20x: support AXP809 variant" to the regulator tree Mark Brown
2016-05-31 17:46     ` Mark Brown
2016-05-31 17:46     ` Mark Brown
2016-02-02 10:27 ` [PATCH 07/11] ARM: dts: sunxi: Add dtsi file for AXP809 PMIC Chen-Yu Tsai
2016-02-02 10:27   ` Chen-Yu Tsai
2016-02-02 10:27   ` Chen-Yu Tsai
2016-02-02 12:17   ` Mark Brown
2016-02-02 12:17     ` Mark Brown
2016-02-02 12:17     ` Mark Brown
2016-02-06 12:42     ` Chen-Yu Tsai
2016-02-06 12:42       ` Chen-Yu Tsai
2016-02-06 12:42       ` Chen-Yu Tsai
2016-02-08 14:53       ` Mark Brown
2016-02-08 14:53         ` Mark Brown
2016-02-08 14:53         ` Mark Brown
2016-02-08 14:56         ` Chen-Yu Tsai
2016-02-08 14:56           ` Chen-Yu Tsai
2016-02-08 14:56           ` Chen-Yu Tsai
2016-02-08 16:22           ` Mark Brown
2016-02-08 16:22             ` Mark Brown
2016-02-08 16:22             ` Mark Brown
2016-02-09  5:41             ` Chen-Yu Tsai
2016-02-09  5:41               ` Chen-Yu Tsai
2016-02-09  5:41               ` Chen-Yu Tsai
2016-02-09 11:32               ` Mark Brown
2016-02-09 11:32                 ` Mark Brown
2016-02-09 11:32                 ` Mark Brown
2016-02-02 10:27 ` [PATCH 08/11] ARM: dts: sun9i: a80-optimus: Add AXP809 PMIC device node and regulators Chen-Yu Tsai
2016-02-02 10:27   ` Chen-Yu Tsai
2016-02-02 10:27   ` Chen-Yu Tsai
2016-02-02 10:27 ` [PATCH 09/11] ARM: dts: sun9i: cubieboard4: " Chen-Yu Tsai
2016-02-02 10:27   ` Chen-Yu Tsai
2016-02-02 10:27   ` Chen-Yu Tsai
2016-02-02 10:27 ` [PATCH 10/11] ARM: dts: sun9i: a80-optimus: Disable dummy regulators vcc3v0, vcc3v3, vcc5v0 Chen-Yu Tsai
2016-02-02 10:27   ` Chen-Yu Tsai
2016-02-02 10:27   ` Chen-Yu Tsai
2016-02-02 16:21   ` Maxime Ripard
2016-02-02 16:21     ` Maxime Ripard
2016-02-02 16:21     ` Maxime Ripard
2016-02-02 16:41     ` Chen-Yu Tsai
2016-02-02 16:41       ` Chen-Yu Tsai
2016-02-02 16:41       ` Chen-Yu Tsai
2016-02-04 16:44       ` Maxime Ripard
2016-02-04 16:44         ` Maxime Ripard
2016-02-04 16:44         ` Maxime Ripard
2016-02-02 10:27 ` [PATCH 11/11] ARM: dts: sun9i: cubieboard4: " Chen-Yu Tsai
2016-02-02 10:27   ` Chen-Yu Tsai
2016-02-02 10:27   ` Chen-Yu Tsai

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=E1aR1uJ-0006M5-9e@debutante \
    --to=broonie@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --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 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.