interconnect: qcom: bcm-voter: Use enable_maks for keepalive voting
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Fri, 11 Aug 2023 23:16:16 +0000 (01:16 +0200)
committerGeorgi Djakov <djakov@kernel.org>
Mon, 21 Aug 2023 22:43:56 +0000 (01:43 +0300)
commit1a70ca71547be051769f0628aa09717694f508f0
tree519915084f4c29d04079d8e985a0b36cab32b876
parenta1f4170dec440f023601d57e49227b784074d218
interconnect: qcom: bcm-voter: Use enable_maks for keepalive voting

BCMs with an enable_mask expect to only have that specific value written
to them. The current implementation only works by miracle for BCMs with
enable mask == BIT(0), as the minimal vote we've been using so far just
so happens to be equal to that.

Use the correct value with keepalive voting.

Fixes: d8630f050d3f ("interconnect: qcom: Add support for mask-based BCMs")
Reported-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20230811-topic-icc_fix_1he-v2-2-0620af8ac133@linaro.org
Signed-off-by: Georgi Djakov <djakov@kernel.org>
drivers/interconnect/qcom/bcm-voter.c