From: tglx@linutronix.de (Thomas Gleixner)
To: linux-arm-kernel@lists.infradead.org
Subject: SOC-specific action for irq_set_wake
Date: Wed, 20 Jul 2016 08:28:35 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.2.11.1607200759230.3564@nanos> (raw)
In-Reply-To: <20160719181804.GX3847@xsjsorenbubuntu>
On Tue, 19 Jul 2016, S?ren Brinkmann wrote:
> we are working on the PM solution for Zynq MPSOC and ran into some
> problem when setting the wake source.
>
> The situation is that when the A53 is in suspend, the GIC(v2) may be
> powered down. In that state a companion core is handling wake
> events/IRQs, but we expect the OS/Linux to notify the companion core
> about what device/IRQ is a wake up source. Hence, my idea was to capture
> enabling/disabling wake IRQs in our platform PM code and then
> communicate with the FW as needed during suspend operations. The problem
> is: I don't see a good way to notify the platform code about these
> events.
>
> My ideas were:
> 1. Use the irq_chip irq_set_wake function
> My thought was to implement the irq_set_wake function in a
> SOC-specific way (could even be generic and call some notifier chain or
Don't even think about notifier chains.
> similar) to notify the platform PM code when a device/IRQ is
> enabled/disabled as wake up source.
> My problem is that the SKIP_IRQ_SET_WAKE flag is set in the generic
> driver (drivers/irqchip/irq-gic.c) and platforms cannot implement
> irq_set_wake without changes in the common code.
So and because it requires changes in the common code you think aboiut
notifiers and other absurdities. Come on, common code is not a sacred cow. It
can be modified and if you need for your particular platform that
SKIP_IRQ_SET_WAKE is cleared, then there are a gazillion of sane ways to do
that.
Thanks,
tglx
next prev parent reply other threads:[~2016-07-20 6:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-19 18:18 SOC-specific action for irq_set_wake Sören Brinkmann
2016-07-19 22:47 ` Andy Gross
2016-07-19 23:34 ` Sören Brinkmann
2016-07-20 8:17 ` Marc Zyngier
2016-07-20 13:16 ` Sören Brinkmann
2016-07-20 13:28 ` Andy Gross
2016-07-20 13:36 ` Marc Zyngier
2016-07-20 16:03 ` Sören Brinkmann
2016-07-20 6:38 ` Thomas Gleixner
2016-07-20 6:28 ` Thomas Gleixner [this message]
2016-07-20 13:23 ` Sören Brinkmann
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.11.1607200759230.3564@nanos \
--to=tglx@linutronix.de \
--cc=linux-arm-kernel@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