ASoC: cs42l42: Don't rely on GPIOD_OUT_LOW to set RESET initially low
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Wed, 13 Sep 2023 15:00:11 +0000 (16:00 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 13 Sep 2023 15:03:20 +0000 (16:03 +0100)
commita479b44ac0a0ac25cd48e5356200078924d78022
treee43297fbe928d59b7604f41261b8e6481008a8dd
parent41dac81b56c82c51a6d00fda5f3af7691ffee2d7
ASoC: cs42l42: Don't rely on GPIOD_OUT_LOW to set RESET initially low

The ACPI setting for a GPIO default state has higher priority than the
flag passed to devm_gpiod_get_optional() so ACPI can override the
GPIOD_OUT_LOW. Explicitly set the GPIO low when hard resetting.

Although GPIOD_OUT_LOW can't be relied on this doesn't seem like a
reason to stop passing it to devm_gpiod_get_optional(). So we still pass
it to state our intent, but can deal with it having no effect.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230913150012.604775-3-sbinding@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42l42.c