From patchwork Tue Oct 10 11:20:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leonard Crestez X-Patchwork-Id: 9995893 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 645F660216 for ; Tue, 10 Oct 2017 11:20:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4FEDF1FFFF for ; Tue, 10 Oct 2017 11:20:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 44C2128508; Tue, 10 Oct 2017 11:20:49 +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=BAD_ENC_HEADER,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 BFCBA1FFFF for ; Tue, 10 Oct 2017 11:20:48 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=FpNoPGG0QZ9vwiFztBFl1HkoCZbDu+tFmM35VdYaiKw=; b=I6k4yJb3DLmDqZ R5CfZz8qJ5M4tmaAEWjMFUgCXOMc4sUiVLEOWcc2aQEETGElC+UnH5I/HRf2FSdlNsVkJRs60s4vF fi8jyKm/XXBUkExc4XqOvJG9r2fufpMxIARZ+8oSy5lpjWIz2pOI7FpJwW4VMbBc4yK8gi8YSKB3k +ojCeffhBL6xcEn/BIsqxq72RutGwFlDRe99Rx+7I8xDV2TVRxwSDpcLXZoZ6Snw8qPWuosKSCJMx d7qSQQ0DiWNOIcfzO00c5H8+ClMs+r9cPtDCINad7YVAXuTBMAdWabcAo2hh3UgVSKgSm+EOoWi+j KaogCo2OH4d3KjHt4xNQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e1sae-00069Z-1P; Tue, 10 Oct 2017 11:20:48 +0000 Received: from mail-dm3nam03on0076.outbound.protection.outlook.com ([104.47.41.76] helo=NAM03-DM3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e1saT-0005m4-Vp for linux-arm-kernel@lists.infradead.org; Tue, 10 Oct 2017 11:20:41 +0000 Received: from CY4PR03CA0082.namprd03.prod.outlook.com (10.171.242.151) by CY1PR03MB2364.namprd03.prod.outlook.com (10.166.207.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Tue, 10 Oct 2017 11:20:14 +0000 Received: from BY2FFO11FD045.protection.gbl (2a01:111:f400:7c0c::170) by CY4PR03CA0082.outlook.office365.com (2603:10b6:910:4d::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7 via Frontend Transport; Tue, 10 Oct 2017 11:20:14 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD045.mail.protection.outlook.com (10.1.15.177) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.77.10 via Frontend Transport; Tue, 10 Oct 2017 11:20:13 +0000 Received: from fsr-ub1664-115.ea.freescale.net (fsr-ub1664-115.ea.freescale.net [10.171.73.213]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v9ABKAXe029348; Tue, 10 Oct 2017 04:20:11 -0700 From: Leonard Crestez To: Shawn Guo , Fabio Estevam Subject: [PATCH] ARM: imx: Enable cpuidle for i.MX6DL starting at 1.1 Date: Tue, 10 Oct 2017 14:20:07 +0300 Message-ID: X-Mailer: git-send-email 2.7.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131521080141240313; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7966004)(336005)(376002)(346002)(39860400002)(39380400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(47776003)(77096006)(8676002)(50226002)(4326008)(6636002)(6666003)(50986999)(2906002)(53936002)(33646002)(86362001)(68736007)(50466002)(356003)(48376002)(575784001)(305945005)(36756003)(5003940100001)(85426001)(498600001)(8936002)(5660300001)(189998001)(110136005)(118296001)(54906003)(316002)(81156014)(16586007)(97736004)(104016004)(81166006)(8656003)(106466001)(105606002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB2364; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD045; 1:boBm2+ARZT7v7PmXaNV+3WCZEeOn7UqhO+WL2TVEbws6DMvkQxtgc7OpB8nr2iT86z0fP7mQpDR16Bg3SNpWLaswMWJaQAy2vuycmb6ZjKLMy4ZDyL6K5s9vJuJ7Ca7F MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5adbbe04-9b78-4f50-f69a-08d50fd0e0bf X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017052603199)(201703131430075)(201703131517081); SRVR:CY1PR03MB2364; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2364; 3:eganz09j5ZA5YZOUw6pSqnpAGprjA4fxRkY8/lhF7/8G//MiJq+BVlOT23BleRBX+OhSBM7Z0WtXTEFIw/qNQi1nW/HSnxsDE3IUta4gZaLwE1Q99fTTnSEb+TqP/IZF1MEXDESKgx3iA9HWqHf8GK8S0pGfI/vXLrVRzWJBtOKbBxgUDmqM2RNV+kT7XT70SEXE7JnJtkcmZfufj/hT35zKEXWsbfPF2UppYq7sipTLKuqo1C4fcMnGn81nMrRGBeuR87ziMJvoHZEKhV0xh9BvFJwTNYO1wH3uifm7tB7wTgv6UFP5ghWjsfquAUaRjpS7r7QBz7sB6UgG0DcgxQylRJf/RmEVeSUFQZusC1c=; 25:TZddnSZ2cW+MAjWp1wbaL+GjPaW3wUQ4GNyHwCMcTjYj5TyMAGNjriT9ZyEBSxY5Ij+/R7/5c8YTrlaQQB+3GSMCoyAOa6tKBmhYkSRst9HjcOmQW/WlVptjr/uwRBBpj4nQU8ITmp+XC0SmOW5Krlv+u8sZOyu+gjIAwKKicCbj7KwVPHYI1+TQ6iz+ICaLHb/16qQqjH17dCStas6Lv0c/oNWmZ44BFb4aoVeEaWNXGNL4/Ps0p9cRtoJ1uUc+s/gnxEVhEX2vnb5ecN044fB7nszlDT+bShTxbI0pGuKq3DgCajgzey/+zwUXeVjTdiebyHs7CrSaZ0q9i/0TgAGSujsb2DD1Y6SOBiYnvsg= X-MS-TrafficTypeDiagnostic: CY1PR03MB2364: X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2364; 31:HcWnB9y48/XpzvX55m51waE36HG3LGZk58aZFGzca9GgFAf7lE8AKTQ6kmwpykCwVI/YrrI4UxPXWRoYmSDwZDd6zq77z9VNbk3/Wq72KDAfFK8kKK1u+NaWdTrbAwy9Xl7kzOThn5I4Hw4jETK+ypSzxUqTaa70nHzXAw5rYPSGwb3lIk8quQl31jO4AHBssDQL19hcHynylutly7dd4pS2eTg3u51CPlT/M9M5M7E=; 4:UVIVCiuHDuUNBV4BHiYet/KoQCNeDrpvRnI+9Dg7C8XW9cQ9woEPfS8WYLJQPJavZr7+rpczIZ7Psk6wfIXUnK8gtIRH53MLCa0DM5tcHozcO8W55lHfFqOcdfeRx23XWKpi+JeWsMRm0QqRS55bIsCuwUMyUjV99JSqPYP/K5P+RmGIFUzP9m7drskmxmuabv55Ko0HKtTPcpk6660FxRZ0lFJ0YuCM+sZBURoja/cdFtxp55b6lQZ/2DGJV7X5bfrpve2AWumwwrNBiMFOqQPRrribfrMFpZNNWij1YoA= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(100000703101)(100105400095)(6055026)(6096035)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123563025)(20161123559100)(20161123565025)(20161123561025)(20161123556025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR03MB2364; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR03MB2364; X-Forefront-PRVS: 04569283F9 X-Microsoft-Exchange-Diagnostics: =?us-ascii?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Cb8Z9iVA7AjZjTsHb1m/3pVp8mk7THc+TNBFYoz3C+xQXpf1i0wWFwWysjNMSE6F918oaRkDIqqivlZ3+KjgPny1FifA8kOGEDxmoYdPwODbizAZy18fkcyR0BNXT/WApPEEWoQ2CaPy0c0vgUTWYE6k6GFLP5n7K86U6ncopJ6CCWkEMq4Da8hFeKqE7/vA+MAaHZimxYYL5Sky7IAFXBrRgxiac= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Oct 2017 11:20:13.9212 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB2364 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171010_042038_329029_0BE7A3B2 X-CRM114-Status: GOOD ( 14.58 ) 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: Bai Ping , linux-pm@vger.kernel.org, Daniel Lezcano , "Rafael J. Wysocki" , kernel@pengutronix.de, linux-arm-kernel@lists.infradead.org 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 Enable cpuidle support on i.MX6DL starting from IMX_CHIP_REVISION_1_1. This also makes the code cleaner because 6q and 6dl actually have different revision histories. Signed-off-by: Bai Ping Signed-off-by: Leonard Crestez --- arch/arm/mach-imx/mach-imx6q.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c index 45801b2..ef0c949 100644 --- a/arch/arm/mach-imx/mach-imx6q.c +++ b/arch/arm/mach-imx/mach-imx6q.c @@ -374,7 +374,8 @@ static void __init imx6q_init_late(void) * WAIT mode is broken on TO 1.0 and 1.1, so there is no point * to run cpuidle on them. */ - if (imx_get_soc_revision() > IMX_CHIP_REVISION_1_1) + if ((cpu_is_imx6q() && imx_get_soc_revision() > IMX_CHIP_REVISION_1_1) || + (cpu_is_imx6dl() && imx_get_soc_revision() > IMX_CHIP_REVISION_1_0)) imx6q_cpuidle_init(); if (IS_ENABLED(CONFIG_ARM_IMX6Q_CPUFREQ)) {