diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2022-09-16 14:53:52 +0100 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2022-09-20 10:34:11 +0530 |
commit | ed8d07acec73c34cbebd209ff7a37051424de60c (patch) | |
tree | 513e936721dc4c2425c502489649b707f323ca09 /drivers/soundwire | |
parent | 8039b6f3e5c777e41df34f8e996af18555a4f303 (diff) | |
download | linux-ed8d07acec73c34cbebd209ff7a37051424de60c.tar.gz linux-ed8d07acec73c34cbebd209ff7a37051424de60c.tar.bz2 linux-ed8d07acec73c34cbebd209ff7a37051424de60c.zip |
soundwire: qcom: do not send status of device 0 during alert
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>
Diffstat (limited to 'drivers/soundwire')
-rw-r--r-- | drivers/soundwire/qcom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c index c331e2db60fd..ba3c2ce84817 100644 --- 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) { |