1 From 84b1defe99a15b96d32f4c2fecb2c8e9149f696c Mon Sep 17 00:00:00 2001
2 From: Shengjiu Wang <shengjiu.wang@nxp.com>
3 Date: Wed, 15 Aug 2018 09:53:07 +0800
4 Subject: [PATCH] MLK-18947: ASoC: fsl_sai: fix volatile function
6 The FSL_SAI_VERID and FSL_SAI_PARAM only available
9 Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
10 (cherry picked from commit 0a0695672dc7ecf07a7642ff6f99f0b9d3a26b32)
12 sound/soc/fsl/fsl_sai.c | 6 ++++--
13 1 file changed, 4 insertions(+), 2 deletions(-)
15 --- a/sound/soc/fsl/fsl_sai.c
16 +++ b/sound/soc/fsl/fsl_sai.c
17 @@ -1162,9 +1162,11 @@ static bool fsl_sai_volatile_reg(struct
18 if (reg == FSL_SAI_TCSR(offset) || reg == FSL_SAI_RCSR(offset))
21 + if (sai->soc->reg_offset == 8 && (reg == FSL_SAI_VERID ||
22 + reg == FSL_SAI_PARAM))