* When to call cfi_amdstd_suspend() ?
@ 2005-12-02 18:51 Steven Scholz
2005-12-02 19:04 ` Todd Poynor
0 siblings, 1 reply; 2+ messages in thread
From: Steven Scholz @ 2005-12-02 18:51 UTC (permalink / raw)
To: linux-mtd
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: When to call cfi_amdstd_suspend() ?
2005-12-02 18:51 When to call cfi_amdstd_suspend() ? Steven Scholz
@ 2005-12-02 19:04 ` Todd Poynor
0 siblings, 0 replies; 2+ messages in thread
From: Todd Poynor @ 2005-12-02 19:04 UTC (permalink / raw)
To: Steven Scholz; +Cc: linux-mtd
Steven Scholz wrote:
> 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) ?
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.
> 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.
--
Todd
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-12-02 19:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-02 18:51 When to call cfi_amdstd_suspend() ? Steven Scholz
2005-12-02 19:04 ` Todd Poynor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox