aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel/pmt/class.c
diff options
context:
space:
mode:
authorUlf Hansson <[email protected]>2025-07-01 11:47:24 +0000
committerUlf Hansson <[email protected]>2025-07-09 11:29:57 +0000
commit0e789b491ba04c31de5c71249487593e386baa67 (patch)
treeebe02b41c8f1168b86d7028249597beb71713f5d /drivers/platform/x86/intel/pmt/class.c
parentpmdomain: core: Leave powered-on genpds on until late_initcall_sync (diff)
downloadkernel-0e789b491ba04c31de5c71249487593e386baa67.tar.gz
kernel-0e789b491ba04c31de5c71249487593e386baa67.zip
pmdomain: core: Leave powered-on genpds on until sync_state
Powering-off a genpd that was on during boot, before all of its consumer devices have been probed, is certainly prone to problems. For OF based platforms we can rely on using the sync_state mechanism that the fw_devlink provides, to understand when all consumers for a genpd provider have been probed. Let's therefore prevent these genpds from being powered-off until the ->sync_state() callback gets called. Note that, for non-OF based platform we will keep relying on the late_initcall_sync, which seems to be the best we can do for now. Suggested-by: Saravana Kannan <[email protected]> Tested-by: Hiago De Franco <[email protected]> # Colibri iMX8X Tested-by: Tomi Valkeinen <[email protected]> # TI AM62A,Xilinx ZynqMP ZCU106 Signed-off-by: Ulf Hansson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions