From patchwork Tue Dec 27 18:29:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 9489795 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6C66B601D2 for ; Tue, 27 Dec 2016 18:34:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5C33A25D99 for ; Tue, 27 Dec 2016 18:34:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4F7A425F31; Tue, 27 Dec 2016 18:34:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E3F8F25D99 for ; Tue, 27 Dec 2016 18:34:15 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cLwYB-00076b-Nx; Tue, 27 Dec 2016 18:32:39 +0000 Received: from mout.kundenserver.de ([212.227.126.135]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cLwY6-00075c-31 for linux-arm-kernel@lists.infradead.org; Tue, 27 Dec 2016 18:32:35 +0000 Received: from localhost.localdomain ([95.91.4.8]) by mrelayeu.kundenserver.de (mreue003 [212.227.15.167]) with ESMTPSA (Nemesis) id 0MZQdt-1c801v36on-00LGzX; Tue, 27 Dec 2016 19:30:18 +0100 From: Stefan Wahren To: Thomas Gleixner , Jason Cooper , Marc Zyngier Subject: [PATCH] irqchip: mxs: Enable SKIP_SET_WAKE and MASK_ON_SUSPEND Date: Tue, 27 Dec 2016 18:29:57 +0000 Message-Id: <1482863397-11400-1-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 1.7.9.5 X-Provags-ID: V03:K0:Ulkn3BhOYK8ywHMKa6Fuq2bVA+u4rOOdWAkMUGsObNpAyN+enlF IsrmkbuX6irIjQ1fRNxuJCT6Xjpyyl+xvcZactvIdmuD8iGAkgN41eHGCtvCvteMCSTK5yM 1amcKUQwPMHm+SMOXgKdVVPAnIL2hTRn7+PuqRsufGbWK3TT3JPacHwlOlwMbnvfEGIHUag fJ0pEWmASwmXudOEQGgwQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:eL9AOKIYGbQ=:nIV/7+6uNFVSON7V0RBTep 8QyJXXpPQjy7hQ9NB303jNMMgo2EhtTgIczjxfnez7yKLR+QJ4NWXVnS+hyYFHHh63MdUUBUX qMP8EcmNnEgNhD4lyEsw/wmq2MbV6E3yE3LndRPDCV8y4VNZVX70H5N04eAjG9qSpWbBtmiuj HpdeM8L2jTf1mVrk9f4L5T62SgRQeDzVdtpvthbLz7u3U/7I89eKc/NY333kLCBCZQCdJhcy4 /kPOd0Oat6KM8ER9oKiNRkkd2zObvwzlykUdkauMggo07G75lKwe9oY/RBkiWCp7gjKTELkKo mOJkvCtpxIboep6E3NXtUR4T3on5Hh7RgRgU5c1ZOe9x7YFtMmFnjhOz78fGPUAvxMfKYbrJQ mrvMsalNa1yQ+H8kN0p2ixX3I3y6Gew3YfjgQtvBammzEv5+oed88NIeJKfLu7fnKMHzNoPNR +cmR9PPm/p83TLenii6NgJA/nuy5C8vKW+OduAIm67yCdhPbUr7QbG5wfSL/xYew0Q+NRN5jp sRc2VrVk62Uh4E0winhV2dSU7k3BF1a337IVdijr3VutXuhPmEkp9aDTr282VEMfqNswnGVkV +kL2l1tEltR78m42DzdS57qWYW/5ybnIkdlWBdVeDbT6bGBp22VKIZ5HMxd+ZWYrg49fYmloU 53JZXYMh84XklD+shhquavM0c2a0xoOFma17QcnP089aCl0tWOQxrwaSoIiFb2r/9NiQ= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161227_103234_520322_F165AC79 X-CRM114-Status: UNSURE ( 8.20 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marek Vasut , Stefan Wahren , linux-pm@vger.kernel.org, Oleksij Rempel , Sascha Hauer , Fabio Estevam , Shawn Guo , linux-arm-kernel@lists.infradead.org, =?UTF-8?q?Lothar=20Wa=C3=9Fmann?= MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The ICOLL controller doesn't provide any facility to configure the wakeup sources. That's the reason why this implementation lacks the irq_set_wake implementation. But this prevent us from properly entering power management states like "suspend to idle". So enable the flags IRQCHIP_SKIP_SET_WAKE and IRQCHIP_MASK_ON_SUSPEND to let the irqchip core allows and handles the power management. Signed-off-by: Stefan Wahren Reviewed-by: Fabio Estevam --- drivers/irqchip/irq-mxs.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/irqchip/irq-mxs.c b/drivers/irqchip/irq-mxs.c index 1730470..05fa9f7 100644 --- a/drivers/irqchip/irq-mxs.c +++ b/drivers/irqchip/irq-mxs.c @@ -131,12 +131,16 @@ static void asm9260_unmask_irq(struct irq_data *d) .irq_ack = icoll_ack_irq, .irq_mask = icoll_mask_irq, .irq_unmask = icoll_unmask_irq, + .flags = IRQCHIP_MASK_ON_SUSPEND | + IRQCHIP_SKIP_SET_WAKE, }; static struct irq_chip asm9260_icoll_chip = { .irq_ack = icoll_ack_irq, .irq_mask = asm9260_mask_irq, .irq_unmask = asm9260_unmask_irq, + .flags = IRQCHIP_MASK_ON_SUSPEND | + IRQCHIP_SKIP_SET_WAKE, }; asmlinkage void __exception_irq_entry icoll_handle_irq(struct pt_regs *regs)