Re: [PATCH 2/2] Fix console handling during suspend/resume

Pavel Machek
2006-06-16T21:28:11Z

Hi!

> > It's not so different from what Linus has been sketching, except
> > for the actual turn-off-DMA step. (Needed because you want to get
> > an atomic snapshot.) In terms of $SUBJECT the gain is that you
> > actually get a debuggable suspend sequence.
>
> Actually, if the _only_ thing STD wants to do, why not just have a
>
> ->freeze(dev)
> ->unfreeze(dev)
>
> call-in?

Unfortunately, it is not the _only_ thing STD needs to do. unfreeze()
must be able to reinitialize/resume the device during resume.

> In other words, if you really just want to stop the devices in order to do
> a memory snapshot, doing a "suspend" + "resume" is _way_way_way_ overkill,
> and really really fragile because it is so much more complicated. A
> simple

Well, but we need that to work for s2ram anyway.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html