From: Pavel Machek <pavel@suse.cz>
To: Patrick Mochel <mochel@digitalimplant.org>
Cc: akpm@osdl.org, torvalds@osdl.org, linux-kernel@vger.kernel.org,
linux-pm@osdl.org
Subject: Re: [PATCH 3/5] [pm] Respect the actual device power states in sysfs interface
Date: Mon, 20 Feb 2006 18:58:42 +0100 [thread overview]
Message-ID: <20060220175842.GH19156@elf.ucw.cz> (raw)
In-Reply-To: <Pine.LNX.4.50.0602200938320.12708-100000@monsoon.he.net>
[-- Attachment #1: Type: text/plain, Size: 1201 bytes --]
Hi!
> > > > Compatibility is already restored.
> > >
> > > No, the interface is currently broken. The driver core does not
> > > dictate
> >
> > There were two different interfaces, one accepted 0 and 2, everything
> > else was invalid, and second accepted 0, 1, 2, 3.
> >
> > If you enter D2 on echo 2, you are breaking compatibility with 2.6.15
> > or something like that.
>
> I don't see how this is true. If a process writes "2" to a PCI device's
> state file, what else are sane things to do?
In some kernel version (2.6.15, iirc), device entered D3 if you wrote
"2" to state file, and there are programs out there that depend on
it. And there are some older programs that write "3" and expect D3. So
this interface really needs to die.
> You dropped the fundamental point, and I don't understand why you disagree
> with it - the driver core should not be dictating policy to the downstream
> drivers. It is currently doing this by filtering the power state that is
> passed in via the "state" file.
That's best we can do to stay compatible. Please introduce new file,
and make states string-based.
Pavel
--
Web maintainer for suspend.sf.net (www.sf.net/projects/suspend) wanted...
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
next prev parent reply other threads:[~2006-02-20 17:58 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-18 2:03 [PATCH 3/5] [pm] Respect the actual device power states in sysfs interface Patrick Mochel
2006-02-18 15:55 ` Pavel Machek
2006-02-19 23:59 ` Patrick Mochel
2006-02-20 0:09 ` Pavel Machek
2006-02-20 0:17 ` Patrick Mochel
2006-02-20 0:20 ` Pavel Machek
2006-02-20 0:36 ` Patrick Mochel
2006-02-20 0:41 ` Pavel Machek
2006-02-20 17:55 ` Patrick Mochel
2006-02-20 17:58 ` Pavel Machek [this message]
2006-02-20 18:08 ` Patrick Mochel
2006-02-20 18:10 ` [linux-pm] " Pavel Machek
2006-02-20 0:46 ` Greg KH
2006-02-20 17:58 ` [linux-pm] " Patrick Mochel
2006-02-20 22:04 ` Greg KH
2006-02-21 1:09 ` Patrick Mochel
2006-02-21 10:57 ` Pavel Machek
2006-02-21 11:12 ` Patrick Mochel
2006-02-21 11:25 ` Pavel Machek
2006-02-27 19:06 ` Patrick Mochel
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=20060220175842.GH19156@elf.ucw.cz \
--to=pavel@suse.cz \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@osdl.org \
--cc=mochel@digitalimplant.org \
--cc=torvalds@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