mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/7] ASoC: SOF: amd: remove unused sha dma interrupt code
@ 2023-08-23  7:33 Vijendar Mukunda
  2023-08-23  7:33 ` [PATCH 2/7] ASoC: SOF: amd: enable ACP external global interrupt Vijendar Mukunda
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Vijendar Mukunda @ 2023-08-23  7:33 UTC (permalink / raw)
  To: broonie
  Cc: alsa-devel, Basavaraj.Hiregoudar, Sunil-kumar.Dommati,
	Vijendar Mukunda, Pierre-Louis Bossart, Liam Girdwood,
	Peter Ujfalusi, Bard Liao, Ranjani Sridharan, Daniel Baluta,
	Kai Vehmanen, Jaroslav Kysela, Takashi Iwai,
	V sujith kumar Reddy, Venkata Prasad Potturu, Mastan Katragadda,
	Ajit Kumar Pandey,
	moderated list:SOUND - SOUND OPEN FIRMWARE (SOF) DRIVERS,
	open list

During initial development time for RN platform, when SHA
dma gets completed, SHA DMA engine used to raise the ACP interrupt.
In ACP interrupt handler, SHA DMA interrupt got handled.
Currently SHA DMA compleition is verified by checking
transfer count using read poll time out logic.
Remove unused SHA dma interrupt handling code.

Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
---
 sound/soc/sof/amd/acp.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/sound/soc/sof/amd/acp.c b/sound/soc/sof/amd/acp.c
index b2e00a10a03e..630c2c5fe4c7 100644
--- a/sound/soc/sof/amd/acp.c
+++ b/sound/soc/sof/amd/acp.c
@@ -337,14 +337,7 @@ static irqreturn_t acp_irq_thread(int irq, void *context)
 {
 	struct snd_sof_dev *sdev = context;
 	const struct sof_amd_acp_desc *desc = get_chip_info(sdev->pdata);
-	unsigned int val, count = ACP_HW_SEM_RETRY_COUNT;
-
-	val = snd_sof_dsp_read(sdev, ACP_DSP_BAR, desc->ext_intr_stat);
-	if (val & ACP_SHA_STAT) {
-		/* Clear SHA interrupt raised by PSP */
-		snd_sof_dsp_write(sdev, ACP_DSP_BAR, desc->ext_intr_stat, val);
-		return IRQ_HANDLED;
-	}
+	unsigned int count = ACP_HW_SEM_RETRY_COUNT;
 
 	while (snd_sof_dsp_read(sdev, ACP_DSP_BAR, desc->hw_semaphore_offset)) {
 		/* Wait until acquired HW Semaphore lock or timeout */
-- 
2.34.1


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

end of thread, other threads:[~2023-08-23 16:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-23  7:33 [PATCH 1/7] ASoC: SOF: amd: remove unused sha dma interrupt code Vijendar Mukunda
2023-08-23  7:33 ` [PATCH 2/7] ASoC: SOF: amd: enable ACP external global interrupt Vijendar Mukunda
2023-08-23  7:33 ` [PATCH 3/7] ASoC: SOF: amd: add module parameter for firmware debug Vijendar Mukunda
2023-08-23  7:33 ` [PATCH 4/7] ASoC: SOF: amd: remove redundant clock mux selection register write Vijendar Mukunda
2023-08-23  7:33 ` [PATCH 5/7] ASoC: SOF: amd: add conditional check for acp_clkmux_sel register Vijendar Mukunda
2023-08-23  7:33 ` [PATCH 6/7] ASoC: SOF: amd: clear panic mask status when panic occurs Vijendar Mukunda
2023-08-23  7:33 ` [PATCH 7/7] ASoC: SOF: amd: clear dsp to host interrupt status Vijendar Mukunda
2023-08-23 16:26 ` [PATCH 1/7] ASoC: SOF: amd: remove unused sha dma interrupt code 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®