Skip to content

Commit 4e91fa1

Browse files
author
Andi Shyti
committed
i2c: qcom-geni: Add missing geni_icc_disable in geni_i2c_runtime_resume
Add the missing geni_icc_disable() call before returning in the geni_i2c_runtime_resume() function. Commit 9ba48db ("i2c: qcom-geni: Add missing geni_icc_disable in geni_i2c_runtime_resume") by Gaosheng missed disabling the interconnect in one case. Fixes: bf225ed ("i2c: i2c-qcom-geni: Add interconnect support") Cc: Gaosheng Cui <cuigaosheng1@huawei.com> Cc: stable@vger.kernel.org # v5.9+ Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
1 parent 7c626ce commit 4e91fa1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/i2c/busses/i2c-qcom-geni.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -986,8 +986,10 @@ static int __maybe_unused geni_i2c_runtime_resume(struct device *dev)
986986
return ret;
987987

988988
ret = clk_prepare_enable(gi2c->core_clk);
989-
if (ret)
989+
if (ret) {
990+
geni_icc_disable(&gi2c->se);
990991
return ret;
992+
}
991993

992994
ret = geni_se_resources_on(&gi2c->se);
993995
if (ret) {

0 commit comments

Comments
 (0)