When to call cfi_amdstd_suspend() ?
Hi all,
I implemented my MTD board driver as a platform device with support for suspend/resume.
Upon suspend-to-ram its ->suspend() funktion is called three times for levels SUSPEND_DISABLE, SUSPEND_SAVE_STATE and SUSPEND_POWER_DOWN.
In which level should I call the MTD suspend function (i.e. cfi_amdstd_suspend() in my case) ?
What happens if I called it in every level as it is done in pxa2xx-flash.c?
Similar situation in the resume path.
Thanks,
Steven
Quoted 10 lines · Steven Scholz
Hi all,
I implemented my MTD board driver as a platform device with support for suspend/resume.
Upon suspend-to-ram its ->suspend() funktion is called three times for levels
SUSPEND_DISABLE,SUSPEND_SAVE_STATEandSUSPEND_POWER_DOWN.In which level should I call the MTD suspend function (i.e.
cfi_amdstd_suspend()in my case) ?
You can pretty much just choose one... SUSPEND_POWER_DOWN may be a good choice. Same for resume. The levels aren't really used anymore in the PM subsystem.
Quoted 1 line
What happens if I called it in every level as it is done in
pxa2xx-flash.c?
That file is ported to a newer version of the code that drops the levels and the suspend/resume callbacks are only called once.
Signature · 1 line
Todd