All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@suse.cz>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: David Brownell <david-b@pacbell.net>,
	Linux-pm mailing list <linux-pm@lists.osdl.org>,
	Pavel Machek <pavel@ucw.cz>
Subject: Re: [RFC 3/3] Runtime PM support for named power states
Date: Sun, 9 Oct 2005 22:15:34 +0200	[thread overview]
Message-ID: <20051009201534.GC11389@openzaurus.ucw.cz> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0510091044060.27612-100000@netrider.rowland.org>

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

Hi!

> > I think they need to go in one-after-one, anyway... Adding parameter
> > to resume() should definitely be separate patch, because it needs to
> > change all drivers *at once*.  Removing power_state usage can be
> > done incrementally...
> 
> I suppose it could be done like that.  It would mean keeping the
> power_state member in the structure until all the drivers are updated,
> even though the core wouldn't use it any more.

Yes... small price for being able to fix stuff incrementally.

> Another question: Initially most drivers won't set up an array of named
> states.  We could have the core treat such devices as though they were
> using a generic two-entry array: "on" and "suspend".  That would provide
> by default essentially the same functionality we have now, and it would
> allow many drivers to use the new runtime PM scheme with (almost) no
> changes.  Do you see anything wrong with that?

It will be broken for most existing drivers, anyway... I'd only enable
it if driver provided states.

> Third question: Is there a usable PCI core routine for choosing power
> states?  If not, should a PCI ->suspend method usually use the
> lowest-power available state?  I have a feeling this should involve ACPI,
> but it looks like the code hasn't been written yet.

pci_choose_state()? It even has some acpi hooks.
				Pavel
-- 
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms         


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



  reply	other threads:[~2005-10-09 20:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-30 20:31 [RFC 3/3] Runtime PM support for named power states Alan Stern
2005-10-03 18:18 ` David Brownell
2005-10-03 19:46   ` Alan Stern
2005-10-05  1:31     ` David Brownell
2005-10-05 20:08       ` Alan Stern
2005-10-05 20:48         ` Adam Belay
2005-10-05 21:16           ` Alan Stern
2005-10-05 23:34         ` David Brownell
2005-10-06 17:16           ` Alan Stern
2005-10-08 17:00         ` Pavel Machek
2005-10-09 15:08           ` Alan Stern
2005-10-09 20:15             ` Pavel Machek [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-10-05 20:45 Scott E. Preece
2005-10-05 21:24 ` Alan Stern

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=20051009201534.GC11389@openzaurus.ucw.cz \
    --to=pavel@suse.cz \
    --cc=david-b@pacbell.net \
    --cc=linux-pm@lists.osdl.org \
    --cc=pavel@ucw.cz \
    --cc=stern@rowland.harvard.edu \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.