Revert "PM / Domains: Sync runtime PM status with genpd after probe"
authorHyungwon Hwang <human.hwang@samsung.com>
Wed, 5 Aug 2015 13:33:32 +0000 (22:33 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 14 Dec 2016 04:47:04 +0000 (13:47 +0900)
After this patch, disp-pm-domain is powered down at boot. Powering down
this domain, and powering up later is OK. But the kernel hangs up when
repareting the clocks just after powering up the domain.

Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
drivers/base/power/domain.c

index 2327613..e178533 100644 (file)
@@ -2146,17 +2146,6 @@ static void genpd_dev_pm_detach(struct device *dev, bool power_off)
        genpd_queue_power_off_work(pd);
 }
 
-static void genpd_dev_pm_sync(struct device *dev)
-{
-       struct generic_pm_domain *pd;
-
-       pd = dev_to_genpd(dev);
-       if (IS_ERR(pd))
-               return;
-
-       genpd_queue_power_off_work(pd);
-}
-
 /**
  * genpd_dev_pm_attach - Attach a device to its PM domain using DT.
  * @dev: Device to attach.
@@ -2223,7 +2212,6 @@ int genpd_dev_pm_attach(struct device *dev)
        }
 
        dev->pm_domain->detach = genpd_dev_pm_detach;
-       dev->pm_domain->sync = genpd_dev_pm_sync;
        pm_genpd_poweron(pd);
 
        return 0;