ASoC: cs35l56: Don't rely on GPIOD_OUT_LOW to set RESET initially low
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Tue, 8 Aug 2023 16:46:59 +0000 (17:46 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 8 Aug 2023 21:34:01 +0000 (22:34 +0100)
commit853734588dcb1bf4c41a17e4d9df231965e559db
treeb2f4490d5f2ac2a2f21d5d866482d583f6608f68
parentebd0f7b08e032900e5327962f7da6bed6f37feb6
ASoC: cs35l56: 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>
Link: https://lore.kernel.org/r/20230808164702.21272-3-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l56.c