[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1601461132-15251-1-git-send-email-u0084500@gmail.com>
Date: Wed, 30 Sep 2020 18:18:52 +0800
From: cy_huang <u0084500@...il.com>
To: broonie@...nel.org, robh+dt@...nel.org
Cc: lgirdwood@...il.com, cy_huang@...htek.com,
linux-kernel@...r.kernel.org, devicetree@...r.kernel.org
Subject: [PATCH] regulator: rtmv20: Add missing regcache cache only before marked as dirty
From: ChiYuan Huang <cy_huang@...htek.com>
Add missing regcache cache only before masked as dirty.
Signed-off-by: ChiYuan Huang <cy_huang@...htek.com>
---
drivers/regulator/rtmv20-regulator.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/regulator/rtmv20-regulator.c b/drivers/regulator/rtmv20-regulator.c
index 1075b10..0a07598 100644
--- a/drivers/regulator/rtmv20-regulator.c
+++ b/drivers/regulator/rtmv20-regulator.c
@@ -321,6 +321,7 @@ static int rtmv20_probe(struct i2c_client *i2c)
* keep in shutdown mode to minimize the current consumption
* and also mark regcache as dirty
*/
+ regcache_cache_only(priv->regmap, true);
regcache_mark_dirty(priv->regmap);
gpiod_set_value(priv->enable_gpio, 0);
--
2.7.4
Powered by blists - more mailing lists