mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-12 16:11:04 +00:00
mfd: arizona: Wait for internal clocks to startup after reset
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
87d3af4ac0
commit
c25feaa53c
@ -529,8 +529,10 @@ int arizona_dev_init(struct arizona *arizona)
|
|||||||
goto err_enable;
|
goto err_enable;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (arizona->pdata.reset)
|
if (arizona->pdata.reset) {
|
||||||
gpio_set_value_cansleep(arizona->pdata.reset, 1);
|
gpio_set_value_cansleep(arizona->pdata.reset, 1);
|
||||||
|
msleep(1);
|
||||||
|
}
|
||||||
|
|
||||||
regcache_cache_only(arizona->regmap, false);
|
regcache_cache_only(arizona->regmap, false);
|
||||||
|
|
||||||
@ -589,6 +591,8 @@ int arizona_dev_init(struct arizona *arizona)
|
|||||||
goto err_reset;
|
goto err_reset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
msleep(1);
|
||||||
|
|
||||||
ret = regcache_sync(arizona->regmap);
|
ret = regcache_sync(arizona->regmap);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
dev_err(dev, "Failed to sync device: %d\n", ret);
|
dev_err(dev, "Failed to sync device: %d\n", ret);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user