From: Thomas Gleixner <tglx@linutronix.de>
To: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Dmitry Torokhov <dtor@google.com>,
Eric Caruso <ejcaruso@google.com>,
linux-kernel@vger.kernel.org, Benson Leung <bleung@google.com>
Subject: Re: irq mask swapping during suspend/resume
Date: Tue, 30 Sep 2014 00:43:37 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.2.02.1409300042000.22082@ionos.tec.linutronix.de> (raw)
In-Reply-To: <2213339.XxHo9Gxm0z@vostro.rjw.lan>
On Sun, 21 Sep 2014, Rafael J. Wysocki wrote:
> So I'd rather put that into the struct wakeup_source pointed to by
> the wakeup pointer in struct dev_pm_info. That would give us a mapping
> between wakeup source objects and wakeup interrupts and which would make
> a fair amount of sense in my view.
>
> Then, we could simply walk the list of wakeup source objects before
> suspend_device_irqs() and call enable_irq_wake() etc. for all of the
> interrupts in question without drivers having to worry about that.
> We also could save the current IRQ type for them at that point and
> restore it during resume.
>
> Of course, that would require some changes to wakeup_source_create()
> and friends, but is probably worth doing.
>
> Still, before we start making those changes, here's a bunch of questions
> to answer:
>
> (1) Say a wakeup interrupt is shared between two drivers and one of them
> asks for a different "IRQ type for sleep" than the other one. How are
> we going to resolve such conflicts?
Not at all. There is no solution to that problem other than aborting
and yelling about it.
> (2) Can platforms place restrictions on the IRQ type to be used with a given
> line? If so, how do we handle situations in which the requested
> "IRQ type for sleep" is different from what the given line can use?
> Do we need to resolve that at the struct wakeup_source creation time or
> can we do that later (during suspend?) and how?
If the type request fails, bail out and be done with it. Same as #1
Thanks,
tglx
prev parent reply other threads:[~2014-09-29 22:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAA9CXT07f01KW4UeoPPy4k1NM6qfxdtsOQXXSPjTKx7mG_v7Rw@mail.gmail.com>
2014-09-17 17:35 ` Fwd: " Eric Caruso
2014-09-17 19:05 ` Thomas Gleixner
2014-09-17 20:05 ` Dmitry Torokhov
2014-09-18 20:32 ` Thomas Gleixner
2014-09-21 0:48 ` Rafael J. Wysocki
2014-09-26 16:58 ` Eric Caruso
2014-09-26 21:39 ` Rafael J. Wysocki
2014-09-26 21:47 ` Rafael J. Wysocki
2014-09-29 22:43 ` Thomas Gleixner [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=alpine.DEB.2.02.1409300042000.22082@ionos.tec.linutronix.de \
--to=tglx@linutronix.de \
--cc=bleung@google.com \
--cc=dtor@google.com \
--cc=ejcaruso@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rjw@rjwysocki.net \
/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
all inboxes | Powered by JetHome®