diff options
author | Shengjiu Wang <shengjiu.wang@nxp.com> | 2018-08-15 09:53:07 +0800 |
---|---|---|
committer | Leonard Crestez <leonard.crestez@nxp.com> | 2018-08-24 12:41:33 +0300 |
commit | a77ad508f64b11df14b21b6544b4fb53ea1d038b (patch) | |
tree | b3a3a5b1de61f19a78c446c750f7b4b5c8d2532b /sound | |
parent | bd0c6a1823196415c8310538d05be499eead58dd (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>
Diffstat (limited to 'sound')
-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 b4c4a5b6f2d9..1b188607095e 100644 --- a/sound/soc/fsl/fsl_sai.c +++ b/sound/soc/fsl/fsl_sai.c @@ -1157,9 +1157,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: |