diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2015-04-16 09:41:58 +0200 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2015-04-16 09:41:58 +0200 |
commit | 36db667265fcfbf34f30f9f9e2ff1bd458166e39 (patch) | |
tree | e6af26346cbd93c25e58a8e3908c9feb2f3cf4db /sound/soc | |
parent | f95b5a8016c03c8f429115e97000c0fbbcf41e53 (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).
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/fsl/fsl_sai_ac97.c | 11 |
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 18a873fc2bdb..55d7016c1e38 100644 --- a/sound/soc/fsl/fsl_sai_ac97.c +++ b/sound/soc/fsl/fsl_sai_ac97.c @@ -543,6 +543,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) { @@ -573,6 +583,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, |