mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 21:15:53 +02:00
ASoC: cs35l41: Handle mdsync_down reg write errors
[ Upstream commita9a3f54a23] The return code of regmap_multi_reg_write() call related to "MDSYNC down" sequence is shadowed by the subsequent wait_for_completion_timeout() invocation, which is expected to time timeout in case the write operation failed. Let cs35l41_global_enable() return the correct error code instead of -ETIMEDOUT. Fixes:f503056493("ALSA: cs35l41: Add shared boost feature") Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com> Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com> Reviewed-by: Takashi Iwai <tiwai@suse.de> Link: https://lore.kernel.org/r/20230907171010.1447274-2-cristian.ciocaltea@collabora.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
c2a311dc20
commit
61fb93fb91
|
|
@ -1243,7 +1243,7 @@ int cs35l41_global_enable(struct device *dev, struct regmap *regmap, enum cs35l4
|
|||
cs35l41_mdsync_down_seq[2].def = pwr_ctrl1;
|
||||
ret = regmap_multi_reg_write(regmap, cs35l41_mdsync_down_seq,
|
||||
ARRAY_SIZE(cs35l41_mdsync_down_seq));
|
||||
if (!enable)
|
||||
if (ret || !enable)
|
||||
break;
|
||||
|
||||
if (!pll_lock)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user