why call device_resume() in suspend process

wang dengyi <[email protected]> Tue, 13 Nov 2012 19:16:11 -0800 (PST)
Newsgroups gmane.linux.swsusp.devel
Message-ID <[email protected]>
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