]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: fsl_sai: Add missing registers to cache default
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Tue, 16 Dec 2025 10:22:45 +0000 (11:22 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 17 Dec 2025 12:01:01 +0000 (12:01 +0000)
Drivers does cache sync during runtime resume, setting all writable
registers. Not all writable registers are set in cache default, resulting
in the erorr message:
  fsl-sai 30c30000.sai: using zero-initialized flat cache, this may cause
  unexpected behavior

Fix this by adding missing writable register defaults.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Link: https://patch.msgid.link/20251216102246.676181-1-alexander.stein@ew.tq-group.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_sai.c

index 86730c2149146e5f906cf50caf84bfe21b1e1b18..2fa14fbdfe1a8336230b1c7610f2632512711825 100644 (file)
@@ -1081,6 +1081,7 @@ static const struct reg_default fsl_sai_reg_defaults_ofs0[] = {
        {FSL_SAI_TDR6, 0},
        {FSL_SAI_TDR7, 0},
        {FSL_SAI_TMR, 0},
+       {FSL_SAI_TTCTL, 0},
        {FSL_SAI_RCR1(0), 0},
        {FSL_SAI_RCR2(0), 0},
        {FSL_SAI_RCR3(0), 0},
@@ -1104,12 +1105,14 @@ static const struct reg_default fsl_sai_reg_defaults_ofs8[] = {
        {FSL_SAI_TDR6, 0},
        {FSL_SAI_TDR7, 0},
        {FSL_SAI_TMR, 0},
+       {FSL_SAI_TTCTL, 0},
        {FSL_SAI_RCR1(8), 0},
        {FSL_SAI_RCR2(8), 0},
        {FSL_SAI_RCR3(8), 0},
        {FSL_SAI_RCR4(8), 0},
        {FSL_SAI_RCR5(8), 0},
        {FSL_SAI_RMR, 0},
+       {FSL_SAI_RTCTL, 0},
        {FSL_SAI_MCTL, 0},
        {FSL_SAI_MDIV, 0},
 };