From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Philip Langdale <philipl@overt.org>
Cc: linux kernel <linux-kernel@vger.kernel.org>,
sdhci-devel@list.drzeus.cx, sfr@canb.auug.org.au,
Pierre Ossman <drzeus@drzeus.cx>
Subject: Re: [PATCH] ricoh_mmc: Use suspend/resume_noirq (v2) (resend)
Date: Sat, 10 Jan 2009 13:32:03 +0100 [thread overview]
Message-ID: <200901101332.03851.rjw@sisk.pl> (raw)
In-Reply-To: <94b68f283abf372eab895fd76b0feb34@localhost>
On Saturday 10 January 2009, Philip Langdale wrote:
>
> On Thu, 8 Jan 2009 23:14:52 +0100, "Rafael J. Wysocki" <rjw@sisk.pl> wrote:
> > On Wednesday 07 January 2009, philipl@overt.org wrote:
[...]
> > dependencies between the devices are, so can you please explain that
> > to me?
>
> I hope my write up answers this question.
I think they are, though I have to read them more thoroughly yet.
> > That said, if you want to suspend-resume ricoh_mmc with interrupts
> > disabled,
> > please use the legacy PCI .suspend_late() and .resume_early() callbacks
> for
> > that, since in the new framework the core will carry out some standard PM
> > operations in addition to your .suspend_noirq() and .resume_noirq(). It
> > may
> > not be what you want in this case, though.
>
> I'd need to know what those other operations are. I originally wrote this
> patch with suspend_late and resume_early but the first pm_ops patch I saw
> removed those. Are you now saying that both suspend_late/resume_early and
> noirq callbacks are supported now.
Yes, they are. You implement either the "old" ones (->suspen(), ->resume(),
->suspend_late(), ->resume_early() in struct pci_driver) and even if only one of
them is defined, the "legacy" handling will be used for the other operations
too, so the existing drivers' code is not affected, or the "new" ones (the pm
object).
> It's all a bit confusing :-)
Yes, it is, unfortunately. There are a couple of reasons, one of them being
that the code has only been finished recently and another that the whole
concept changed slightly just before 2.6.28, when we discovered a mode of
failure that had not been known before and it had to be taken into account.
I'm now going to finally write some documentation. :-)
Thanks,
Rafael
next prev parent reply other threads:[~2009-01-10 12:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-07 16:21 philipl
2009-01-07 22:33 ` Rafael J. Wysocki
2009-01-08 22:14 ` Rafael J. Wysocki
2009-01-10 2:31 ` Philip Langdale
2009-01-10 12:32 ` Rafael J. Wysocki [this message]
2009-01-12 15:14 ` Pierre Ossman
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=200901101332.03851.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=drzeus@drzeus.cx \
--cc=linux-kernel@vger.kernel.org \
--cc=philipl@overt.org \
--cc=sdhci-devel@list.drzeus.cx \
--cc=sfr@canb.auug.org.au \
/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
Powered by JetHome