From: David Brownell <david-b@pacbell.net>
To: Greg KH <greg@kroah.com>
Cc: linux-pm@lists.osdl.org, Greg KH <gregkh@suse.de>,
Brice Goglin <brice@myri.com>
Subject: Re: class suspend()/resume() broken
Date: Sun, 17 Dec 2006 19:27:24 -0800 [thread overview]
Message-ID: <200612171927.25107.david-b@pacbell.net> (raw)
In-Reply-To: <20061215190150.GA18185@kroah.com>
On Friday 15 December 2006 11:01 am, Greg KH wrote:
> On Tue, Dec 12, 2006 at 10:15:39AM -0800, David Brownell wrote:
> >
> > Speaking of those new PM methods ... Greg, I tried refreshing my
> > patch that uses class suspend() and resume() methods with RTCs to
> > adjust the system clock properly on resume. But neither method
> > is getting called any more. Did that break with the class device
> > changes?
>
> It shouldn't have, but to be honest, I haven't paid attention to it.
Well, it seems broken and, pending "git bisect", those patches are
the obvious candidate.
Maybe it's related to "dev->class" now being "optional"? And, it
seems, null ... I'm not clear on how devices associated with two
or more classes would work, either.
In general, _using_ those class suspend()/resume() calls was kind
of painful since what's needed is the class_device, and there's no
obvious way to get from a device back to that. That RTC patch
originally worked via some really ugly and not-generalizable code
that relied on there being only one class_device used to restore
the clock after resume, so it could just look at every device given
to those calls, and ignore it if it wasn't the one associated with
that class_device.
I have a sneaking suspicion that we're missing back-links from
devices to their associated classes, but to justify that I'd
have to dive deep into the driver model again. :(
- Dave
prev parent reply other threads:[~2006-12-18 3:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-12 10:17 /sys/devices/.../power/state broken? Brice Goglin
2006-12-12 15:42 ` Alan Stern
2006-12-12 18:15 ` David Brownell
2006-12-15 19:01 ` Greg KH
2006-12-18 3:27 ` David Brownell [this message]
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=200612171927.25107.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=brice@myri.com \
--cc=greg@kroah.com \
--cc=gregkh@suse.de \
--cc=linux-pm@lists.osdl.org \
/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