Skip to content

Commit 61b8045

Browse files
Manikanta GuntupalliAndi Shyti
authored andcommitted
i2c: cadence: Move reset_control_assert after pm_runtime_set_suspended in probe error path
Ensure reset_control_assert() is called after pm_runtime_set_suspended() in the cdns_i2c_probe exit path to maintain proper power management sequence in error cases. Signed-off-by: Manikanta Guntupalli <manikanta.guntupalli@amd.com> Signed-off-by: Andi Shyti <andi.shyti@kernel.org> Link: https://lore.kernel.org/r/20250206115708.1085523-3-manikanta.guntupalli@amd.com
1 parent 3d36dd1 commit 61b8045

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i2c/busses/i2c-cadence.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1609,9 +1609,9 @@ static int cdns_i2c_probe(struct platform_device *pdev)
16091609

16101610
err_clk_notifier_unregister:
16111611
clk_notifier_unregister(id->clk, &id->clk_rate_change_nb);
1612-
reset_control_assert(id->reset);
16131612
pm_runtime_disable(&pdev->dev);
16141613
pm_runtime_set_suspended(&pdev->dev);
1614+
reset_control_assert(id->reset);
16151615
return ret;
16161616
}
16171617

0 commit comments

Comments
 (0)