Skip to content

Commit 73580ec

Browse files
rfvirgilbroonie
authored andcommitted
ALSA: hda: cs35l56: Exit cache-only after cs35l56_wait_for_firmware_boot()
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 <[email protected]> Link: https://msgid.link/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 70ee853 commit 73580ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sound/pci/hda/cs35l56_hda.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,8 @@ static int cs35l56_hda_fw_load(struct cs35l56_hda *cs35l56)
644644
ret = cs35l56_wait_for_firmware_boot(&cs35l56->base);
645645
if (ret)
646646
goto err_powered_up;
647+
648+
regcache_cache_only(cs35l56->base.regmap, false);
647649
}
648650

649651
/* Disable auto-hibernate so that runtime_pm has control */
@@ -1002,6 +1004,8 @@ int cs35l56_hda_common_probe(struct cs35l56_hda *cs35l56, int hid, int id)
10021004
if (ret)
10031005
goto err;
10041006

1007+
regcache_cache_only(cs35l56->base.regmap, false);
1008+
10051009
ret = cs35l56_set_patch(&cs35l56->base);
10061010
if (ret)
10071011
goto err;

0 commit comments

Comments
 (0)