mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
ASoC: codec: tlv320aic32x4: Fix reset GPIO check
rstn_gpio being a GPIO descriptor the check is wrong (inverted) for
releasing the reset of the codec.
Fixes: 790d5f8ee6 ("ASoC: codec: tlv320aic32x4: Convert to GPIO descriptors")
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Link: https://patch.msgid.link/20250716065708.4041153-1-alexander.stein@ew.tq-group.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
aa84580e05
commit
8778837f0a
|
|
@ -1388,7 +1388,7 @@ int aic32x4_probe(struct device *dev, struct regmap *regmap,
|
|||
return ret;
|
||||
}
|
||||
|
||||
if (!aic32x4->rstn_gpio) {
|
||||
if (aic32x4->rstn_gpio) {
|
||||
ndelay(10);
|
||||
/* deassert reset */
|
||||
gpiod_set_value_cansleep(aic32x4->rstn_gpio, 0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user