* Linux hibernation support for loadable drivers
@ 2014-04-11 12:58 AYAN KUMAR HALDER
2014-04-11 14:23 ` Greg KH
0 siblings, 1 reply; 3+ messages in thread
From: AYAN KUMAR HALDER @ 2014-04-11 12:58 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Linux hibernation support for loadable drivers
2014-04-11 12:58 Linux hibernation support for loadable drivers AYAN KUMAR HALDER
@ 2014-04-11 14:23 ` Greg KH
0 siblings, 0 replies; 3+ messages in thread
From: Greg KH @ 2014-04-11 14:23 UTC (permalink / raw)
To: kernelnewbies
On Fri, Apr 11, 2014 at 06:28:40PM +0530, AYAN KUMAR HALDER wrote:
> 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.
Don't call unregister/register for suspend/resume, that's overkill and
isn't right. Have you taken a look at all of the in-kernel
documentation about suspend/resume that is in the Documentation/
directory? If not, please do so, it should answer these questions for
you as to how to fix up your drivers.
Hope this helps,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
* Linux hibernation support for loadable drivers
@ 2014-04-11 11:42 Ayan Halder
0 siblings, 0 replies; 3+ messages in thread
From: Ayan Halder @ 2014-04-11 11:42 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-04-11 14:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-11 12:58 Linux hibernation support for loadable drivers AYAN KUMAR HALDER
2014-04-11 14:23 ` Greg KH
-- strict thread matches above, loose matches on Subject: below --
2014-04-11 11:42 Ayan Halder
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.