public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: Shaohua Li <shaohua.li@intel.com>
Cc: linux-pm <linux-pm@lists.osdl.org>
Subject: Re: sysdev suspend/resume
Date: Wed, 27 Jul 2005 11:40:57 +0200	[thread overview]
Message-ID: <20050727094057.GC4270@elf.ucw.cz> (raw)
In-Reply-To: <1122456610.3000.5.camel@linux-hp.sh.intel.com>

[-- Attachment #1: Type: text/plain, Size: 845 bytes --]

Hi!

> > > +#define SYSDEV_RESUME(cls, dev, drv)			\
> > > +	/* First, call the class-specific one */ 	\
> > > +	if (cls->resume)				\
> > > +		cls->resume(dev);			\
> > > +							\
> > > +	/* Call auxillary drivers next. */ 		\
> > > +	list_for_each_entry(drv, &cls->drivers, entry) {\
> > > +		if (drv->resume) 			\
> > > +			drv->resume(dev); 		\
> > > +	}						\
> > > +							\
> > > +	/* Call global drivers. */			\
> > > +	list_for_each_entry(drv, &sysdev_drivers, entry) {\
> > > +		if (drv->resume)			\
> > > +			drv->resume(dev);		\
> > > +	}
> > 
> > Are you sure you are resuming already-resumed devices?
> What's your point? if sysdev_suspend failed, sysdev_resume isn't called,
> so it will not be resumed twice.

Probably nothing then, sorry for noise.
									Pavel

-- 
teflon -- maybe it is a trademark, but it should not be.

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



  reply	other threads:[~2005-07-27  9:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-26  5:42 sysdev suspend/resume Shaohua Li
2005-07-26 10:14 ` Pavel Machek
2005-07-27  8:50   ` Shaohua Li
2005-07-27  9:07     ` Pavel Machek
2005-07-27  9:30       ` Shaohua Li
2005-07-27  9:40         ` Pavel Machek [this message]
2005-07-27 17:43         ` Patrick Mochel
2005-07-27 18:50           ` Patrick Mochel
2005-07-28  3:10           ` Shaohua Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050727094057.GC4270@elf.ucw.cz \
    --to=pavel@ucw.cz \
    --cc=linux-pm@lists.osdl.org \
    --cc=shaohua.li@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox