lkml.org 
[lkml]   [2008]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [RFC][PATCH 1/3] PM: Introduce new top level suspend and hibernation callbacks (rev. 4)
Date
On Thursday, 27 of March 2008, Alan Stern wrote:
> On Thu, 27 Mar 2008, Rafael J. Wysocki wrote:
>
> > @@ -68,22 +75,32 @@ int device_pm_add(struct device *dev)
> > dev->bus ? dev->bus->name : "No Bus",
> > kobject_name(&dev->kobj));
> > mutex_lock(&dpm_list_mtx);
> > - if ((dev->parent && dev->parent->power.sleeping) || all_sleeping) {
> > - if (dev->parent->power.sleeping)
> > - dev_warn(dev,
> > - "parent %s is sleeping, will not add\n",
> > + if (dev->parent) {
> > + if (dev->parent->power.status >= DPM_SUSPENDING) {
> > + dev_warn(dev, "parent %s is sleeping, will not add\n",
> > dev->parent->bus_id);
>
> You forgot to check for dev->parent->power.status == DPM_INVALID.

Right, will fix.

Thanks,
Rafael


\
 
 \ /
  Last update: 2008-03-27 17:29    [W:0.058 / U:4.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site