Skip to content

Commit aa83615

Browse files
vijendarmukundabroonie
authored andcommitted
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>
1 parent 220adc0 commit aa83615

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

sound/soc/sof/amd/acp.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -337,14 +337,7 @@ static irqreturn_t acp_irq_thread(int irq, void *context)
337337
{
338338
struct snd_sof_dev *sdev = context;
339339
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;
348341

349342
while (snd_sof_dsp_read(sdev, ACP_DSP_BAR, desc->hw_semaphore_offset)) {
350343
/* Wait until acquired HW Semaphore lock or timeout */

0 commit comments

Comments
 (0)