mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 01:04:19 +08:00
ASoC: wm8996: Fix /RESET bounce ordering
We want to leave the device out of rather than in reset. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
b9e67e5ef3
commit
1dd4c8e42a
@ -1719,8 +1719,8 @@ static bool wm8996_volatile_register(struct device *dev, unsigned int reg)
|
|||||||
static int wm8996_reset(struct wm8996_priv *wm8996)
|
static int wm8996_reset(struct wm8996_priv *wm8996)
|
||||||
{
|
{
|
||||||
if (wm8996->pdata.ldo_ena > 0) {
|
if (wm8996->pdata.ldo_ena > 0) {
|
||||||
gpio_set_value_cansleep(wm8996->pdata.ldo_ena, 1);
|
|
||||||
gpio_set_value_cansleep(wm8996->pdata.ldo_ena, 0);
|
gpio_set_value_cansleep(wm8996->pdata.ldo_ena, 0);
|
||||||
|
gpio_set_value_cansleep(wm8996->pdata.ldo_ena, 1);
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
return regmap_write(wm8996->regmap, WM8996_SOFTWARE_RESET,
|
return regmap_write(wm8996->regmap, WM8996_SOFTWARE_RESET,
|
||||||
|
Loading…
Reference in New Issue
Block a user