kernel_samsung_a53x/sound
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
..
ac97 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aoa Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
arm Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
atmel Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core ALSA: core: add isascii() check to card ID generator 2024-11-23 23:21:43 +01:00
drivers Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
firewire ALSA: firewire-lib: Avoid division by zero in apply_constraint_to_size() 2024-11-23 23:22:01 +01:00
hda ALSA: hda: Add input value sanity checks to HDMI channel map controls 2024-11-23 23:21:03 +01:00
i2c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
isa Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mips Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
oss/dmasound Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
parisc Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci ALSA: hda/realtek: Add subwoofer quirk for Acer Predator G9-593 2024-11-23 23:22:01 +01:00
pcmcia Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ppc Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sh ALSA: sh: aica: reorder cleanup operations to avoid UAF bugs 2024-11-19 09:22:42 +01:00
soc ASoC: cs42l51: Fix some error handling paths in cs42l51_probe() 2024-11-23 23:22:03 +01:00
sparc Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
synth ALSA: emux: improve patch ioctl data validation 2024-11-19 14:19:32 +01:00
usb ALSA: line6: add hw monitor volume control to POD HD500X 2024-11-23 23:21:43 +01:00
x86 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xen Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ac97_bus.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
last.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sound_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00