summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2026-05-11 17:37:11 +0300
committerWolfram Sang <wsa+renesas@sang-engineering.com>2026-05-31 00:57:19 +0300
commit3e2041ea586ae37fcea918ecb505ab9972a1201d (patch)
treeb59820087cf23ef01f6d8c144bdbfe2e488a124f
parent07d5fb537928aad4369aaff0cbae73ba38a719af (diff)
downloadlinux-3e2041ea586ae37fcea918ecb505ab9972a1201d.tar.xz
i2c: core: disable runtime PM on adapter registration failure
Runtime PM is disabled by driver core when deregistering a device (and on registration failure) but add an explicit disable to balance the enable call when adapter registration fails for symmetry. Fixes: 23a698fe65ec ("i2c: core: treat EPROBE_DEFER when acquiring SCL/SDA GPIOs") Cc: Codrin Ciubotariu <codrin.ciubotariu@microchip.com> Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
-rw-r--r--drivers/i2c/i2c-core-base.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/i2c-core-base.c b/drivers/i2c/i2c-core-base.c
index 25d66de41287..fdf7d7d50f79 100644
--- a/drivers/i2c/i2c-core-base.c
+++ b/drivers/i2c/i2c-core-base.c
@@ -1612,6 +1612,7 @@ out_reg:
device_del(&adap->dev);
err_remove_debugfs:
debugfs_remove_recursive(adap->debugfs);
+ pm_runtime_disable(&adap->dev);
err_put_adap:
init_completion(&adap->dev_released);
put_device(&adap->dev);