ARM:EXYNOS4:Fix Samsung Power Domain
Subsystems (3)
PATCH 1/1 ARM:EXYNOS4:Fix Samsung Power Domain
Func:samsung_pd_init should be postponed utill end of drivers registeration because this activates runtime_suspend in advance.
For example,
If PD's runtime_suspend is called, it will power down LCD0_CONF0. Since this happens before s3cfb driver registers itself, it makes s3cfb_probe hang up with both Origen and SMDK
--- arch/arm/plat-samsung/pd.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/plat-samsung/pd.c +1 -1
@@ -92,4 +92,4 @@ static int __init samsung_pd_init(void)return ret; } -arch_initcall (samsung_pd_init); +late_initcall_sync (samsung_pd_init);
Signature · 1 line
1.7.4.1
Hello,
Quoted 7 lines · Sangwook Lee
Func:samsung_pd_init should be postponed utill end of drivers registeration because this activates
runtime_suspendin advance.For example,
If PD'sruntime_suspendis called, it will power downLCD0_CONF0. Since this happens before s3cfb driver registers itself, it makess3cfb_probehang up with both Origen and SMDK
Nope. This is completely wrong. Power domain driver should be activated before any device drivers. If the driver hangs in probe() because the power domain has been suspended, then it is a bug in that driver. Each driver should call pm_runtime_get_sync() in it's probe if it supports runtime pm. If you delay registration of power domain driver, then how do you want to probe devices that belongs to power domains which has been disabled by bootloader? Our bootloader disables all power domains that are not needed at boot time.
Best regards
Signature · 2 lines
Marek Szyprowski Samsung Poland R&D Center