From 2d0cc419474c35dfdec76b0363ff65c15fa103a2 Mon Sep 17 00:00:00 2001 From: Nicolin Chen Date: Tue, 24 Jun 2014 14:44:18 +0800 Subject: ENGR00320241 ASoC: fsl_spdif: Complete the volatile register list Not only SIS but also other read-only or write-only reigsters should be marked as volatile register so as not to let regcache cache them. So this patch just adds those missing registers. Signed-off-by: Nicolin Chen (cherry picked from commit 56ad235ba23274fc05422ad4b13153d1c56801c4) --- sound/soc/fsl/fsl_spdif.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sound') diff --git a/sound/soc/fsl/fsl_spdif.c b/sound/soc/fsl/fsl_spdif.c index b18269b29db8..17b57caf49c9 100644 --- a/sound/soc/fsl/fsl_spdif.c +++ b/sound/soc/fsl/fsl_spdif.c @@ -1029,6 +1029,15 @@ static bool fsl_spdif_volatile_reg(struct device *dev, unsigned int reg) { switch (reg) { case REG_SPDIF_SIS: + case REG_SPDIF_SRL: + case REG_SPDIF_SRR: + case REG_SPDIF_SRCSH: + case REG_SPDIF_SRCSL: + case REG_SPDIF_SRU: + case REG_SPDIF_SRQ: + case REG_SPDIF_STL: + case REG_SPDIF_STR: + case REG_SPDIF_SRFM: return true; default: return false; -- cgit v1.2.3