Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: SOF: amd: remove unused sha dma interrupt code

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>
Link: https://lore.kernel.org/r/20230823073340.2829821-1-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Vijendar Mukunda and committed by
Mark Brown
aa836152 220adc0f

+1 -8
+1 -8
sound/soc/sof/amd/acp.c
··· 337 337 { 338 338 struct snd_sof_dev *sdev = context; 339 339 const struct sof_amd_acp_desc *desc = get_chip_info(sdev->pdata); 340 - unsigned int val, count = ACP_HW_SEM_RETRY_COUNT; 341 - 342 - val = snd_sof_dsp_read(sdev, ACP_DSP_BAR, desc->ext_intr_stat); 343 - if (val & ACP_SHA_STAT) { 344 - /* Clear SHA interrupt raised by PSP */ 345 - snd_sof_dsp_write(sdev, ACP_DSP_BAR, desc->ext_intr_stat, val); 346 - return IRQ_HANDLED; 347 - } 340 + unsigned int count = ACP_HW_SEM_RETRY_COUNT; 348 341 349 342 while (snd_sof_dsp_read(sdev, ACP_DSP_BAR, desc->hw_semaphore_offset)) { 350 343 /* Wait until acquired HW Semaphore lock or timeout */