diff options
author | Linaro CI <ci_notify@linaro.org> | 2020-04-19 22:13:43 +0000 |
---|---|---|
committer | Linaro CI <ci_notify@linaro.org> | 2020-04-19 22:13:43 +0000 |
commit | e49418a6538fdad31dececdd8f8956b969dab715 (patch) | |
tree | f6c04baf97afe6d55c5e0c2cb6d57d461ad432dd | |
parent | 53a39fcd1d9a5240b066f535b8cf3301913b5672 (diff) | |
parent | ca5c07798388eed419c1b9ff58eb531288941a7b (diff) |
Merge remote-tracking branch 'bus-scaling/icc-testing' into integration-linux-qcomlt
-rw-r--r-- | drivers/interconnect/qcom/bcm-voter.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/interconnect/qcom/bcm-voter.c b/drivers/interconnect/qcom/bcm-voter.c index 2adfde8cdf19..2a11a63e7217 100644 --- a/drivers/interconnect/qcom/bcm-voter.c +++ b/drivers/interconnect/qcom/bcm-voter.c @@ -96,6 +96,8 @@ static inline void tcs_cmd_gen(struct tcs_cmd *cmd, u64 vote_x, u64 vote_y, if (!cmd) return; + memset(cmd, 0, sizeof(*cmd)); + if (vote_x == 0 && vote_y == 0) valid = false; @@ -112,8 +114,7 @@ static inline void tcs_cmd_gen(struct tcs_cmd *cmd, u64 vote_x, u64 vote_y, * Set the wait for completion flag on command that need to be completed * before the next command. */ - if (commit) - cmd->wait = true; + cmd->wait = commit; } static void tcs_list_gen(struct list_head *bcm_list, int bucket, |