mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] ASoC: amd: renoir: fix disable_pdm_interrupts() to clear mask bits
@ 2026-08-24  6:35 wangdich9700
  2026-08-24  6:35 ` [PATCH 2/2] ASoC: amd: yc: fix memory leak in acp6x_pdm_dma_close() wangdich9700
  2026-09-01 13:35 ` [PATCH 1/2] ASoC: amd: renoir: fix disable_pdm_interrupts() to clear mask bits Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: wangdich9700 @ 2026-08-24  6:35 UTC (permalink / raw)
  To: tiwai, perex, lgirdwood, broonie, wangdich9700
  Cc: linux-sound, linux-kernel, wangdicheng

From: wangdicheng <wangdicheng@kylinos.cn>

disable_pdm_interrupts() uses |= ~PDM_DMA_INTR_MASK which sets all
bits except the PDM DMA interrupt bit instead of clearing only the
PDM DMA interrupt bit. Use &= ~PDM_DMA_INTR_MASK to clear only the
target bit.

Fixes: f621a3676d3f ("ASoC: amd: add ACP3x PDM platform driver")
Signed-off-by: wangdicheng <wangdicheng@kylinos.cn>
---
 sound/soc/amd/renoir/acp3x-pdm-dma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/amd/renoir/acp3x-pdm-dma.c b/sound/soc/amd/renoir/acp3x-pdm-dma.c
index e60e3821703c..3f59b753243d 100644
--- a/sound/soc/amd/renoir/acp3x-pdm-dma.c
+++ b/sound/soc/amd/renoir/acp3x-pdm-dma.c
@@ -104,7 +104,7 @@ static void disable_pdm_interrupts(void __iomem *acp_base)
 	u32 ext_int_ctrl;
 
 	ext_int_ctrl = rn_readl(acp_base + ACP_EXTERNAL_INTR_CNTL);
-	ext_int_ctrl |= ~PDM_DMA_INTR_MASK;
+	ext_int_ctrl &= ~PDM_DMA_INTR_MASK;
 	rn_writel(ext_int_ctrl, acp_base + ACP_EXTERNAL_INTR_CNTL);
 }
 
-- 
2.25.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-09-01 18:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-24  6:35 [PATCH 1/2] ASoC: amd: renoir: fix disable_pdm_interrupts() to clear mask bits wangdich9700
2026-08-24  6:35 ` [PATCH 2/2] ASoC: amd: yc: fix memory leak in acp6x_pdm_dma_close() wangdich9700
2026-09-01 13:35 ` [PATCH 1/2] ASoC: amd: renoir: fix disable_pdm_interrupts() to clear mask bits Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®