Skip to content

Commit f84d41b

Browse files
Srinivas-Kandagatlavinodkoul
authored andcommitted
soundwire: qcom: update status correctly with mask
SoundWire device status can be incorrectly updated without proper mask, fix this by adding a mask before updating the status. Fixes: c7d49c7 ("soundwire: qcom: add support to new interrupts") Signed-off-by: Srinivas Kandagatla <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent c40d6b3 commit f84d41b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/soundwire/qcom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ static int qcom_swrm_get_alert_slave_dev_num(struct qcom_swrm_ctrl *ctrl)
540540
status = (val >> (dev_num * SWRM_MCP_SLV_STATUS_SZ));
541541

542542
if ((status & SWRM_MCP_SLV_STATUS_MASK) == SDW_SLAVE_ALERT) {
543-
ctrl->status[dev_num] = status;
543+
ctrl->status[dev_num] = status & SWRM_MCP_SLV_STATUS_MASK;
544544
return dev_num;
545545
}
546546
}

0 commit comments

Comments
 (0)