linux/drivers/pmdomain
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
..
actions pmdomain: Use device_get_match_data() 2023-10-17 11:45:11 +02:00
amlogic pmdomain: amlogic: remove obsolete vpu domain driver 2024-08-05 12:48:42 +02:00
apple pmdomain: apple: Make apple_pmgr_reset_ops static 2024-08-20 11:28:01 +02:00
arm pmdomain: arm: scmi_pm_domain: set flag GENPD_FLAG_ACTIVE_WAKEUP 2024-06-05 11:54:43 +02:00
bcm pmdomain: raspberrypi-power: set flag GENPD_FLAG_ACTIVE_WAKEUP 2024-08-14 14:22:39 +02:00
imx pmdomain: imx93-pd: don't unprepare clocks on driver remove 2024-09-13 12:45:39 +02:00
mediatek pmdomain: mediatek: Add MT8188 buck isolation setting 2024-04-04 11:45:36 +02:00
qcom pmdomain: qcom: rpmpd: Simplify locking with guard() 2024-09-13 12:21:04 +02:00
renesas pmdomain: renesas: rmobile-sysc: Use for_each_child_of_node_scoped() 2024-06-05 11:52:39 +02:00
rockchip pmdomain: rockchip: Simplify locking with guard() 2024-09-13 12:21:04 +02:00
samsung pmdomain: samsung: Move Kconfig option to the pmdomain subsystem 2023-10-04 23:41:56 +02:00
st pmdomain: st: Add a Kconfig option for the ux500 power domain 2023-10-04 23:41:56 +02:00
starfive pmdomain: starfive: Update prefixes for AON power domain 2023-10-04 23:41:57 +02:00
sunxi pmdomain: sunxi: Move Kconfig option to the pmdomain subsystem 2023-10-04 23:41:56 +02:00
tegra pmdomain: core: constify of_phandle_args in xlate 2024-02-14 10:26:11 +01:00
ti pmdomain: ti-sci: Fix duplicate PD referrals 2024-05-03 15:20:05 +02:00
xilinx pmdomain: core: constify of_phandle_args in xlate 2024-02-14 10:26:11 +01:00
core.c pmdomain: core: Use dev_name() instead of kobject_get_path() in debugfs 2024-08-05 13:22:34 +02:00
governor.c PM: domains: Move genpd and its governor to the pmdomain subsystem 2023-12-18 12:49:48 +01:00
Kconfig pmdomain: arm_scmi: Move Kconfig options to the pmdomain subsystem 2023-11-23 17:32:53 +01:00
Makefile PM: domains: Move genpd and its governor to the pmdomain subsystem 2023-12-18 12:49:48 +01:00