From: Andrew Morton <akpm@linux-foundation.org>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: David Brownell <david-b@pacbell.net>, Pavel Machek <pavel@ucw.cz>,
Johannes Berg <johannes@sipsolutions.net>,
Len Brown <len.brown@intel.com>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] PM: Introduce set_target method in pm_ops
Date: Thu, 28 Jun 2007 13:37:24 -0700 [thread overview]
Message-ID: <20070628133724.31cc9ace.akpm@linux-foundation.org> (raw)
In-Reply-To: <200706272356.29475.rjw@sisk.pl>
On Wed, 27 Jun 2007 23:56:28 +0200
"Rafael J. Wysocki" <rjw@sisk.pl> wrote:
> [Please consider as 2.6.22 material.]
The patch tries to patch the function suspend_devices_and_enter() which is
introduced by pm-reduce-code-duplication-between-mainc-and-userc.patch,
which won't be in 2.6.22.
> ---
> From: Rafael J. Wysocki <rjw@sisk.pl>
>
> Commit 52ade9b3b97fd3bea42842a056fe0786c28d0555 changed the suspend code
> ordering to execute pm_ops->prepare() after the device model per-device
> .suspend() calls in order to fix some ACPI-related issues. Unfortunately, it
> broke the at91 platform which assumed that pm_ops->prepare() would be called
> before suspending devices.
>
> at91 used pm_ops->prepare() to get notified of the target system sleep state, so
> that it could use this information while suspending devices. However, with the
> current suspend code ordering pm_ops->prepare() is called too late for this
> purpose. Thus, at91 needs an additional method in 'struct pm_ops' that will
> be used for notifying the platform of the target system sleep state. Moreover,
> in the future such a method will also be needed by ACPI.
>
> This patch adds the .set_target() method to 'struct pm_ops' and makes the
> suspend code call it, if implemented, before executing the device model
> per-device .suspend() calls. It also modifies the at91 code to implement
> pm_ops->set_target() instead of pm_ops->prepare().
>
next prev parent reply other threads:[~2007-06-28 20:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-27 21:56 [PATCH] PM: Introduce set_target method in pm_ops Rafael J. Wysocki
2007-06-28 20:37 ` Andrew Morton [this message]
2007-06-28 21:17 ` Rafael J. Wysocki
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=20070628133724.31cc9ace.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=david-b@pacbell.net \
--cc=johannes@sipsolutions.net \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=rjw@sisk.pl \
/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