Message ID | 201107082124.24921.rjw@sisk.pl (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
Index: linux-2.6/drivers/base/power/domain.c =================================================================== --- linux-2.6.orig/drivers/base/power/domain.c +++ linux-2.6/drivers/base/power/domain.c @@ -519,6 +519,10 @@ static int pm_genpd_prepare(struct devic return -EBUSY; } + if (device_may_wakeup(dev) + && !(genpd->active_wakeup && genpd->active_wakeup(dev))) + pm_runtime_resume(dev); + genpd_acquire_lock(genpd); if (genpd->prepared_count++ == 0)