Skip to content

Commit c149841

Browse files
khayash1Wolfram Sang
authored andcommitted
i2c: designware: Add disabling clocks when probe fails
After an error occurs during probing state, dw_i2c_plat_pm_cleanup() is called. However, this function doesn't disable clocks and the clock-enable count keeps increasing. Should disable these clocks explicitly. Fixes: 7272194 ("i2c-designware: add minimal support for runtime PM") Co-developed-by: Kohei Ito <ito.kohei@socionext.com> Signed-off-by: Kohei Ito <ito.kohei@socionext.com> Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com> Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
1 parent 70e633b commit c149841

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/i2c/busses/i2c-designware-platdrv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ static int dw_i2c_plat_probe(struct platform_device *pdev)
316316

317317
exit_probe:
318318
dw_i2c_plat_pm_cleanup(dev);
319+
i2c_dw_prepare_clk(dev, false);
319320
exit_reset:
320321
reset_control_assert(dev->rst);
321322
return ret;

0 commit comments

Comments
 (0)