From: Sugar Zhang Date: Tue, 24 Aug 2021 10:15:59 +0000 (+0800) Subject: ASoC: rockchip: spdif: Mark SPDIF_SMPDR as volatile X-Git-Tag: accepted/tizen/unified/20230118.172025~6151^2~1^2~43^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=023a3f3a1c4f9be9cc1ae92579ba816120fb5807;p=platform%2Fkernel%2Flinux-rpi.git 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 Link: https://lore.kernel.org/r/1629800162-12824-2-git-send-email-sugar.zhang@rock-chips.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/rockchip/rockchip_spdif.c b/sound/soc/rockchip/rockchip_spdif.c index 73226a4..8baa473 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;