Questions for Power Management Code in linux with ARM

view full story

http://www.linuxquestions.org – hi there ! I am engineer in S.K concetrating in solving How P.M work in linux As already written in this. I am stuck in P.M not to know How P.M works I started with writing command to start standby >echo standby > /sys/power/state <-- this is written in DOC in kernel Directory After writing command I saw few message but this P.M is restarted So I looked into the code to know Why ???? enter_state{ ... susped_devices_and_enter(state); .. } int suspend_device_and_enter(state){ ... suspend_enter(state) <--- all device and file systems is suspeded : OK .. Resume_devices: device_resume(); Resume_console: resume_console(); return error; <--- return which I saw is only one } at this point I really Qurious about if code is correct All device is not suspend because of as soon as suspending All deivce is wakeup because of calling resume_devices ?????? Why ?????? this is What my Device says [root@IRISID proc]# echo standby > /sys/power/state Syncing filesystems ... done. PM: Preparing system for standby sleep Freezing user space processes ... (elapsed 0.00 seconds) done. Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done. PM: Entering standby sleep Suspending console(s) mmc1: card 5b02 removed MMC: killing requests for dead queue K 764, s3c6410_pm_entertimer tcon=00600000, tcnt 103c3, tcfg 00000400,00000000, usec 00001340 s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling s3c2410-i2c s3c2410-i2c: slave address 0x10 s3c2410-i2c s3c2410-i2c: bus frequency set to 129 KHz s3c2410-wdt: watchdog disabled irisa_gps_resume: resuming GPS... irisa_gps_resume: done. LCD TYPE :: AMGA005 will be initialized s3cfb_set_gpio(): gpio setting, backlight control, LCD reset etc... PM: Finishing wakeup. Restarting tasks ... <4>mmc1: host does not support reading read-only switch. assuming write-enable. mmc1: new high speed SDHC card at address 5b02 done. [root@IRISID proc]# mmcblk0: mmc1:5b02 SD04G 3870720KiB mmcblk0: p1 [root@IRISID proc]# Thanks in advance } (HowTos)