From patchwork Wed Aug 22 08:44:16 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 10863 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 AF1B923E56 for ; Wed, 22 Aug 2012 08:45:54 +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 7635BA1867A for ; Wed, 22 Aug 2012 08:45:43 +0000 (UTC) Received: by iadj38 with SMTP id j38so643590iad.11 for ; Wed, 22 Aug 2012 01:45:53 -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=t5Sn8Wzqg/mb9+IW5TTBS55iArikEfE68dF+MLAnOfQ=; b=cdBjirlbg5Oc0RRdbx5nVVi4GEd31O/Xc3GUb3fKQMk5AT5CRu3glvLmI1fWU1wQqp fHOsFXGgAgTq/EP7Ryip6/sMrrRwYa5UMsqyFfPVHJZgvXUUxDIyd5HJa+5PA0nWvfmT TEnpRv9KUKRZyGwZjU0VA4wQL3URxG55c+5co/7URmbeXtdXAMwQrK0wKz7gO91x7eGM N3mgVRTLAI49BqCZAzqLUbHQ/8Y4ltAg48lV1Z2D1jZYdE+HDJNNY3zr1HinGqCHqSeM SQYhel0Z43o4wE3RzslJMmaGhusQoACUVOyIJfavP2NKzAMcc3s+0qbATo7viq6CXe8j IJAw== Received: by 10.42.60.139 with SMTP id q11mr16210467ich.53.1345625153848; Wed, 22 Aug 2012 01:45:53 -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 ex8csp190198igc; Wed, 22 Aug 2012 01:45:52 -0700 (PDT) Received: by 10.112.39.135 with SMTP id p7mr8909359lbk.78.1345625152282; Wed, 22 Aug 2012 01:45:52 -0700 (PDT) Received: from eu1sys200aog109.obsmtp.com (eu1sys200aog109.obsmtp.com. [207.126.144.127]) by mx.google.com with SMTP id sn4si874676lab.22.2012.08.22.01.45.45 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Aug 2012 01:45:52 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.127 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.127; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.127 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-ap.st.com ([138.198.100.35]) (using TLSv1) by eu1sys200aob109.postini.com ([207.126.147.11]) with SMTP ID DSNKUDSb6HWlRU5xNQEpqIp54LiBagprdo+7@postini.com; Wed, 22 Aug 2012 08:45:51 UTC Received: from zeta.dmz-ap.st.com (ns6.st.com [138.198.234.13]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 5D4CAAC; Wed, 22 Aug 2012 08:36:05 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 90CA01619; Wed, 22 Aug 2012 08:44:19 +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 D256024C40A; Wed, 22 Aug 2012 10:44:13 +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; Wed, 22 Aug 2012 10:44:18 +0200 From: Linus Walleij To: , , Samuel Ortiz Cc: Etienne Carriere , Linus Walleij Subject: [PATCH 5/7] pinctrl/nomdik: MASK_ON_SUSPEND Date: Wed, 22 Aug 2012 10:44:16 +0200 Message-ID: <1345625056-5749-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: ALoCoQnwVGl/sHwkQexbUG7hJ8d/LNWVnES/fSRaEJPwkRgoPamq2eCkt9HUGpiD0AQyedgQohPZ From: Etienne Carriere ux500 machines performs pins (GPIO) reconfiguration when entering in the suspended mode. This reconfiguration aims at reaching an ultra low power HW configuration. Due to this HW reconfiguration, some HW devices can change of HW state and have their output signals at level that could generate IRQs. If the non-wakeup IRQs are disabled but not yet masked (delayed interrupt disable feature from the generic irq layer), effective interrupts reach the system only because the system attempt to enter the suspended mode. To prevent such IRQs to trig, all irq chips embedded in ux500 platform should enable their IRQCHIP_MASK_ON_SUSPEND flag. Signed-off-by: Etienne Carriere Signed-off-by: Linus Walleij --- drivers/pinctrl/pinctrl-nomadik.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/pinctrl-nomadik.c b/drivers/pinctrl/pinctrl-nomadik.c index ec6ac50..41f1a3d 100644 --- a/drivers/pinctrl/pinctrl-nomadik.c +++ b/drivers/pinctrl/pinctrl-nomadik.c @@ -819,6 +819,7 @@ static struct irq_chip nmk_gpio_irq_chip = { .irq_set_wake = nmk_gpio_irq_set_wake, .irq_startup = nmk_gpio_irq_startup, .irq_shutdown = nmk_gpio_irq_shutdown, + .flags = IRQCHIP_MASK_ON_SUSPEND, }; static void __nmk_gpio_irq_handler(unsigned int irq, struct irq_desc *desc,