Re: + rework-pm_ops-pm_disk_mode-kill-misuse.patch added to -mm tree

Pavel Machek
2007-03-22T14:03:05Z

On Thu 2007-03-22 16:41:40, Vitaly Wool wrote:
> On 3/22/07, Pavel Machek <pavel@ucw.cz> wrote:
> >Hi!
> >
> >> > No, once SOFTWARE_SUSPEND is configured there's *no way* to disable it
> >> > after the fact via pm_ops. Read valid_state() in kernel/power/main.c.
> >>
> >> So how does a platform with only flash (and an insufficient amount of
> >> flash at that) tell the suspend code that suspend-to-disk is not
> >> supported?
> >
> >Hohum, perhaps it can suspend to SD card? Or perhaps it can suspend
> >over network?
>
> Cool, imagine your MP3 player suspending over network... Or suspending
> to SD card and switching off in the middle of the process leaving the
> SD card filesystem broken. Congratulations, you've bought a nice
> device...

Then why did you ask it to suspend, and why did its manufacturer
enable SOFTWARE_SUSPEND?

Unix lets you shoot yourself into the foot. If you do not like that,
go use something else.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html