summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2016-02-24 13:40:59 -0800
committerStefan Agner <stefan.agner@toradex.com>2016-02-25 15:14:10 -0800
commit7826cd2effcb6413c0e98c75c5ba29149c61a6ba (patch)
treee44ba2124c1bf306416cbf2d4b477176c902258e /sound
parent661410c43938c9d74c897d8ad5aab6f95a5b9310 (diff)
ASoC: fsl_sai_ac97: mark FIFO register as precious
Mark the RX FIFO register as precious to avoid AC97 to get asynachrounous (e.g. when reading regmap sysfs debug files). Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/fsl/fsl_sai_ac97.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sound/soc/fsl/fsl_sai_ac97.c b/sound/soc/fsl/fsl_sai_ac97.c
index 34fa8b3a4527..23acac2cf45e 100644
--- a/sound/soc/fsl/fsl_sai_ac97.c
+++ b/sound/soc/fsl/fsl_sai_ac97.c
@@ -544,6 +544,16 @@ static bool fsl_sai_volatile_reg(struct device *dev, unsigned int reg)
}
+static bool fsl_sai_precious_reg(struct device *dev, unsigned int reg)
+{
+ switch (reg) {
+ case FSL_SAI_RDR:
+ return true;
+ default:
+ return false;
+ }
+}
+
static bool fsl_sai_writeable_reg(struct device *dev, unsigned int reg)
{
switch (reg) {
@@ -574,6 +584,7 @@ static struct regmap_config fsl_sai_regmap_config = {
.val_bits = 32,
.max_register = FSL_SAI_RMR,
+ .precious_reg = fsl_sai_precious_reg,
.readable_reg = fsl_sai_readable_reg,
.volatile_reg = fsl_sai_volatile_reg,
.writeable_reg = fsl_sai_writeable_reg,