diff options
author | Shengjiu Wang <shengjiu.wang@nxp.com> | 2018-08-15 09:53:07 +0800 |
---|---|---|
committer | Dong Aisheng <aisheng.dong@nxp.com> | 2019-11-25 15:54:01 +0800 |
commit | ddf3ffebf9831d94d53cc4cdb5af5f4836ab2428 (patch) | |
tree | 71bf3e49b9b11899eadbf55e5b575853d2ca14ce /sound/soc/fsl/fsl_sai.c | |
parent | 244757cda20d66497e3607bbb8beb737ed3ca01b (diff) |
MLK-18947: ASoC: fsl_sai: fix volatile function
The FSL_SAI_VERID and FSL_SAI_PARAM only available
when reg_offset is 8
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
(cherry picked from commit 0a0695672dc7ecf07a7642ff6f99f0b9d3a26b32)
Diffstat (limited to 'sound/soc/fsl/fsl_sai.c')
-rw-r--r-- | sound/soc/fsl/fsl_sai.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index 00a14944aef8..6e7254811052 100644 --- a/sound/soc/fsl/fsl_sai.c +++ b/sound/soc/fsl/fsl_sai.c @@ -1162,9 +1162,11 @@ static bool fsl_sai_volatile_reg(struct device *dev, unsigned int reg) if (reg == FSL_SAI_TCSR(offset) || reg == FSL_SAI_RCSR(offset)) return true; + if (sai->soc->reg_offset == 8 && (reg == FSL_SAI_VERID || + reg == FSL_SAI_PARAM)) + return true; + switch (reg) { - case FSL_SAI_VERID: - case FSL_SAI_PARAM: case FSL_SAI_TFR0: case FSL_SAI_TFR1: case FSL_SAI_TFR2: |