Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1616475pxb; Mon, 11 Oct 2021 09:33:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzigKbHH1KWgZD9nO7i8sGiKQzqGXX1S+ZzF8amlKVqIkrUdgaXNpfOJSH7RqhMZg9OFfs1 X-Received: by 2002:a17:906:1491:: with SMTP id x17mr25212096ejc.50.1633970001282; Mon, 11 Oct 2021 09:33:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633970001; cv=none; d=google.com; s=arc-20160816; b=vOEm228hLiiuFortml2QtEN4g/UyAvAXjaQmkjfgZMIzie7M6Xbkbye3T8/3c4xk3E 4SkqFqk8pZDaKrRIlJnH9JA4nPWDLlV+Sh+sohKnqUEVWC8cCXTZ9r1AaouWdE5XOrlv swB46p0CEbs70ACjdLWDlNfMzbP8Sma3uz3Qst2DoS61sqw/Q37YcHvdOonYiCuyDd8r ilM23d3bYeWWeqNC3SWKb9x1pJYzwVDtkX7tVvW+rvUqsm+TKGluJ3JjBkj0GW/wK6CY pMAyU5GydxpZwANctezfF1msRYWMozgwRz6WlW7wzh3vUBDn+DdPEoPmW1dwCrVojzgP zshg== 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=1dkxuKLQVY86/6lUPf6UZ++8feG2nbHrTTF5o2cblWw=; b=mfkLV1Jj42YSYDb2smyV0jvolKJQJLrld+C2D9Ol6neSN8V1iRpmWjw2kmdux8EvzP B2xdr+CJeZl7L4RBPxgnzgLsX3bkx9RFYfzvWiu1jW6lySQuyffkM9xcAFlkvKq67USm exhQKFgNZuCQKrTbYxYQpj3ZtfMBVIeelIml2aBIEySzEfToE/Fi+c+6L+tSTpnyY4QF UiZhiclVbTZSIC/N+nbttFCqIXuBNmEutpgcmiOrO75OtnxJBSJ/e1NtmtnhCI/gt4jO Kv962IqijXKJE2aQNP9srzT/ryXS6BBqpS0fXeJ9ZqqMkxAPmQLGt70cFGMleEOEbLbE My0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qVgbELV5; 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 c12si15322165edx.46.2021.10.11.09.32.57; Mon, 11 Oct 2021 09:33:21 -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=qVgbELV5; 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 S236186AbhJKN5o (ORCPT + 99 others); Mon, 11 Oct 2021 09:57:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:39898 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237558AbhJKNzp (ORCPT ); Mon, 11 Oct 2021 09:55:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CE75260F21; Mon, 11 Oct 2021 13:53:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633960386; bh=F0pC2alu8YzzFNBT8eZm6pcLeMPw2Fkncq8pRIRjA54=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qVgbELV5vzhdOjkFwxm2Xtj7iBmLQ4wSB8sG8bM/O9uBeNZYsodHfJqcVz1nQ+O01 B/WYpz3rp5V8PVk2EdQQ7mvJXl+iKhs5zF5CeR8uvHk2j0TQ+klFLksWFKKAYk+bYj 7RqecapE877jmoUPANdUd5Ns8jR5Aa4eg5d9T/70= 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 5.10 46/83] ARM: imx6: disable the GIC CPU interface before calling stby-poweroff sequence Date: Mon, 11 Oct 2021 15:46:06 +0200 Message-Id: <20211011134509.989704649@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211011134508.362906295@linuxfoundation.org> References: <20211011134508.362906295@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 40c74b4c4d73..e24409c1f5d3 100644 --- a/arch/arm/mach-imx/pm-imx6.c +++ b/arch/arm/mach-imx/pm-imx6.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -618,6 +619,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