From patchwork Wed Aug 22 08:44:02 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 10859 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 6202223E56 for ; Wed, 22 Aug 2012 08:44:29 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id 36D40A182AF for ; Wed, 22 Aug 2012 08:44:18 +0000 (UTC) Received: by yenl8 with SMTP id l8so498672yen.11 for ; Wed, 22 Aug 2012 01:44:28 -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=hXy5b3okL3riRRE8ahuNogrBIUtiFKGh7QgKqxCktw0=; b=M8UjE2waDJ8uI+5gQE7s0pk3Z0PBGVYVv1gUqPMaUCCGFSIfGDRsHlsNGA7Ld/Omeh iXyWNF+/pRN8xw23d8WcJehPmnPgNzqCFk5o8no7mrtmqUsw+MDGa9MDyJKLgZCqVw+n mCen5EsGnfmm8ejE8xeeIseBsJMwq3r5dBKx7T5vh+YdFo/cosSsfwLSO+jE18Tyh9Xj 6HACk2TaG9nsvQ8RhM0SAxavCUf9FN8XgkwVVnKAJkwd1OezUVGHkIC7+uRfqfwVP++k giZvZbc58+9zMGFIUV8TkSaG3aN0JK5SWK1kkqrm0pgdv1v8tJ/2xdUsxN4Zqjxiy3ic IvSg== Received: by 10.50.10.201 with SMTP id k9mr1312921igb.28.1345625068203; Wed, 22 Aug 2012 01:44:28 -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 ex8csp190149igc; Wed, 22 Aug 2012 01:44:27 -0700 (PDT) Received: by 10.14.182.9 with SMTP id n9mr16807985eem.6.1345625065261; Wed, 22 Aug 2012 01:44:25 -0700 (PDT) Received: from eu1sys200aog102.obsmtp.com (eu1sys200aog102.obsmtp.com. [207.126.144.113]) by mx.google.com with SMTP id f45si2338544eep.45.2012.08.22.01.44.14 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Aug 2012 01:44:25 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.113 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.113; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.113 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 eu1sys200aob102.postini.com ([207.126.147.11]) with SMTP ID DSNKUDSb3ppfwc052T2xS4ZJS5EnXHEuS5E/@postini.com; Wed, 22 Aug 2012 08:44:25 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 52C554D; Wed, 22 Aug 2012 08:43:39 +0000 (GMT) Received: from relay2.stm.gmessaging.net (unknown [10.230.100.18]) by zeta.dmz-us.st.com (STMicroelectronics) with ESMTP id 46E7C45; Wed, 22 Aug 2012 05:01:00 +0000 (GMT) Received: from exdcvycastm003.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm003", Issuer "exdcvycastm003" (not verified)) by relay2.stm.gmessaging.net (Postfix) with ESMTPS id E8AA9A8065; Wed, 22 Aug 2012 10:44:00 +0200 (CEST) Received: from steludxu4075.lud.stericsson.com (10.230.100.153) by smtp.stericsson.com (10.230.100.1) with Microsoft SMTP Server (TLS) id 8.3.83.0; Wed, 22 Aug 2012 10:44:04 +0200 From: Linus Walleij To: , , Samuel Ortiz Cc: Etienne Carriere , Grant Likely , Linus Walleij Subject: [PATCH 3/7] gpio/ab8500: MASK_ON_SUSPEND Date: Wed, 22 Aug 2012 10:44:02 +0200 Message-ID: <1345625042-5678-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: ALoCoQnaB4CH9rCwTvKmJ47zFlv2wF316xJZvdUfv4dfc3q9yo/QVK5OlSxg+BnXNKSPUVvci6Mr 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. Cc: Grant Likely Signed-off-by: Etienne Carriere Signed-off-by: Linus Walleij --- drivers/gpio/gpio-ab8500.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/gpio-ab8500.c b/drivers/gpio/gpio-ab8500.c index 050c05d..3d2cd66 100644 --- a/drivers/gpio/gpio-ab8500.c +++ b/drivers/gpio/gpio-ab8500.c @@ -203,6 +203,7 @@ static struct gpio_chip ab8500gpio_chip = { .direction_output = ab8500_gpio_direction_output, .set = ab8500_gpio_set, .to_irq = ab8500_gpio_to_irq, + .flags = IRQCHIP_MASK_ON_SUSPEND, }; static unsigned int irq_to_rising(unsigned int irq)