mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-10 07:50:04 +00:00
ARM: keystone: Make PM bus ready before populating platform devices
Keystone PM bus makes use of generic PM clock core backend. Since generic PM clock core uses platform bus notifiers to track events like ADD_DEVICE/DEL_DEVICE and to fill clock lists per each device, we need to initialise Keystone PM domains before the platform devices have been created. Hence, fix it by moving keystone_pm_runtime_init() before platform devices have been populated. Reported-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
This commit is contained in:
parent
df595a9d70
commit
8308a78db8
@ -41,6 +41,7 @@ static void __init keystone_init(void)
|
||||
if (WARN_ON(!keystone_rstctrl))
|
||||
pr_warn("ti,keystone-reset iomap error\n");
|
||||
|
||||
keystone_pm_runtime_init();
|
||||
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
|
||||
}
|
||||
|
||||
|
@ -18,6 +18,7 @@
|
||||
extern struct smp_operations keystone_smp_ops;
|
||||
extern void secondary_startup(void);
|
||||
extern u32 keystone_cpu_smc(u32 command, u32 cpu, u32 addr);
|
||||
extern int keystone_pm_runtime_init(void);
|
||||
|
||||
#endif /* __ASSEMBLER__ */
|
||||
#endif /* __KEYSTONE_H__ */
|
||||
|
@ -79,4 +79,3 @@ int __init keystone_pm_runtime_init(void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
subsys_initcall(keystone_pm_runtime_init);
|
||||
|
Loading…
x
Reference in New Issue
Block a user