Received: by 2002:a05:6520:1682:b0:147:d1a0:b502 with SMTP id ck2csp5596941lkb; Mon, 11 Oct 2021 09:39:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyX5W+VkGFi0VnxL0oHj5NeYdnaE/gsukr/+M8pASrabtZZJUGtZMR96dDua998NTjc5ao6 X-Received: by 2002:a05:6402:27d3:: with SMTP id c19mr4612042ede.70.1633970370722; Mon, 11 Oct 2021 09:39:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633970370; cv=none; d=google.com; s=arc-20160816; b=Zra8cR62pcJOdT7MRpazpfJ1LD57mDviJ3UCjvhKxUTuyOIn8xN85+0nfAZMcYbucm Nwzpu224Z25bv/K77MqPA6U57kHPO/6E7ilIt5moEXawmLKc6cA/6tS+zwabAdb0YCxq J80BuU5qbpQlTkX5N1PHTJO9E2ipuYIib3ZqJ81HfMvjF+Vnyg3O6XBttvzuCc9TBJnG Hbp4epOJGYZRAIoOaDcuXPxKSQrssPA39F2DphoZwJqL8WXhqa6kZRKFiLqutXttquCs ex/Ayxphl0gEypAUc1+44QH2Rj7NCaK49IFqn+TTnnhWeZUU0bZT2g+LC6Ho5D3lH/C2 2LMw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=YAQd4DGIWX4IrFBUQQD7iszVpyHS31JAxu9Fz1kuK1Q=; b=RCi9SMIzE1ullK5tC0Z4kv9RV/xmLJtdMAqZDF+yiUAhhNURG13TaY1iHe1cuhQYOW tbtNGkr1SvXr+1V/9W5Ma2h5oSv3aFFZjK3LSd94PKSScTxkF8/Ie+C9myqbUIpyapdh bFKztZ+QQ9vrbtposvVf/ppnzhaA3cGo7IRCnXySN4MLFo8zEKyLV1ejVbDUGJckGkEG Oo6defi1L4p/TCXwF9eBHoPH7KnsVGbZzVF+8ysAHpcbeNOHv0n7vcOR21WxDo4SAJ5p 3iFYbtC7/PxzoNEHXjnn19wKEQ5f9nwHpOOCSNTdUfGP2Dkq1uoO9DD9mz7cVxSpAjjM +xwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AWJ0kUcB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 13si11235808ejr.788.2021.10.11.09.39.07; Mon, 11 Oct 2021 09:39:30 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AWJ0kUcB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245107AbhJKOTk (ORCPT + 99 others); Mon, 11 Oct 2021 10:19:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:39918 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238795AbhJKOQz (ORCPT ); Mon, 11 Oct 2021 10:16:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8058761205; Mon, 11 Oct 2021 14:06:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633961166; bh=d4gLG3sbZOO9pgRmiG8GNpaDB9O1guu5oC67oVJ8LK4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AWJ0kUcBjG++zoHh/komN9f+/6aDUSM/71x4kpNchXuZRBrYSevfHdCQ0HLRu2O1U AGvpQv7XObamr9dAtikyEUCz5ytJF1O1BD9ccyuEYYtQt5QArSf57Dn0PhkteZjp8d d8XdKK4IOUonMsqqiSD8xdneJPbyzCTc36JhlLJA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Oleksij Rempel , Shawn Guo , Sasha Levin Subject: [PATCH 4.19 18/28] ARM: imx6: disable the GIC CPU interface before calling stby-poweroff sequence Date: Mon, 11 Oct 2021 15:47:08 +0200 Message-Id: <20211011134641.294817049@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211011134640.711218469@linuxfoundation.org> References: <20211011134640.711218469@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Oleksij Rempel [ Upstream commit 783f3db030563f7bcdfe2d26428af98ea1699a8e ] 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 Signed-off-by: Shawn Guo Signed-off-by: Sasha Levin --- 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 4bfefbec971a..c3ca6e2cf7ff 100644 --- a/arch/arm/mach-imx/pm-imx6.c +++ b/arch/arm/mach-imx/pm-imx6.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -622,6 +623,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.33.0