diff options
author | Gaosheng Cui <cuigaosheng1@huawei.com> | 2024-08-03 08:10:41 +0200 |
---|---|---|
committer | Andi Shyti <andi.shyti@kernel.org> | 2024-08-05 18:33:39 +0200 |
commit | b93d16bee557302d4e588375ececd833cc048acc (patch) | |
tree | 7407f609178a1d80fa40c092ef4e17c237d29377 /drivers/i2c | |
parent | Linux 6.11-rc2 (diff) | |
download | linux-b93d16bee557302d4e588375ececd833cc048acc.tar.xz linux-b93d16bee557302d4e588375ececd833cc048acc.zip |
i2c: qcom-geni: Add missing clk_disable_unprepare in geni_i2c_runtime_resume
Add the missing clk_disable_unprepare() before return in
geni_i2c_runtime_resume().
Fixes: 14d02fbadb5d ("i2c: qcom-geni: add desc struct to prepare support for I2C Master Hub variant")
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Reviewed-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-qcom-geni.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-qcom-geni.c b/drivers/i2c/busses/i2c-qcom-geni.c index 0a8b95ce35f7..78f43648e9f3 100644 --- a/drivers/i2c/busses/i2c-qcom-geni.c +++ b/drivers/i2c/busses/i2c-qcom-geni.c @@ -990,8 +990,10 @@ static int __maybe_unused geni_i2c_runtime_resume(struct device *dev) return ret; ret = geni_se_resources_on(&gi2c->se); - if (ret) + if (ret) { + clk_disable_unprepare(gi2c->core_clk); return ret; + } enable_irq(gi2c->irq); gi2c->suspended = 0; |