summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSugar Zhang <sugar.zhang@rock-chips.com>2021-08-24 13:15:59 +0300
committerMark Brown <broonie@kernel.org>2021-08-26 15:56:54 +0300
commit023a3f3a1c4f9be9cc1ae92579ba816120fb5807 (patch)
tree03edbd1967cb564af3730a9a2a264af13045665a
parent2fd276c3ee4bd42eb034f8954964a5ae74187c6b (diff)
downloadlinux-023a3f3a1c4f9be9cc1ae92579ba816120fb5807.tar.xz
ASoC: rockchip: spdif: Mark SPDIF_SMPDR as volatile
This patch marks SPDIF_SMPDR as volatile to make it resaonable, which also requires marking it as readable, even though it isn't. Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com> Link: https://lore.kernel.org/r/1629800162-12824-2-git-send-email-sugar.zhang@rock-chips.com Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/rockchip/rockchip_spdif.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/rockchip/rockchip_spdif.c b/sound/soc/rockchip/rockchip_spdif.c
index 73226a46d489..8baa473db0d2 100644
--- a/sound/soc/rockchip/rockchip_spdif.c
+++ b/sound/soc/rockchip/rockchip_spdif.c
@@ -247,6 +247,7 @@ static bool rk_spdif_rd_reg(struct device *dev, unsigned int reg)
case SPDIF_INTCR:
case SPDIF_INTSR:
case SPDIF_XFER:
+ case SPDIF_SMPDR:
return true;
default:
return false;
@@ -258,6 +259,7 @@ static bool rk_spdif_volatile_reg(struct device *dev, unsigned int reg)
switch (reg) {
case SPDIF_INTSR:
case SPDIF_SDBLR:
+ case SPDIF_SMPDR:
return true;
default:
return false;