public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Steven Scholz <steven.scholz@imc-berlin.de>
To: linux-mtd@lists.infradead.org
Subject: PM for physmap.c ?
Date: Wed, 23 Aug 2006 17:07:27 +0200	[thread overview]
Message-ID: <44EC6F2F.7070508@imc-berlin.de> (raw)

Hi all,

for quite some time physmap.c uses platform_{device,driver}.

I wonder why it does not contain any (generic) code for power management
yet, i.e. .suspend/.resume functions.

Is it correct that all I would need to survive a suspend/resume cycle is
something like

int physmap_flash_suspend(struct platform_device *dev, pm_message_t state)
{
	struct sa_info *info = platform_get_drvdata(dev);
	int ret = 0;
	if (info)
		ret = info->mtd->suspend(info->mtd);
	return ret;
}

int physmap_flash_resume(struct platform_device *dev)
{
	struct sa_info *info = platform_get_drvdata(dev);
	if (info)
		info->mtd->resume(info->mtd);
	return 0;
}

as stolen from sa1100-flash.c? Or is PM done at some other/higher layer of
the MTD stuff?

Cheers,

-- 
Steven

             reply	other threads:[~2006-08-23 15:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-23 15:07 Steven Scholz [this message]
2006-08-30 14:04 ` PM for physmap.c ? Lennert Buytenhek
2006-08-30 15:04   ` Steven Scholz

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=44EC6F2F.7070508@imc-berlin.de \
    --to=steven.scholz@imc-berlin.de \
    --cc=linux-mtd@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox