]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
i2c: designware: Add disabling clocks when probe fails
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Thu, 24 Jul 2025 04:22:11 +0000 (13:22 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Oct 2025 09:56:29 +0000 (11:56 +0200)
commit77ce71aaa02cab677671e434485834cbc8eb5e75
treedc6a511101946bc193dedcf9ddabcc0449f09ee5
parent07f952d5d2fb5baefe1a2d2ec90f77697f1d4136
i2c: designware: Add disabling clocks when probe fails

[ Upstream commit c149841b069ccc6e480b00e11f35a57b5d88c7bb ]

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: 7272194ed391f ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/busses/i2c-designware-platdrv.c