diff options
author | Andrew Bresticker <abrestic@chromium.org> | 2015-10-29 11:15:36 -0700 |
---|---|---|
committer | Andrew Bresticker <abrestic@chromium.org> | 2015-10-29 18:32:19 +0000 |
commit | 58c08e23b2315c50aa766ed9d0d1ab447c328999 (patch) | |
tree | d29a2281e4e73f93383a5866e1c822e622966223 | |
parent | 62652ef0e9686e792a506bcdcd328be54e8d2237 (diff) |
CHROMIUM: mfd: max77620: Set num_reg_defaults_rawMYB15I
If num_reg_defaults_raw is unset, regcache will assume the default
value (0x0) for cacheable registers. By setting num_reg_defaults_raw,
regcache_hw_init() will initialize the cache by reading back the values
from hardware and subsequent reads from the cache will correctly reflect
the register values in hardware.
BUG=chrome-os-partner:46750
TEST=Reboot cycle test on Smaug; no hangs seen at boot.
Change-Id: If389c9afef5ed88f24a236fc1e5820cf6efeec3e
Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/309559
-rw-r--r-- | drivers/mfd/max77620-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mfd/max77620-core.c b/drivers/mfd/max77620-core.c index 1537173333f3..0b7c09adfcee 100644 --- a/drivers/mfd/max77620-core.c +++ b/drivers/mfd/max77620-core.c @@ -250,6 +250,7 @@ static struct regmap_config max77620_regmap_config[] = { .reg_bits = 8, .val_bits = 8, .max_register = MAX77620_REG_DVSSD4 + 1, + .num_reg_defaults_raw = MAX77620_REG_DVSSD4 + 1, .lock = max77620_regmap_config_lock, .unlock = max77620_regmap_config_unlock, .cache_type = REGCACHE_FLAT, |