Re: why call device_resume() in suspend process

Martin Fahr <[email protected]> Sun, 18 Nov 2012 12:23:04 +0100
Newsgroups gmane.linux.swsusp.devel
Message-ID <[email protected]>
Hi,

some devices need to be resumed to be able to write the hibernation 
image to the disk, since you can't write anything to a 
suspended/sleeping disk. AFAIK, it's for the sake of simplicity that a 
lot more than just the necessary devices are resumed.

Regards,

Martin

On 14/11/2012 04:16, wang dengyi wrote:
> Hi,
>
>
>
> I noticed device_resume() is called in the suspend process. Is it normal? If it is, why do TuxOnIce need to do it?
>
> In my debug, I found all devices' suspend function are called first. Then their resume function are called between this 2 output. (This is for suspend process)
>
>      PM: early thaw of devices complete after 0.616 msecs
>      ...
>
>      PM: thaw of devices complete after 399.422 msecs
>
> Regards,
>
> Dengyi
> _______________________________________________
> TuxOnIce-devel mailing list
> [email protected]
> http://lists.tuxonice.net/listinfo/tuxonice-devel
>