linux/drivers/pmdomain/imx
Dario Binacchi 28717ec8b9 pmdomain: imx93-pd: don't unprepare clocks on driver remove
The removed code was added to handle the case where the power domain is
already on during the driver's probing. In this use case, the "is_off"
parameter is passed as false to pm_genpd_init() to inform it not to call
the power_on() callback, as it's unnecessary to perform the hardware
power-on procedure since the power domain is already on. Therefore, with
the call to clk_bulk_prepare_enable() by probe(), the system is in the
same operational state as when "is_off" is passed as true after the
power_on() callback execution:

 probe() -> is_off == true  -> clk_bulk_prepare_enable() called by power_on()
 probe() -> is_off == false -> clk_bulk_prepare_enable() called by probe()

Reaching the same logical and operational state, it follows that upon
driver removal, there is no need to perform different actions depending
on the power domain's on/off state during probing.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Link: https://lore.kernel.org/r/20240825143428.556439-2-dario.binacchi@amarulasolutions.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2024-09-13 12:45:39 +02:00
..
gpc.c pmdomain: imx: gpc: Simplify with scoped for each OF child loop 2024-09-13 12:21:04 +02:00
gpcv2.c pmdomain: imx: gpcv2: Simplify with scoped for each OF child loop 2024-09-13 12:21:04 +02:00
imx8m-blk-ctrl.c pmdomain: imx8mp-blk-ctrl: Error out if domains are missing in DT 2024-02-14 10:26:11 +01:00
imx8mp-blk-ctrl.c pmdomain: imx8mp-blk-ctrl: imx8mp_blk: Add fdcc clock to hdmimix domain 2024-02-14 10:26:11 +01:00
imx93-blk-ctrl.c pmdomain: imx93-blk-ctrl: Convert to platform remove callback returning void 2023-11-30 12:15:35 +01:00
imx93-pd.c pmdomain: imx93-pd: don't unprepare clocks on driver remove 2024-09-13 12:45:39 +02:00
Kconfig pmdomain: imx: Move Kconfig options to the pmdomain subsystem 2023-10-04 23:40:36 +02:00
Makefile
scu-pd.c pmdomain: imx: scu-pd: Remove duplicated clocks 2024-08-05 12:44:36 +02:00