Linux hibernation support for loadable drivers

Ayan Halder Ayan.Halder at open-silicon.com
Fri Apr 11 07:42:48 EDT 2014


Hi,



I am working with the linux hibernation code( swsusp hibernation framework) on an ARM based custom SOC. I am using some drivers like Nand Flash Controller driver as loadable modules.

As per my understanding , during hibernation kernel calls suspend for all the drivers while creating a snapshot. During resume, after the kernel resumes the snapshot (from late_initcall - software_resme) , the kernel calls resume for all the drivers.

As nand and some other drivers do not support suspend/resume, thus they fail to work on system resume. So is it fine to call driver_unregister/driver_register during hibernation/resume for the drivers which do not support suspend/resume. I do not want the user to manually remove/insert the drivers on suspend/resume.



Regards,

Ayan Kumar Halder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140411/12910af1/attachment-0001.html 


More information about the Kernelnewbies mailing list