Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: codecs: wcd937x: Fix missing de-assert of reset GPIO

The device never comes online from a reset/shutdown state, because the
driver de-asserts reset GPIO when requesting it but then, at the end of
probe() through wcd937x_reset(), leaves it asserted.

Cc: stable@vger.kernel.org
Fixes: 9be3ec196da4 ("ASoC: codecs: wcd937x: add wcd937x codec driver")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20240806114913.40022-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Mark Brown
2251db28 c0196faa

+2 -3
+2 -3
sound/soc/codecs/wcd937x.c
··· 242 242 243 243 static void wcd937x_reset(struct wcd937x_priv *wcd937x) 244 244 { 245 - usleep_range(20, 30); 246 - 247 245 gpiod_set_value(wcd937x->reset_gpio, 1); 248 - 246 + usleep_range(20, 30); 247 + gpiod_set_value(wcd937x->reset_gpio, 0); 249 248 usleep_range(20, 30); 250 249 } 251 250