mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-23 07:23:12 +02:00
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: 7272194ed3
("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>
This commit is contained in:
parent
07f952d5d2
commit
77ce71aaa0
|
@ -380,6 +380,7 @@ static int dw_i2c_plat_probe(struct platform_device *pdev)
|
||||||
|
|
||||||
exit_probe:
|
exit_probe:
|
||||||
dw_i2c_plat_pm_cleanup(dev);
|
dw_i2c_plat_pm_cleanup(dev);
|
||||||
|
i2c_dw_prepare_clk(dev, false);
|
||||||
exit_reset:
|
exit_reset:
|
||||||
reset_control_assert(dev->rst);
|
reset_control_assert(dev->rst);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user