forked from thesofproject/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ASoC: SOF: amd: Refactor spinlock_irq(&sdev->ipc_lock) sequence in ir…
…q_handler Refactor spinlock_irq(&sdev->ipc_lock) sequence in irq_handler to avoid race conditions for acquiring hw_semaphore. Signed-off-by: Venkata Prasad Potturu <[email protected]> Link: https://msgid.link/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
- Loading branch information
1 parent
8b69dba
commit 802134c
Showing
2 changed files
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
// This file is provided under a dual BSD/GPLv2 license. When using or | ||
// redistributing this file, you may do so under either license. | ||
// | ||
// Copyright(c) 2021 Advanced Micro Devices, Inc. | ||
// Copyright(c) 2021, 2023 Advanced Micro Devices, Inc. | ||
// | ||
// Authors: Balakishore Pati <[email protected]> | ||
// Ajit Kumar Pandey <[email protected]> | ||
|
@@ -188,13 +188,11 @@ irqreturn_t acp_sof_ipc_irq_thread(int irq, void *context) | |
|
||
dsp_ack = snd_sof_dsp_read(sdev, ACP_DSP_BAR, ACP_SCRATCH_REG_0 + dsp_ack_write); | ||
if (dsp_ack) { | ||
spin_lock_irq(&sdev->ipc_lock); | ||
/* handle immediate reply from DSP core */ | ||
acp_dsp_ipc_get_reply(sdev); | ||
snd_sof_ipc_reply(sdev, 0); | ||
/* set the done bit */ | ||
acp_dsp_ipc_dsp_done(sdev); | ||
spin_unlock_irq(&sdev->ipc_lock); | ||
ipc_irq = true; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters