From patchwork Thu Jul 27 22:38:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 9867603 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 372966035E for ; Thu, 27 Jul 2017 22:39:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 285E128477 for ; Thu, 27 Jul 2017 22:39:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1CD27286DB; Thu, 27 Jul 2017 22:39:02 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8F9D928477 for ; Thu, 27 Jul 2017 22:39:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=5PsbyyMOo98cSXYMcKAENTYVPderCo+nYKnldIxKr38=; b=oen 7wSXew3PeCuCPM1ApwEAYmB6kIyyyt5DHjJm8MDqWpyOP/hnulYf9F2bMI7ur25pAiS1ji4Sz3RcN g9L01wrROq8ipCvpXJLoQ6jVII0vinrvYt3epYuTrcoWzwqxTqcRlYLWl/gKvm8ZxeVqLl6F3RWth Qmj6P3DpUNVqJAkmhOe/hUKzWenTdleXpp6mt/GU85h/NHpKp1SAlN7GR+MK1uzbu5nWO9hD7Ifsj cT5NgSAbdM4RIJsB4G/sPZbdgJs2CMDseAlyw3RDnkIHtoRWNWBeOV5zyLf7Q29PZ/klj4aYh8eP7 Y0zBhKWGo9yW/omf0W0e3336nRLwX/Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1darQk-0007tC-R9; Thu, 27 Jul 2017 22:38:54 +0000 Received: from mail-qk0-x241.google.com ([2607:f8b0:400d:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1darQh-0007nr-ER for linux-arm-kernel@lists.infradead.org; Thu, 27 Jul 2017 22:38:53 +0000 Received: by mail-qk0-x241.google.com with SMTP id d145so17135916qkc.0 for ; Thu, 27 Jul 2017 15:38:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=2Jzk271X1msY18Ii8Ign3KT9bJ2e5zPC2r/uXDaAyn0=; b=SkuTEpXyCPETPHcObmiJ/9UfEEwdxa2tggEWZzUS3YTpe9OZEhw5yNisTFqPIbC3sW 7aG8BMOABy9xq+PYvYxWa3ednMZFcuoeAU+FG5Qj1SBYekGq6q8mGLctwHB4+KDDOIkQ YztRk8/7Gl+DWx15VBiL8lqSddpKm7kIDZXZLD7nNx/HlYYGbE/CyGLAT2pUMnbKa1EN t/iZIgFe8eDFT6OsOsInV2oZPOyhxJK4x8TAoGM/g+79nOtEGDqjh+ubIBSFouaKGDlQ LgmHkWlI3TmRh7aa29KkbSi3JnRU3GH4nx9zSsHfStEZT80+ZCbZ30D7c/zSyf6G5dBL P9Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=2Jzk271X1msY18Ii8Ign3KT9bJ2e5zPC2r/uXDaAyn0=; b=lySxAGU4FOTtcS+VjvUM0DL3OjJJQ8aTx1ewvDjM8B+TJVF9fZZ7qWvqZC8mWW55y8 kRbLycrrdnx6xxX5/tcsHY207LX3+0zHo95Vv6knr+LAfKipepQSbIPfTNnbOoBYi7kE V7FM3esKgF6ks0HEImKKl8ypuucoPFENSjplHiuS+IPcUM82cvFKsPrkIVlgW/TjNSat WuWbQiLVTPFPkTbW/IT8tlQji/7PlEVuY7hHQ9KT4437Z+dDZ08tJTfpUjylxO3R6qMs HiPOBSStqCtPoaBdu0xUH8OOtxWO92AU3UH7q41sM9SspUBMkn1Ad/hpDdHTGmA62a8R rbcQ== X-Gm-Message-State: AIVw113nDwhCnR+emhtk3ImtETG95d4LwOEDSX5LALTyWSegLmNG1eVP 8U72fu6WcNi3L4rRS+I= X-Received: by 10.55.26.161 with SMTP id l33mr8252195qkh.315.1501195110089; Thu, 27 Jul 2017 15:38:30 -0700 (PDT) Received: from fainelli-desktop.broadcom.com ([192.19.255.250]) by smtp.gmail.com with ESMTPSA id i79sm13895881qke.3.2017.07.27.15.38.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Jul 2017 15:38:29 -0700 (PDT) From: Florian Fainelli To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] irqchip: brcmstb-l2: Define an irq_pm_shutdown function Date: Thu, 27 Jul 2017 15:38:17 -0700 Message-Id: <20170727223817.7494-1-f.fainelli@gmail.com> X-Mailer: git-send-email 2.9.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170727_153851_604423_989B68E7 X-CRM114-Status: GOOD ( 10.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "open list:BROADCOM BMIPS MIPS ARCHITECTURE" , Florian Fainelli , Jason Cooper , Marc Zyngier , Kevin Cernekee , "open list:IRQCHIP DRIVERS" , opendmb@gmail.com, "maintainer:BROADCOM BCM7XXX ARM ARCHITECTURE" , Gregory Fong , Thomas Gleixner , Brian Norris 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 Broadcom STB platforms support S5 and we allow specific hardware wake-up events to take us out of this state. Because we were not defining an irq_pm_shutdown() function pointer, we would not be correctly masking non-wakeup events, which would result in spurious wake-ups from sources that were not explicitly configured for wake-up. Fixes: 7f646e92766e ("irqchip: brcmstb-l2: Add Broadcom Set Top Box Level-2 interrupt controller") Signed-off-by: Florian Fainelli Acked-by: Gregory Fong --- drivers/irqchip/irq-brcmstb-l2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/irqchip/irq-brcmstb-l2.c b/drivers/irqchip/irq-brcmstb-l2.c index bddf169c4b37..b009b916a292 100644 --- a/drivers/irqchip/irq-brcmstb-l2.c +++ b/drivers/irqchip/irq-brcmstb-l2.c @@ -189,6 +189,7 @@ static int __init brcmstb_l2_intc_of_init(struct device_node *np, ct->chip.irq_suspend = brcmstb_l2_intc_suspend; ct->chip.irq_resume = brcmstb_l2_intc_resume; + ct->chip.irq_pm_shutdown = brcmstb_l2_intc_suspend; if (data->can_wake) { /* This IRQ chip can wake the system, set all child interrupts