Skip to contentSkip to conversation

ASoc: dwc: correct irq clear method

PATCH Superseded yitian 2 participants 2 messages Sep 28, 2015 – Oct 2, 2015

Subsystems (3)
lore
Share & tools
lore

yitian

author
#0 lore raw

PATCH 1/1 ASoc: dwc: correct irq clear method

from Designware I2S datasheet, irq is cleared by reading from TOR/ROR registers, rather than by writing into them.

---
 sound/soc/dwc/designware_i2s.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/dwc/designware_i2s.c +0 -0
index a3e97b4..0d28e3b 100644
@@ -131,10 +131,10 @@ static inline void i2s_clear_irqs(struct dw_i2s_dev

*dev, u32 stream)

if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
for (i = 0; i < 4; i++)
- i2s_write_reg(dev->i2s_base, TOR(i), 0);
+ i2s_read_reg(dev->i2s_base, TOR(i));
} else {
for (i = 0; i < 4; i++)
- i2s_write_reg(dev->i2s_base, ROR(i), 0);
+ i2s_read_reg(dev->i2s_base, ROR(i));
}
}

Signature · 1 line
1.7.12.4
maintainer
#1 lore raw

Applied "ASoC: dwc: correct irq clear method" to the asoc tree

The patch

ASoC: dwc: correct irq clear method

has been applied to the asoc tree at

git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark

Quoted 1 line

From 4873867e5f2bd90faad861dd94865099fc3140f3 Mon Sep 17 00:00:00 2001

From: Yitian Bu <[email protected]>
Date: Fri, 2 Oct 2015 15:18:41 +0800
Subject: [PATCH] ASoC: dwc: correct irq clear method

from Designware I2S datasheet, tx/rx XRUN irq is cleared by reading register TOR/ROR, rather than by writing into them.

---
 sound/soc/dwc/designware_i2s.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/dwc/designware_i2s.c +2 -2
index a3e97b4..0d28e3b 100644
@@ -131,10 +131,10 @@ static inline void i2s_clear_irqs(struct dw_i2s_dev *dev, u32 stream)
 
 	if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
 		for (i = 0; i < 4; i++)
-			i2s_write_reg(dev->i2s_base, TOR(i), 0);
+			i2s_read_reg(dev->i2s_base, TOR(i));
 	} else {
 		for (i = 0; i < 4; i++)
-			i2s_write_reg(dev->i2s_base, ROR(i), 0);
+			i2s_read_reg(dev->i2s_base, ROR(i));
 	}
 }
 
Signature · 1 line
2.5.0