mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
ALSA: hda: cs35l56: Exit cache-only after cs35l56_wait_for_firmware_boot()
[ Upstream commit 73580ec607
]
Adds calls to disable regmap cache-only after a successful return from
cs35l56_wait_for_firmware_boot().
This is to prepare for a change in the shared ASoC module that will
leave regmap in cache-only mode after cs35l56_system_reset(). This is
to prevent register accesses going to the hardware while it is
rebooting.
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://msgid.link/r/20240408101803.43183-3-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
3ad4d29b65
commit
a73f1e25d5
1 changed files with 4 additions and 0 deletions
|
@ -603,6 +603,8 @@ static int cs35l56_hda_fw_load(struct cs35l56_hda *cs35l56)
|
|||
ret = cs35l56_wait_for_firmware_boot(&cs35l56->base);
|
||||
if (ret)
|
||||
goto err_powered_up;
|
||||
|
||||
regcache_cache_only(cs35l56->base.regmap, false);
|
||||
}
|
||||
|
||||
/* Disable auto-hibernate so that runtime_pm has control */
|
||||
|
@ -942,6 +944,8 @@ int cs35l56_hda_common_probe(struct cs35l56_hda *cs35l56, int id)
|
|||
if (ret)
|
||||
goto err;
|
||||
|
||||
regcache_cache_only(cs35l56->base.regmap, false);
|
||||
|
||||
ret = cs35l56_set_patch(&cs35l56->base);
|
||||
if (ret)
|
||||
goto err;
|
||||
|
|
Loading…
Reference in a new issue