ASoC: cs35l56: Wait for control port ready during system-resume
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Tue, 8 Aug 2023 16:47:00 +0000 (17:47 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 8 Aug 2023 21:34:02 +0000 (22:34 +0100)
commitf5eb9503e80e70c22e3d3f73a5d3c149c132407f
tree4770baadba632c0abd33b396368ce5446dbba7d8
parent853734588dcb1bf4c41a17e4d9df231965e559db
ASoC: cs35l56: Wait for control port ready during system-resume

The CS35L56 could be hard-reset during a system suspend-resume cycle,
either by the codec driver, in cs35l56_system_resume_early(), or by ACPI.
After a hard reset the driver must wait for the control port to be ready
(datasheet tIRS time) before attempting to access the CS35L56.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230808164702.21272-4-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l56.c