From patchwork Fri Aug 24 13:01:04 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 10928 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 9DB2C23E37 for ; Fri, 24 Aug 2012 13:01:17 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id D8139A18207 for ; Fri, 24 Aug 2012 13:00:59 +0000 (UTC) Received: by iafj25 with SMTP id j25so1055704iaf.11 for ; Fri, 24 Aug 2012 06:01:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:mime-version:content-type :x-gm-message-state; bh=gT8vYBZEvd9uX+SuhStXexnFqxX5Oyi730YkRGKvy8w=; b=gFIGJysdScG7qHkktraa18+redI8JAL5NR3E9rJA7nHn297Ue5zniW95ikdFZ6AoAx ZYVTveucXdltRTriQbCxoxCSkERTRUmDUZBl3dXT0QOimYAOGMUY8jyUIEAWhoE04LbN hpxrHUu6bTdVJid8GFY4KAigqedE9sjtiLEunjE2l9Za3U7Iqybdfpryhoy/+xpi6WxG V2vXcWsAYqV6aRoE9Ej5vWZEfRKqzgSHo2cdvgOaXgihNOwoqGx3bGxAleft7FS7Vtmb /efP1APztJwrn5Yx5wPmPfmRAOEMExDyNo9PW8pwfHcB+fZO6yqAebN1cJRaqOAs3uu+ DnaA== Received: by 10.50.217.227 with SMTP id pb3mr2073584igc.28.1345813276600; Fri, 24 Aug 2012 06:01:16 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp318630igc; Fri, 24 Aug 2012 06:01:15 -0700 (PDT) Received: by 10.14.218.134 with SMTP id k6mr7380219eep.14.1345813275237; Fri, 24 Aug 2012 06:01:15 -0700 (PDT) Received: from eu1sys200aog113.obsmtp.com (eu1sys200aog113.obsmtp.com. [207.126.144.135]) by mx.google.com with SMTP id u5si7087793eeo.89.2012.08.24.06.01.10 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 24 Aug 2012 06:01:15 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.135 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.135; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.135 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) smtp.mail=linus.walleij@stericsson.com Received: from beta.dmz-us.st.com ([167.4.1.35]) (using TLSv1) by eu1sys200aob113.postini.com ([207.126.147.11]) with SMTP ID DSNKUDd7Fs7chWwdYC18qR3UVLpao/HFdn/l@postini.com; Fri, 24 Aug 2012 13:01:15 UTC Received: from zeta.dmz-us.st.com (ns4.st.com [167.4.16.71]) by beta.dmz-us.st.com (STMicroelectronics) with ESMTP id E7A2B44; Fri, 24 Aug 2012 13:00:40 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-us.st.com (STMicroelectronics) with ESMTP id 9371455; Fri, 24 Aug 2012 09:16:22 +0000 (GMT) Received: from exdcvycastm004.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm004", Issuer "exdcvycastm004" (not verified)) by relay1.stm.gmessaging.net (Postfix) with ESMTPS id 5817024C2C0; Fri, 24 Aug 2012 15:01:01 +0200 (CEST) Received: from steludxu4075.lud.stericsson.com (10.230.100.153) by smtp.stericsson.com (10.230.100.2) with Microsoft SMTP Server (TLS) id 8.3.83.0; Fri, 24 Aug 2012 15:01:08 +0200 From: Linus Walleij To: Cc: Linus Walleij , Etienne Carriere Subject: [PATCH] ARM: ux500: set proper GIC flags Date: Fri, 24 Aug 2012 15:01:04 +0200 Message-ID: <1345813264-4896-1-git-send-email-linus.walleij@stericsson.com> X-Mailer: git-send-email 1.7.11.3 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQkDekAY2YyrRgzLScpxeHeq0zr5dH4Sc4dGd/Bdj7Pj39gsawjZJDhSOTbFYh+j7HaS8YKB From: Linus Walleij The Ux500 will be able to wake up on any IRQ, so flag it with IRQCHIP_SKIP_SET_WAKE, and we want to mask off the IRQs when going to suspend to avoid transient effects so also flag this with IRQCHIP_MASK_ON_SUSPEND. Cc: Etienne Carriere Signed-off-by: Linus Walleij --- arch/arm/mach-ux500/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-ux500/cpu.c b/arch/arm/mach-ux500/cpu.c index e2360e7..2957432 100644 --- a/arch/arm/mach-ux500/cpu.c +++ b/arch/arm/mach-ux500/cpu.c @@ -51,6 +51,8 @@ void __init ux500_init_irq(void) void __iomem *dist_base; void __iomem *cpu_base; + gic_arch_extn.flags = IRQCHIP_SKIP_SET_WAKE | IRQCHIP_MASK_ON_SUSPEND; + if (cpu_is_u8500_family()) { dist_base = __io_address(U8500_GIC_DIST_BASE); cpu_base = __io_address(U8500_GIC_CPU_BASE);