lkml.org 
[lkml]   [2011]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 5] PM: Update comments describing device power management callbacks
On Mon, 21 Nov 2011, Rafael J. Wysocki wrote:

> > > I said "Analogous to @suspend()" instead. I'm not sure why this is not
> > > sufficient?
> >
> > Because @suspend() is very different! Its description basically says
> > to do three things:
> >
> > Quiesce the device,
> >
> > Put it into a low-power state,
> >
> > And enable wakeup events.
>
> No, it doesn't any more. It's being changed by the proposed patch too. :-)

I must have missed reading that part. Okay... but it seems weird that
none of the new descriptions says anything about changing the power
state. Shouldn't the description of @suspend say something like "For
many platforms and subsystems, the device should be put in a low-power
state"?

> > @freeze() is supposed to do the first but not the second or third.
> > This makes it only 33% similar to @suspend(). :-)
> >
> > Also, the description of @suspend() says nothing about having a
> > consistent memory image.
>
> Because that is irrelevant. The state of the device after the resume
> has to be consistent, regardless of whether the resume is from RAM or
> from an on-disk image.

Sure, the device's state will be consistent. But will the contents of
memory image be consistent? Not if the device was doing DMA writes
during the time when the image was created.

Alan Stern



\
 
 \ /
  Last update: 2011-11-21 23:25    [W:0.057 / U:0.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site