All of lore.kernel.org
 help / color / mirror / Atom feed
From: Todd Poynor <tpoynor@mvista.com>
To: Steven Scholz <steven.scholz@imc-berlin.de>
Cc: linux-mtd@lists.infradead.org
Subject: Re: When to call cfi_amdstd_suspend() ?
Date: Fri, 02 Dec 2005 11:04:38 -0800	[thread overview]
Message-ID: <43909AC6.7050509@mvista.com> (raw)
In-Reply-To: <439097CD.7000901@imc-berlin.de>

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

      reply	other threads:[~2005-12-02 19:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-02 18:51 When to call cfi_amdstd_suspend() ? Steven Scholz
2005-12-02 19:04 ` Todd Poynor [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43909AC6.7050509@mvista.com \
    --to=tpoynor@mvista.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=steven.scholz@imc-berlin.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.