linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: hdegoede@redhat.com (Hans de Goede)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 2/4] mfd: axp20x: Extend axp22x_volatile_ranges
Date: Thu,  2 Jun 2016 19:18:54 +0200	[thread overview]
Message-ID: <1464887936-17020-2-git-send-email-hdegoede@redhat.com> (raw)
In-Reply-To: <1464887936-17020-1-git-send-email-hdegoede@redhat.com>

The axp22x pmic has a bunch of volatile registers besides the interrupt
ones, extend axp22x_volatile_ranges with these.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
---
Changes in v2:
-Added Chen-Yu's Acked-by
---
 drivers/mfd/axp20x.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c
index e4e3297..ca04361 100644
--- a/drivers/mfd/axp20x.c
+++ b/drivers/mfd/axp20x.c
@@ -93,7 +93,10 @@ static const struct regmap_range axp22x_writeable_ranges[] = {
 };
 
 static const struct regmap_range axp22x_volatile_ranges[] = {
+	regmap_reg_range(AXP20X_PWR_INPUT_STATUS, AXP20X_PWR_OP_MODE),
 	regmap_reg_range(AXP20X_IRQ1_EN, AXP20X_IRQ5_STATE),
+	regmap_reg_range(AXP22X_GPIO_STATE, AXP22X_GPIO_STATE),
+	regmap_reg_range(AXP20X_FG_RES, AXP20X_FG_RES),
 };
 
 static const struct regmap_access_table axp22x_writeable_table = {
-- 
2.7.4

  reply	other threads:[~2016-06-02 17:18 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-02 17:18 [PATCH v2 1/4] power: axp20x_usb: Add support for usb power-supply on axp22x pmics Hans de Goede
2016-06-02 17:18 ` Hans de Goede [this message]
2016-06-10 14:57   ` [PATCH v2 2/4] mfd: axp20x: Extend axp22x_volatile_ranges Lee Jones
2016-06-02 17:18 ` [PATCH v2 3/4] mfd: axp20x: Add axp20x-usb-power-supply for axp22x pmics Hans de Goede
2016-06-03  1:20   ` Chen-Yu Tsai
2016-06-10 14:56   ` Lee Jones
2016-06-10 18:47     ` Hans de Goede
2016-06-02 17:18 ` [PATCH v2 4/4] regulator: axp20x: Add support for the (external) drivebus regulator Hans de Goede
2016-06-03  1:38   ` Chen-Yu Tsai
2016-06-03 16:59     ` Hans de Goede
2016-06-03  1:39 ` [PATCH v2 1/4] power: axp20x_usb: Add support for usb power-supply on axp22x pmics Chen-Yu Tsai
2016-06-04 14:01 ` Sebastian Reichel
2016-06-04 14:09   ` Hans de Goede
2016-06-10  1:37     ` Sebastian Reichel
2016-06-06 13:26 ` Rob Herring

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=1464887936-17020-2-git-send-email-hdegoede@redhat.com \
    --to=hdegoede@redhat.com \
    --cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).