projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c40d6b3
)
soundwire: qcom: update status correctly with mask
author
Srinivas Kandagatla
<srinivas.kandagatla@linaro.org>
Thu, 25 May 2023 13:38:09 +0000
(14:38 +0100)
committer
Vinod Koul
<vkoul@kernel.org>
Wed, 12 Jul 2023 17:00:15 +0000
(22:30 +0530)
SoundWire device status can be incorrectly updated without
proper mask, fix this by adding a mask before updating the status.
Fixes:
c7d49c76d1d5
("soundwire: qcom: add support to new interrupts")
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link:
https://lore.kernel.org/r/20230525133812.30841-2-srinivas.kandagatla@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/qcom.c
patch
|
blob
|
history
diff --git
a/drivers/soundwire/qcom.c
b/drivers/soundwire/qcom.c
index
7970fdb
..
c029e4d
100644
(file)
--- a/
drivers/soundwire/qcom.c
+++ b/
drivers/soundwire/qcom.c
@@
-540,7
+540,7
@@
static int qcom_swrm_get_alert_slave_dev_num(struct qcom_swrm_ctrl *ctrl)
status = (val >> (dev_num * SWRM_MCP_SLV_STATUS_SZ));
if ((status & SWRM_MCP_SLV_STATUS_MASK) == SDW_SLAVE_ALERT) {
- ctrl->status[dev_num] = status;
+ ctrl->status[dev_num] = status
& SWRM_MCP_SLV_STATUS_MASK
;
return dev_num;
}
}