1 May 2012 21:17
Re: [PATCH] drivers: genpd: let platform code to register devices into disabled domains
Rafael J. Wysocki <rjw <at> sisk.pl>
2012-05-01 19:17:39 GMT
2012-05-01 19:17:39 GMT
On Sunday, April 29, 2012, Rafael J. Wysocki wrote:
> On Friday, April 06, 2012, Marek Szyprowski wrote:
> > Some bootloaders disable power domains on boot and the platform startup
> > code registers them in the 'disabled' state. Current gen_pd code assumed
> > that the devices can be registered only to the power domain which is in
> > 'enabled' state and these devices are active at the time of the
> > registration. This is not correct in our case. This patch lets drivers
> > to be registered into 'disabled' power domains and finally solves
> > mysterious freezes and lack of resume/suspend calls on Samsung Exynos4
> > NURI and UniversalC210 platforms.
> >
> > Signed-off-by: Marek Szyprowski <m.szyprowski <at> samsung.com>
> > Signed-off-by: Kyungmin Park <kyungmin.park <at> samsung.com>
> > ---
> > drivers/base/power/domain.c | 7 +------
> > 1 files changed, 1 insertions(+), 6 deletions(-)
> >
> > diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c
> > index 73ce9fb..05f5799f 100644
> > --- a/drivers/base/power/domain.c
> > +++ b/drivers/base/power/domain.c
> > <at> <at> -1211,11 +1211,6 <at> <at> int __pm_genpd_add_device(struct generic_pm_domain *genpd, struct device *dev,
> >
> > genpd_acquire_lock(genpd);
> >
> > - if (genpd->status == GPD_STATE_POWER_OFF) {
> > - ret = -EINVAL;
> > - goto out;
> > - }
> > -
(Continue reading)
RSS Feed