kernel_samsung_a53x/sound/soc
Christophe JAILLET 8c39654bf2 ASoC: cs42l51: Fix some error handling paths in cs42l51_probe()
[ Upstream commit d221b844ee79823ffc29b7badc4010bdb0960224 ]

If devm_gpiod_get_optional() fails, we need to disable previously enabled
regulators, as done in the other error handling path of the function.

Also, gpiod_set_value_cansleep(, 1) needs to be called to undo a
potential gpiod_set_value_cansleep(, 0).
If the "reset" gpio is not defined, this additional call is just a no-op.

This behavior is the same as the one already in the .remove() function.

Fixes: 11b9cd748e31 ("ASoC: cs42l51: add reset management")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/a5e5f4b9fb03f46abd2c93ed94b5c395972ce0d1.1729975570.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:22:03 +01:00
..
adi
amd
atmel
au1x ASoC: allow module autoloading for table db1200_pids 2024-11-23 23:21:14 +01:00
bcm
cirrus
codecs ASoC: cs42l51: Fix some error handling paths in cs42l51_probe() 2024-11-23 23:22:03 +01:00
dwc
fsl ASoC: fsl_sai: Enable 'FIFO continue on error' FCONT bit 2024-11-23 23:22:00 +01:00
generic ASoC: Fix 7/8 spaces indentation in Kconfig 2024-11-19 11:32:42 +01:00
hisilicon
img
intel ASoC: intel: fix module autoloading 2024-11-23 23:21:15 +01:00
jz4740
kirkwood
mediatek
meson ASoC: meson: axg-card: fix 'use-after-free' 2024-11-23 23:21:13 +01:00
mxs
pxa ARM: pxa: spitz: use gpio descriptors for audio 2024-11-23 23:20:06 +01:00
qcom ASoC: qcom: Fix NULL Dereference in asoc_qcom_lpass_cpu_platform_probe() 2024-11-23 23:22:02 +01:00
rockchip
samsung
sh
sirf
sof
spear
sprd
sti
stm
sunxi
tegra ASoC: tegra: Fix DSPK 16-bit playback 2024-11-19 11:32:48 +01:00
ti ASoC: ti: omap-hdmi: Fix too long driver name 2024-11-19 14:19:48 +01:00
txx9
uniphier
ux500
xilinx
xtensa
zte
Kconfig
Makefile
soc-ac97.c
soc-acpi.c
soc-card.c
soc-component.c
soc-compress.c
soc-core.c
soc-dai.c
soc-dapm.c ASoC: dapm: Fix UAF for snd_soc_pcm_runtime object 2024-11-23 23:20:59 +01:00
soc-devres.c
soc-generic-dmaengine-pcm.c ALSA: dmaengine: Synchronize dma channel after drop() 2024-11-19 14:19:48 +01:00
soc-jack.c
soc-link.c
soc-ops.c
soc-pcm.c
soc-topology.c ASoC: topology: Properly initialize soc_enum values 2024-11-23 23:21:04 +01:00
soc-utils.c