Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750919AbdL3OKh (ORCPT ); Sat, 30 Dec 2017 09:10:37 -0500 Received: from mail-eopbgr60082.outbound.protection.outlook.com ([40.107.6.82]:57696 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750806AbdL3OKf (ORCPT ); Sat, 30 Dec 2017 09:10:35 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peng.fan@nxp.com; From: Peng Fan To: shawnguo@kernel.org, kernel@pengutronix.de, fabio.estevam@nxp.com Cc: aisheng.dong@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, van.freenix@gmail.com, Peng Fan Subject: [PATCH 1/2] ARM: imx: no unmask/mask GINT for WAIT_CLOCKED Date: Sat, 30 Dec 2017 21:53:18 +0800 Message-Id: <1514641999-20521-1-git-send-email-peng.fan@nxp.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [123.151.195.1] X-ClientProxiedBy: HK2PR04CA0090.apcprd04.prod.outlook.com (2603:1096:202:15::34) To VI1PR04MB3231.eurprd04.prod.outlook.com (2603:10a6:802:6::28) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 1ebbdd78-03dd-4e22-9443-08d54f8f1651 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603307)(7153060);SRVR:VI1PR04MB3231; X-Microsoft-Exchange-Diagnostics: 1;VI1PR04MB3231;3:X8HNtARZ24HP3/BPzREqz2LFQzmASZx0q47qNwWRyGNMzB0Xmav0yLWzXp6SpS+R35S0HqbmkXtrcx5T2InHuUDCAqY0JhIZhTnnbJcZi81D5/MlNXn/x5VoAy3AOhsu48szsh56WaZxtuqkyXlJwPvX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F7kSL8E/5OLwu99vT7WB1Vqc7fv3I3jFWMrC1D3lDFwY2d71S4zg43KddBIstqfBBHaGnEFE6wgi5FqjrEWD0d00w93TrpAHdE/HWjwDk5Ts+cmZ8qUIMHibLSc8ops/6+BEeY7S6zyDpdwtNop3qjfrNYVbLV0EmTGsUGLu9lDc4pYtWfmFrdrklPB;4:2+HbGwGetTPZ+1xlvg2ItcY6zxwnEtaJSf8MVIIHv0TgZdB74mLGkr+sO56yKsaEf9l2PeXFhLDfvcE3u8VLXLMMVWUQNZ/Z+6EIC3ZrgAGAlVIqm7m2QmVAMf/40/e795RM7KP1jz9fswKGACTugLZ75gdRVIem9SGp+FtL2gGvdv32F0YxsUxFMKrc2WoaHaISw4OpahnA4hDCHiFpT9Ud+76dYQ7AuO7yqbNNL20oV13lB/vZNEVENEyIMGVH0PpIuoNE8TPIUMOoHDFedF+i5/kbiKK10VfJCEa5S6JmLqd2RYchk/upI83TJwljKeFUPcthblY/9W8dNQqCR8RY1xjMtHc1aEl3CMTQBdM= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(101931422205132); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(8121501046)(5005006)(3002001)(3231023)(944501075)(93006095)(93001095)(10201501046)(6055026)(6041268)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011);SRVR:VI1PR04MB3231;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:VI1PR04MB3231; X-Forefront-PRVS: 05373A0663 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(39380400002)(376002)(346002)(366004)(39860400002)(396003)(199004)(189003)(52116002)(51416003)(6506007)(105586002)(36756003)(106356001)(81156014)(2906002)(386003)(8676002)(305945005)(7736002)(68736007)(5660300001)(6636002)(6666003)(6306002)(6486002)(97736004)(50466002)(6512007)(48376002)(966005)(478600001)(316002)(66066001)(6116002)(3846002)(16526018)(16586007)(4326008)(39060400002)(8936002)(81166006)(86362001)(575784001)(47776003)(50226002)(25786009)(53936002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB3231;H:shlinux2.ap.freescale.net;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;VI1PR04MB3231;23:STAcP5iy2kRpGNZn4n3RV0TL+EsNko1l/RG1Xl+kH?= =?us-ascii?Q?zrsYYBO26jVk/kKtraOEl/0bv2FD41HpTdzTtGTwdgG0cfJADNToVGqNsZ+A?= =?us-ascii?Q?3gYjwqKaueWayKPMQPD3jDYDzidwiE5MAM3A0GeYOwr0kXpCu7mDmNg44Krd?= =?us-ascii?Q?im0g+JiiQs7hKxOqP5nVD1dLRo98KY0MGHrXg0jk+/IVBpM1bdJGAo+DeEvi?= =?us-ascii?Q?lLGO0IcEcWh5aoQW6EAVjsj0U2qQLcFYTAhwtIlCJiAQhpJqu9CUc4iFj4ZJ?= =?us-ascii?Q?q1b4PdBMlFxqow1D6xnP+xNmdhE3yqJ5EWE1L0M0OQHL/ccP8wjMr8oxjC1n?= =?us-ascii?Q?Sx+EkQYRkLUZbReAlcqJwtgQewO8Rk9lkNQRpCcul1exo2rZ9biDlNbxb0Ip?= =?us-ascii?Q?s8SB5vnHO04uGHRTLlExO5eRwQThhcwvmEZPu5dq5f4nfu3TimeTbu64Bl3N?= =?us-ascii?Q?8PRGPeY9BarkSP4D00/iczFRNYsvJGsjvltJ7cRvgJslkrCB0BU0XeR+T/O/?= =?us-ascii?Q?aGHCYP/Cg7J38pqltBmpIKxvdz7Wmkz4x1E6yyBCTJQid7J8hKNeYQGXMV90?= =?us-ascii?Q?2vEzZxKYmsosCrwz+v67CqvuamhTOPFKJ8SoEucTVnd6yQf+PHqFwzmKPIMt?= =?us-ascii?Q?MAH0Tsf7+EHT5AUS44auVTmvFluuB9ByY1/7NWkH7grtE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FpUINaZYUeI1R5CU9KDcpaGbJQmPv+L38YvnKUZks2lSNoZnc=;24:8zIlWIw1t19d0mYxXEL8nGy9SteE5SuckUzFNyZvAFX3oxjm9m82F6/zqrq7jNXjcz6uu7N/XscCpMkC1Tv/zvAPYhFVFnnUfileZ0+IUMk=;7:4W40Wgjjbb6U1unuDEVRTs7XnR6K3AHSUlzTzoAew0p4eFtI2FTqh/sIcxmBnDq2LOU7j0PAyhEdJAKO2E9P/Lpu5QOrg0Hcz8kYMllegcV/qKKBkw4T/f6ZJ2aom2wnjlVejswqa0/2HWcQB6CyA7uWxikZZ2Ll/Xj3Xn1uEThDmXdmDQARTKHuMcyb4WwCM5gZH64g6CXHqqp6OKMehOt3YpSPvPBmbY0Q8eVpdpWDv6sE6efjo06zhK4mQruN SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Dec 2017 14:10:28.5063 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1ebbdd78-03dd-4e22-9443-08d54f8f1651 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB3231 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 904 Lines: 33 WAIT_CLOCKED is for RUN mode, there is no need to unmask/mask IRQ32 in GPC. Signed-off-by: Peng Fan --- V1: This is to upstream patch: http://git.freescale.com/git/cgit.cgi/imx/linux-imx.git/commit/?h=imx_4.9.11_1.0.0_ga&id=0d980646ee068b92db71fd5e4e4efcbc33749cbd 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 153a0afc7645..56bfd9b5229e 100644 --- a/arch/arm/mach-imx/pm-imx6.c +++ b/arch/arm/mach-imx/pm-imx6.c @@ -337,9 +337,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; } -- 2.14.1