From patchwork Wed Mar 6 04:30:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kohji Okuno X-Patchwork-Id: 1052115 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=jp.panasonic.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="fHAajZKo"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44Dgpd5vL6z9sBF for ; Wed, 6 Mar 2019 15:32:25 +1100 (AEDT) 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=vMhfJG5VFb3WXHGAKfIr7+wUY1/8vaYX7yHAYVFxUXw=; b=fHAajZKojBRoT0 K9ThZ6fQ1Lo1jAC8kntT/QMqNB3BP1wwGqVBJ/3ZLRlaI+xh4ior4Yh0hcGaOaA5gDE5KE+gVLbi5 nrxVkGOIJuws9b6SoPseMc0UGJ6eWPn/5uBbgv0WQDhKpePzTSpVUSVxKxXC5L2K99xRqmBhN6EKv A6CrhFRH0kYUQSfWZ8Yx2Mbb+cIJhdJFA1nZ1x+VAp9WOSRdbDarbwUTXW4n/LeIG/fTrsi4OUqpv 3s4qBA7WA2yveNs/N6OqqbDXdD+5sMhSVA0s1q31/n1gjDPzvbNtaNYIuRrIWpCQGMmh+w4md2V0y m/kfO7cXHAKShPgh8SiA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1OE9-000396-7Q; Wed, 06 Mar 2019 04:32:21 +0000 Received: from smtp.mei.co.jp ([133.183.100.20]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1OE5-00038k-6G for linux-arm-kernel@lists.infradead.org; Wed, 06 Mar 2019 04:32:18 +0000 Received: from mail-gw.jp.panasonic.com ([157.8.1.157]) by smtp.mei.co.jp (8.14.4/8.14.4/lvzy11) with ESMTP id x264WCDj008898; Wed, 6 Mar 2019 13:32:12 +0900 Received: from epochmail.jp.panasonic.com ([157.8.1.130]) by mail.jp.panasonic.com (8.11.6p2/3.7W/kc-maili15) with ESMTP id x264WBs14703; Wed, 6 Mar 2019 13:32:11 +0900 Received: by epochmail.jp.panasonic.com (8.12.11.20060308/3.7W/pml-send3) id x264WBu2000512; Wed, 6 Mar 2019 13:32:11 +0900 Received: from jpa000secmn21.palet.jp.panasonic.com [10.74.216.56] by JPA000SGWMN05.palet.jp.panasonic.com with ESMTP id PAA36094; Wed, 6 Mar 2019 13:32:11 +0900 Received: from localhost.localdomain (10.74.216.183) by JPA000SECMN21.palet.jp.panasonic.com (10.74.216.56) with Microsoft SMTP Server (TLS) id 15.0.1076.9; Wed, 6 Mar 2019 13:32:10 +0900 From: Kohji Okuno To: Shawn Guo , Subject: [PATCH] ARM: imx6: cpuidle: omit the unnecessary unmask of GINT Date: Wed, 6 Mar 2019 13:30:42 +0900 Message-ID: <20190306043042.8926-1-okuno.kohji@jp.panasonic.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190306032107.GI26041@dragon> References: <20190306032107.GI26041@dragon> MIME-Version: 1.0 X-Originating-IP: [10.74.216.183] X-ClientProxiedBy: JPA000SECMN09.palet.jp.panasonic.com (10.74.216.18) To JPA000SECMN21.palet.jp.panasonic.com (10.74.216.56) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190305_203217_453490_DD771FAE X-CRM114-Status: UNSURE ( 9.50 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [133.183.100.20 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peng Fan , Sascha Hauer , Kohji Okuno , NXP Linux Team , Pengutronix Kernel Team , Fabio Estevam Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org In imx6_set_lpm, we only need to unmask GINT when not WAIT_CLOCKED, so add a check condition. Signed-off-by: Peng Fan Signed-off-by: Kohji Okuno --- arch/arm/mach-imx/pm-imx6.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/pm-imx6.c b/arch/arm/mach-imx/pm-imx6.c index 87f45b926c78..54add0178b96 100644 --- a/arch/arm/mach-imx/pm-imx6.c +++ b/arch/arm/mach-imx/pm-imx6.c @@ -354,9 +354,11 @@ int imx6_set_lpm(enum mxc_cpu_pwr_mode mode) * * Note that IRQ #32 is GIC SPI #0. */ - imx_gpc_hwirq_unmask(0); + if (mode != WAIT_CLOCKED) + imx_gpc_hwirq_unmask(0); writel_relaxed(val, ccm_base + CLPCR); - imx_gpc_hwirq_mask(0); + if (mode != WAIT_CLOCKED) + imx_gpc_hwirq_mask(0); return 0; }