Skip to content

Commit 72bbf6e

Browse files
vijendarmukundavinodkoul
authored andcommitted
soundwire: amd: add check for status update registers
Add check to proceed handling SoundWire interrupts when valid status is reported in any one of the status registers. Signed-off-by: Vijendar Mukunda <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 8168dba commit 72bbf6e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/soundwire/amd_manager.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -931,6 +931,9 @@ static void amd_sdw_irq_thread(struct work_struct *work)
931931

932932
status_change_8to11 = readl(amd_manager->mmio + ACP_SW_STATE_CHANGE_STATUS_8TO11);
933933
status_change_0to7 = readl(amd_manager->mmio + ACP_SW_STATE_CHANGE_STATUS_0TO7);
934+
if (!status_change_0to7 && !status_change_8to11)
935+
return;
936+
934937
dev_dbg(amd_manager->dev, "[SDW%d] SDW INT: 0to7=0x%x, 8to11=0x%x\n",
935938
amd_manager->instance, status_change_0to7, status_change_8to11);
936939
if (status_change_8to11 & AMD_SDW_WAKE_STAT_MASK)

0 commit comments

Comments
 (0)