From: Brian Norris <computersforpeace@gmail.com>
To: Brian Norris <computersforpeace@gmail.com>,
Gregory Fong <gregory.0xf0@gmail.com>,
Florian Fainelli <f.fainelli@gmail.com>
Cc: Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>,
Mark Rutland <mark.rutland@arm.com>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
Kumar Gala <galak@codeaurora.org>,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
bcm-kernel-feedback-list@broadcom.com
Subject: [PATCH 6/7] ARM: brcmstb: mask GIC IRQs on suspend
Date: Thu, 18 Jun 2015 17:11:35 -0700 [thread overview]
Message-ID: <1434672696-13632-7-git-send-email-computersforpeace@gmail.com> (raw)
In-Reply-To: <1434672696-13632-1-git-send-email-computersforpeace@gmail.com>
Lazily-masked IRQs can cause system suspend problems (e.g., spurious
wakeups from WFI), so we need to be sure non-wakeup GIC interrupts get
masked, not just disabled, during system suspend.
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
---
arch/arm/mach-bcm/brcmstb.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/mach-bcm/brcmstb.c b/arch/arm/mach-bcm/brcmstb.c
index 3a60f7ee3f0c..8d9ec9d01306 100644
--- a/arch/arm/mach-bcm/brcmstb.c
+++ b/arch/arm/mach-bcm/brcmstb.c
@@ -12,11 +12,20 @@
*/
#include <linux/init.h>
+#include <linux/irq.h>
+#include <linux/irqchip.h>
+#include <linux/irqchip/arm-gic.h>
#include <linux/of_platform.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
+static void __init brcmstb_init_irq(void)
+{
+ gic_set_irqchip_flags(IRQCHIP_MASK_ON_SUSPEND);
+ irqchip_init();
+}
+
static const char *const brcmstb_match[] __initconst = {
"brcm,bcm7445",
"brcm,brcmstb",
@@ -25,4 +34,5 @@ static const char *const brcmstb_match[] __initconst = {
DT_MACHINE_START(BRCMSTB, "Broadcom STB (Flattened Device Tree)")
.dt_compat = brcmstb_match,
+ .init_irq = brcmstb_init_irq,
MACHINE_END
--
1.9.1
next prev parent reply other threads:[~2015-06-19 0:11 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-19 0:11 [PATCH 0/7] soc: brcmstb: add system suspend support for STB SoCs Brian Norris
2015-06-19 0:11 ` [PATCH 1/7] Documentation: dt: brcmstb: add system PM bindings Brian Norris
[not found] ` <1434672696-13632-2-git-send-email-computersforpeace-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-09-12 19:58 ` Florian Fainelli
2015-06-19 0:11 ` [PATCH 2/7] Documentation: dt: brcmstb: add waketimer documentation Brian Norris
[not found] ` <1434672696-13632-3-git-send-email-computersforpeace-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-06-19 2:09 ` Gregory Fong
2015-09-12 19:58 ` Florian Fainelli
2015-06-19 0:11 ` [PATCH 3/7] soc: add stubs for brcmstb SoC's Brian Norris
[not found] ` <1434672696-13632-4-git-send-email-computersforpeace-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-09-12 20:16 ` Florian Fainelli
2015-06-19 0:11 ` [PATCH 4/7] soc: brcmstb: add PM suspend/resume support (S2/S3/S5) Brian Norris
[not found] ` <1434672696-13632-5-git-send-email-computersforpeace-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-09-12 20:23 ` Florian Fainelli
2015-06-19 0:11 ` [PATCH 5/7] soc: brcmstb: add wake-timer driver Brian Norris
[not found] ` <1434672696-13632-6-git-send-email-computersforpeace-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-06-19 2:20 ` Gregory Fong
[not found] ` <CADtm3G7qui2Yi6j-pFSGO9sGdHde1hy-c9wAWfQ38Dg8rKq2Qg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-06-19 17:36 ` Brian Norris
2015-09-12 20:00 ` Florian Fainelli
2015-06-19 0:11 ` Brian Norris [this message]
2015-06-19 1:48 ` [PATCH 6/7] ARM: brcmstb: mask GIC IRQs on suspend Gregory Fong
[not found] ` <1434672696-13632-7-git-send-email-computersforpeace-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-09-12 19:53 ` Florian Fainelli
[not found] ` <55F482BC.4050202-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-09-14 17:29 ` Brian Norris
2015-09-14 17:42 ` Brian Norris
[not found] ` <20150914174209.GQ11487-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2015-09-14 17:43 ` Florian Fainelli
2015-06-19 0:11 ` [PATCH 7/7] ARM: dts: brcmstb: add BCM7445 system PM DT nodes Brian Norris
[not found] ` <1434672696-13632-8-git-send-email-computersforpeace-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-09-12 19:58 ` Florian Fainelli
[not found] ` <1434672696-13632-1-git-send-email-computersforpeace-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-06-19 3:20 ` [PATCH 0/7] soc: brcmstb: add system suspend support for STB SoCs Gregory Fong
[not found] ` <CADtm3G7GQNuaZDoNe84YAh7pRV9s_2VhUuW8YpaCoNuozoyVZA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-06-19 22:41 ` Brian Norris
2015-06-19 22:55 ` Brian Norris
2015-06-22 19:47 ` Brian Norris
2015-06-24 4:47 ` Florian Fainelli
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=1434672696-13632-7-git-send-email-computersforpeace@gmail.com \
--to=computersforpeace@gmail.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=devicetree@vger.kernel.org \
--cc=f.fainelli@gmail.com \
--cc=galak@codeaurora.org \
--cc=gregory.0xf0@gmail.com \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@kernel.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;
as well as URLs for NNTP newsgroup(s).