Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4914351pxb; Tue, 28 Sep 2021 06:51:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw29sZPRtAOzXzxHTzksFzK+k23lTjHj4wGZnKbxYM6ca3yYdAa7OaCb44Rj1H5WTSIeuw4 X-Received: by 2002:a05:6a00:c81:b029:30e:21bf:4c15 with SMTP id a1-20020a056a000c81b029030e21bf4c15mr5363094pfv.70.1632837119627; Tue, 28 Sep 2021 06:51:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632837119; cv=none; d=google.com; s=arc-20160816; b=htyKqzTk3h4eSLUSowub8WkqaSLSPtCxUSLp9LkapdFCVhN2QQY9E06YL/+BTU2QT+ YecnnJc6tpKML1PIuhYcff/n3VYSVVZpGfa/gpHKMipPHLyNM/vbm4afKvHAphv7TxUO Kt6jxR6aD1Z/uKlIgmuG8IH7JnqGzF6ZPrPk2N+4f5yFufpHvyLcwJIhiYZfCmNuBf6J eHWgu/oSidlQ8h5NL9twhsDKUzH1/CrLLh7KQOdj/SipGPTuEN129KhVeN2dX5xdHpWB mturUWA5Zmt3BDo1jau6/mcDEs+aFZ1Zx3fa6vWd1z8b1tNb52gsf2/tG8Kd71N72AfQ 6hfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=BYDfwoEjU1VCg31zAfPEixW72J29cAae5jnT1S3spK8=; b=Tmfjt8/YUWz/O5Sh2vBK7R9KiI394rP96VGBdsye2bCwR+OnO/Zej/toNT36v+KmK9 gqnwf3Z3QP+jK5svUyYWuerorMTXlC43VXievME2Fhk3Q3e3MQ3UazYpIN0XC3yHwmky ENnLwGEQcgMnlSfyLEGa92IMkQMdn0Xw254pEWm4GoD7GzyGyMkqSx8nUUvaKjfqwOYm tk6Lo7uXvILTriUQiUBsWGUzM5fsDLYNx8oU6OBhQcV6I8qa8OMN26HKLiAxe31FqjJs rP7cAYz4Gj0svONp2st/t38f6FZs14M4BWSZRJy7d4m43awFG9/6ADQiMUUQCwSQcsNE 5ISQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a7si25747290pgq.295.2021.09.28.06.51.46; Tue, 28 Sep 2021 06:51:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241011AbhI1Nv0 (ORCPT + 99 others); Tue, 28 Sep 2021 09:51:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240917AbhI1Nv0 (ORCPT ); Tue, 28 Sep 2021 09:51:26 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D99A5C061575 for ; Tue, 28 Sep 2021 06:49:46 -0700 (PDT) Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mVDUM-0005R3-Nb; Tue, 28 Sep 2021 15:49:42 +0200 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1mVDUM-0000Mc-0b; Tue, 28 Sep 2021 15:49:42 +0200 From: Oleksij Rempel To: Shawn Guo , Sascha Hauer Cc: Oleksij Rempel , kernel@pengutronix.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Fabio Estevam , linux-imx@nxp.com Subject: [PATCH v3] ARM: imx6: disable the GIC CPU interface before calling stby-poweroff sequence Date: Tue, 28 Sep 2021 15:49:40 +0200 Message-Id: <20210928134940.1329-1-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Any pending interrupt can prevent entering standby based power off state. To avoid it, disable the GIC CPU interface. Fixes: 8148d2136002 ("ARM: imx6: register pm_power_off handler if "fsl,pmic-stby-poweroff" is set") Signed-off-by: Oleksij Rempel --- arch/arm/mach-imx/pm-imx6.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-imx/pm-imx6.c b/arch/arm/mach-imx/pm-imx6.c index 9244437cb1b9..f2ecca339910 100644 --- a/arch/arm/mach-imx/pm-imx6.c +++ b/arch/arm/mach-imx/pm-imx6.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -619,6 +620,7 @@ static void __init imx6_pm_common_init(const struct imx6_pm_socdata static void imx6_pm_stby_poweroff(void) { + gic_cpu_if_down(0); imx6_set_lpm(STOP_POWER_OFF); imx6q_suspend_finish(0); -- 2.30.2