]> Gentwo Git Trees - linux/.git/commit
clk: imx95-blk-ctl: Save/restore registers when RPM routines are called
authorLaurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Mon, 4 Aug 2025 13:14:50 +0000 (16:14 +0300)
committerAbel Vesa <abel.vesa@linaro.org>
Fri, 12 Sep 2025 14:28:29 +0000 (17:28 +0300)
commit14be8b7b6cbc0a072c749e46e28d66e0ea6d0857
tree05e9673f9c4e504547df9f5ef536c3340d2ba8a7
parentaa1735d72bc085c4d107fb2017c597f83bb9490c
clk: imx95-blk-ctl: Save/restore registers when RPM routines are called

When runtime PM is used for clock providers that are part of a power
domain, the power domain supply is cut off during runtime suspend. This
causes all BLK CTL registers belonging to that power domain to reset. To
prevent this, save the state of the registers before entering suspend
and restore them on resume. Additionally, disable the APB clock during
suspend to minimize power consumption.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20250804131450.3918846-3-laurentiu.palcu@oss.nxp.com
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
drivers/clk/imx/clk-imx95-blk-ctl.c