mirror of
https://github.com/torvalds/linux.git
synced 2026-04-25 18:12:26 -04:00
ASoC: SOF: Intel: hda-ipc: simplify handling of IPC IRQ
When using a shared IRQ between IPC interrupt and stream IOC interrupt, the interrupt handlers need to check the interrupt source before scheduling their respective IRQ threads. In the case of IPC handler, it should check if it is an IPC interrupt before waking up the IPC IRQ thread. The IPC IRQ thread, once scheduled, does not need to check the IRQ source again. So, remove the superfluous check in the thread. Remove the irq_status field from snd_sof_dev struct also as it is no longer needed. Signed-off-by: Keyon Jie <yang.jie@linux.intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
@@ -366,7 +366,6 @@ struct snd_sof_dev {
|
||||
struct snd_sof_mailbox host_box; /* Host initiated IPC */
|
||||
struct snd_sof_mailbox stream_box; /* Stream position update */
|
||||
struct snd_sof_ipc_msg *msg;
|
||||
u64 irq_status;
|
||||
int ipc_irq;
|
||||
u32 next_comp_id; /* monotonic - reset during S3 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user