]> git.baikalelectronics.ru Git - kernel.git/commit
interconnect: qcom: icc-rpmh: Add BCMs to commit list in pre_aggregate
authorMike Tipton <mdtipton@codeaurora.org>
Wed, 21 Jul 2021 17:54:32 +0000 (10:54 -0700)
committerGeorgi Djakov <djakov@kernel.org>
Fri, 30 Jul 2021 13:52:21 +0000 (16:52 +0300)
commit2a691e75126a8577731366e46c5d479db5962e39
treefbf1ed636fc0911aa1ff8e06a20dc4489696e022
parent9df6bd3f7b390ddd3549345f467d19625cc416cc
interconnect: qcom: icc-rpmh: Add BCMs to commit list in pre_aggregate

We're only adding BCMs to the commit list in aggregate(), but there are
cases where pre_aggregate() is called without subsequently calling
aggregate(). In particular, in icc_sync_state() when a node with initial
BW has zero requests. Since BCMs aren't added to the commit list in
these cases, we don't actually send the zero BW request to HW. So the
resources remain on unnecessarily.

Add BCMs to the commit list in pre_aggregate() instead, which is always
called even when there are no requests.

Fixes: b43753733b3f ("interconnect: qcom: Consolidate interconnect RPMh support")
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
Link: https://lore.kernel.org/r/20210721175432.2119-5-mdtipton@codeaurora.org
Signed-off-by: Georgi Djakov <djakov@kernel.org>
drivers/interconnect/qcom/icc-rpmh.c