[PATCH] interconnect: qcom: Propagate BCM vote commit errors
From: getfeus
Date: Fri Nov 27 2026 - 04:35:06 EST
qcom_icc_set() discards the return value from
qcom_icc_bcm_voter_commit(). If the commit fails, icc_set_bw() sees
success and skips its rollback of the previous bandwidth request.
Return the commit result so the interconnect core can restore the
previous request, attempt to reapply it and report the original error.
Verified with a mocked commit failure through icc_set_bw() and on a
Huawei MateBook E Go using a one-shot -ENOMEM injection in the BCM
voter. The caller received -ENOMEM, and the previous bandwidth request
was reapplied successfully. The ARM64 kernel and modules also build
successfully.
Signed-off-by: Lee Youngjoon <getfeus@xxxxxxxxx>
---
--- a/drivers/interconnect/qcom/icc-rpmh.c
+++ b/drivers/interconnect/qcom/icc-rpmh.c
@@ -130,9 +130,7 @@
qp = to_qcom_provider(node->provider);
- qcom_icc_bcm_voter_commit(qp->voter);
-
- return 0;
+ return qcom_icc_bcm_voter_commit(qp->voter);
}
EXPORT_SYMBOL_GPL(qcom_icc_set);