From patchwork Tue Jan 2 16:42:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Agner X-Patchwork-Id: 10141023 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 7160D6035E for ; Tue, 2 Jan 2018 16:44:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 680AD28A60 for ; Tue, 2 Jan 2018 16:44:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5CBDF28B2D; Tue, 2 Jan 2018 16:44: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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED 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 ECE4D28A60 for ; Tue, 2 Jan 2018 16:44:15 +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=H6sBkSmT3DnPLh+T5M2VdbpDVeV2WyDHISvYmVWUPHs=; b=sW5 +QIO3dlQawfbfNVO88Ka2qYA+E0OTLB/+5O9JQq4pL3Rwovt2hX0D7/nBJpA8cXOJOuAcODi6WQA5 YdceMEr6DXa1piQb3zfW2WwASvCNdWDZFGtx+w6FUFxA3H9/ArOpf2flf7dH8sQFsuiSzEybgztbR EAjjYwuJ4UUAyV/GkqpHcciMdvWsPKCxkQcCnBNQHo/tKNR/grK/a+okU+FHuXh1F/7enlbR1c2kQ rtliOdpBL8IDS8Y/J+cpZBdFB/2NP9nBLqT2c7cioaJ2Z+ZguFazmBxXFvXuo9fFXiY1c78URvbPE J1Hs0rXo0HHhynFNvTqcT1U3eABpkEA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eWPff-0007Mf-M0; Tue, 02 Jan 2018 16:44:11 +0000 Received: from mail.kmu-office.ch ([2a02:418:6a02::a2]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eWPeA-0006Gh-Mm for linux-arm-kernel@lists.infradead.org; Tue, 02 Jan 2018 16:42:43 +0000 Received: from trochilidae.toradex.int (unknown [IPv6:2001:1620:c6e::127]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 5D1A15C3B38; Tue, 2 Jan 2018 17:35:56 +0100 (CET) From: Stefan Agner To: shawnguo@kernel.org, kernel@pengutronix.de Subject: [PATCH 1/7] ARM: imx: add timer stop flag to ARM power off state Date: Tue, 2 Jan 2018 17:42:17 +0100 Message-Id: <20180102164223.15230-1-stefan@agner.ch> X-Mailer: git-send-email 2.15.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1514910956; bh=vo3v2YTBM0W3my2HQ/UaGiDmFx43XA2BFuJRv//Xs1Y=; h=From:To:Cc:Subject:Date:Message-Id; b=Wboqcyl6OcgVwGRK7Wy34TXOqhSzPsMREA6FakhKw+AL56jUV3K+YPX/UI1BjlMSqS6MEob+RlSIibD2efMux8TLqGIfMPtsKeUSG45IIcwnCoTlGc3vlB/8VpTXXMnfWiRZEI9nVZD1jWa3D6PFIPpF3DTWFG2MvqWF4GSZKsk= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180102_084239_029465_0E7F4A02 X-CRM114-Status: UNSURE ( 9.55 ) X-CRM114-Notice: Please train this message. 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: mark.rutland@arm.com, devicetree@vger.kernel.org, Anson Huang , linux-kernel@vger.kernel.org, Stefan Agner , robh+dt@kernel.org, fabio.estevam@nxp.com, linux-arm-kernel@lists.infradead.org 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 When the CPU is in ARM power off state the ARM architected timers are stopped. The flag is already present in the higher power WAIT mode. This allows to use the ARM generic timer on i.MX 6UL/6ULL SoC. Without the flag the kernel freezes when the timer enters the first time ARM power off mode. Cc: Anson Huang Signed-off-by: Stefan Agner Reviewed-by: Lucas Stach --- arch/arm/mach-imx/cpuidle-imx6sx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-imx/cpuidle-imx6sx.c b/arch/arm/mach-imx/cpuidle-imx6sx.c index c5a5c3a70ab1..d0f14b761ff7 100644 --- a/arch/arm/mach-imx/cpuidle-imx6sx.c +++ b/arch/arm/mach-imx/cpuidle-imx6sx.c @@ -89,6 +89,7 @@ static struct cpuidle_driver imx6sx_cpuidle_driver = { */ .exit_latency = 300, .target_residency = 500, + .flags = CPUIDLE_FLAG_TIMER_STOP, .enter = imx6sx_enter_wait, .name = "LOW-POWER-IDLE", .desc = "ARM power off",