projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8039b6f
)
soundwire: qcom: do not send status of device 0 during alert
author
Srinivas Kandagatla
<srinivas.kandagatla@linaro.org>
Fri, 16 Sep 2022 13:53:52 +0000
(14:53 +0100)
committer
Vinod Koul
<vkoul@kernel.org>
Tue, 20 Sep 2022 05:04:11 +0000
(10:34 +0530)
Device0 can not be in alert status. And for consistency reasons do not
send status of device0 to core.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link:
https://lore.kernel.org/r/20220916135352.19114-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 c331e2db60fd6f1f8d8440bf5f8f493071f74123..ba3c2ce848175bd5429e21fccf9db7e5061ac358 100644
(file)
--- a/
drivers/soundwire/qcom.c
+++ b/
drivers/soundwire/qcom.c
@@
-420,7
+420,7
@@
static int qcom_swrm_get_alert_slave_dev_num(struct qcom_swrm_ctrl *ctrl)
ctrl->reg_read(ctrl, SWRM_MCP_SLV_STATUS, &val);
- for (dev_num =
0; dev_num <
SDW_MAX_DEVICES; dev_num++) {
+ for (dev_num =
1; dev_num <=
SDW_MAX_DEVICES; dev_num++) {
status = (val >> (dev_num * SWRM_MCP_SLV_STATUS_SZ));
if ((status & SWRM_MCP_SLV_STATUS_MASK) == SDW_SLAVE_ALERT) {