public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Arnaud Faucher <arnaud.faucher@gmail.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>,
	Carlos Corbacho <carlos@strangeworlds.co.uk>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Frans Pop <elendil@planet.nl>,
	Manuel Lauss <manuel.lauss@gmail.com>, Erik Ekman <erik@kryo.se>,
	Mark Brown <broonie@opensource.wolfsonmicro.com>
Subject: Re: [PATCH 1/1] acer-wmi: switch driver to dev_pm_ops
Date: Wed, 29 Jul 2009 18:53:45 -0400	[thread overview]
Message-ID: <1248908025.3998.15.camel@green> (raw)
In-Reply-To: <20090729213756.D23EF526EC9@mailhub.coreip.homeip.net>

On Wed, Jul 29, 2009 at 14:03 -0700, Dmitry Torokhov wrote:
> On Wed, Jul 29, 2009 at 10:49:46PM +0200, Rafael J. Wysocki wrote:
> > On Wednesday 29 July 2009, Arnaud Faucher wrote:
> > 
> > > As per the pm.h documentation .thaw is called after RAM image has been
> > > created, in order to restore hardware state in case RAM image failed and
> > > the system cannot power off.
> > 
> > That's not correct (please see above).  .thaw() is called after creating the
> > image in case .freeze() has changed the state of the device.  This often is not
> > necessary, though, so .thaw() may be skipped in many cases.  Of course, you
> > should know exactly what you're doing.
> > 
> 
> Umm, but thaw() _is_ called in case of hibernate failure:
> 
>         case PM_EVENT_THAW:
>         case PM_EVENT_RECOVER:
>                 if (ops->thaw) {
>                         error = ops->thaw(dev);
>                         suspend_report_result(ops->thaw, error);
>                 }
>                 break;
> 
> so I don't believe you can easily skip thaw() if you have freeze() that
> stops/resets device.
> 

As of today, acer_platform_freeze() does not stop/reset any device, so,
I agree with Rafael that for acer-wmi, .thaw() can be skipped. I had
also tested this configuration and it was working like the non-patched
code.

Carlos, do you think that any acer-specific hardware could be switched
off or reset inside acer_platform_freeze() ? If this was the case, we
would have to wire .thaw()...


  reply	other threads:[~2009-07-29 22:53 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-25 13:04 [PATCH 1/1] acer-wmi: switch driver to dev_pm_ops Arnaud Faucher
2009-07-25 17:43 ` Dmitry Torokhov
2009-07-25 20:04   ` Rafael J. Wysocki
2009-07-26 13:53     ` Arnaud Faucher
2009-07-26 14:23       ` Carlos Corbacho
2009-07-26 18:08         ` Dmitry Torokhov
2009-07-26 18:35           ` Carlos Corbacho
2009-07-26 20:28             ` Arnaud Faucher
2009-07-26 21:33               ` Dmitry Torokhov
2009-07-26 22:51                 ` Arnaud Faucher
2009-07-28 23:39                   ` Arnaud Faucher
2009-07-29 20:49                     ` Rafael J. Wysocki
2009-07-29 21:03                       ` Dmitry Torokhov
2009-07-29 22:53                         ` Arnaud Faucher [this message]
2009-07-30 22:05                           ` Arnaud Faucher
2009-07-31 11:56                             ` Rafael J. Wysocki
2009-07-29 23:27                         ` Rafael J. Wysocki
2009-07-25 20:10   ` Arnaud Faucher

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=1248908025.3998.15.camel@green \
    --to=arnaud.faucher@gmail.com \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=carlos@strangeworlds.co.uk \
    --cc=dmitry.torokhov@gmail.com \
    --cc=elendil@planet.nl \
    --cc=erik@kryo.se \
    --cc=linux-kernel@vger.kernel.org \
    --cc=manuel.lauss@gmail.com \
    --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