[PATCH] drivers: i2c: designware_i2c: Remove clock disabling code
Naresh Kumar Ravulapalli
nareshkumar.ravulapalli at altera.com
Tue Jul 1 06:52:17 CEST 2025
When i2c device is removed, l4_sp_clk is disabled; this would cause
unexpected behaviour for peripherals still running with l4_sp_clk.
This patch resolves the clock issue.
Signed-off-by: Tien Fong Chee <tien.fong.chee at altera.com>
Signed-off-by: Naresh Kumar Ravulapalli <nareshkumar.ravulapalli at altera.com>
---
drivers/i2c/designware_i2c.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/i2c/designware_i2c.c b/drivers/i2c/designware_i2c.c
index a54976e7889..ee3e027d694 100644
--- a/drivers/i2c/designware_i2c.c
+++ b/drivers/i2c/designware_i2c.c
@@ -807,10 +807,6 @@ int designware_i2c_remove(struct udevice *dev)
{
struct dw_i2c *priv = dev_get_priv(dev);
-#if CONFIG_IS_ENABLED(CLK)
- clk_disable(&priv->clk);
-#endif
-
return reset_release_bulk(&priv->resets);
}
--
2.35.3
More information about the U-Boot
mailing list