Skip to content

Commit 06f90c7

Browse files
tq-steinagregkh
authored andcommitted
ASoC: fsl_sai: Add missing registers to cache default
[ Upstream commit 90ed688792a6b7012b3e8a2f858bc3fe7454d0eb ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 2c4404d commit 06f90c7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

sound/soc/fsl/fsl_sai.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,7 @@ static struct reg_default fsl_sai_reg_defaults_ofs0[] = {
979979
{FSL_SAI_TDR6, 0},
980980
{FSL_SAI_TDR7, 0},
981981
{FSL_SAI_TMR, 0},
982+
{FSL_SAI_TTCTL, 0},
982983
{FSL_SAI_RCR1(0), 0},
983984
{FSL_SAI_RCR2(0), 0},
984985
{FSL_SAI_RCR3(0), 0},
@@ -1002,12 +1003,14 @@ static struct reg_default fsl_sai_reg_defaults_ofs8[] = {
10021003
{FSL_SAI_TDR6, 0},
10031004
{FSL_SAI_TDR7, 0},
10041005
{FSL_SAI_TMR, 0},
1006+
{FSL_SAI_TTCTL, 0},
10051007
{FSL_SAI_RCR1(8), 0},
10061008
{FSL_SAI_RCR2(8), 0},
10071009
{FSL_SAI_RCR3(8), 0},
10081010
{FSL_SAI_RCR4(8), 0},
10091011
{FSL_SAI_RCR5(8), 0},
10101012
{FSL_SAI_RMR, 0},
1013+
{FSL_SAI_RTCTL, 0},
10111014
{FSL_SAI_MCTL, 0},
10121015
{FSL_SAI_MDIV, 0},
10131016
};

0 commit comments

Comments
 (0)