From patchwork Tue Mar 13 15:04:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 10279247 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 2EAF56038F for ; Tue, 13 Mar 2018 15:05:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F7052837E for ; Tue, 13 Mar 2018 15:05:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 13EC628B2D; Tue, 13 Mar 2018 15:05:13 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E53C28A49 for ; Tue, 13 Mar 2018 15:05:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751956AbeCMPFL (ORCPT ); Tue, 13 Mar 2018 11:05:11 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:38572 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751936AbeCMPFJ (ORCPT ); Tue, 13 Mar 2018 11:05:09 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20180313150506euoutp0230677615989e94f07c40e48c90930c46~bgyfhcRet1013710137euoutp02C; Tue, 13 Mar 2018 15:05:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180313150506euoutp0230677615989e94f07c40e48c90930c46~bgyfhcRet1013710137euoutp02C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1520953506; bh=wwx9WgPu1DDqSbit8k4N5FmF3llYVUsz7XrTrRqQmO4=; h=From:To:Cc:Subject:Date:References:From; b=aDulbnBiMW/tPAmAr+B2hmu64Mn87x7/uCicF1+ssrIhSse2dsCNzi+bQ6EBVv4iI CTdp/yn6W0GTkbfvb+mtr0EdGZi18cG253vA361LRpuLgXMNpGvxYrWVobZ5sMxnrV RChas2ZccoCPDM1Vtz6TkMFrBkjxv6coybRiBvBw= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180313150505eucas1p2603e890e0d75afafef7c074d78a882bf~bgyeKRpqV0075200752eucas1p2C; Tue, 13 Mar 2018 15:05:05 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 94.DF.17380.0A8E7AA5; Tue, 13 Mar 2018 15:05:04 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180313150504eucas1p27e574c27e74160c01341976fd5147616~bgydewU4h1849718497eucas1p2v; Tue, 13 Mar 2018 15:05:04 +0000 (GMT) X-AuditID: cbfec7f4-6f9ff700000043e4-be-5aa7e8a0818d Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id F3.ED.04183.0A8E7AA5; Tue, 13 Mar 2018 15:05:04 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P5J009BUB8AZJ90@eusync1.samsung.com>; Tue, 13 Mar 2018 15:05:04 +0000 (GMT) From: Marek Szyprowski To: linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski , Daniel Lezcano , "Rafael J . Wysocki" Subject: [PATCH] cpuidle: Enable coupled cpuidle support on Exynos3250 platform Date: Tue, 13 Mar 2018 16:04:51 +0100 Message-id: <20180313150451.5525-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.15.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrBIsWRmVeSWpSXmKPExsWy7djPc7oLXiyPMug7oWOxccZ6Vot5n2Ut zp/fwG7xufcIo8WM8/uYLNYeuctuceb0JVYHdo9NqzrZPO5c28PmseVqO4tH35ZVjB6fN8kF sEZx2aSk5mSWpRbp2yVwZaya+oGxoIer4vm1S4wNjEc5uhg5OSQETCS2Tf/C0sXIxSEksIJR 4ue3xVDOZ0aJSSuvsXYxcoBVnTqbCRFfxihx5OIDRgingUli2ak/bCCj2AQMJbredoHZIgL2 EnO3TWYCKWIWeMEocecWiMPJISwQKLFt7WdmEJtFQFVi6+YFLCA2r4CNxIsHF1ggbpKXWPx9 JxtIs4TAS1aJr/tXsEMkXCR2bz3GCGELS7w6vgUqLiNxeXI3VHO9RN/3I0wQzT2MEntbpjJB JKwlDh+/yApiMwvwSUzaNp0Z4jdeiY42IYgSD4mPZ86zQtiOEocm7gTbJSQQK7G98zfLBEbJ BYwMqxjFU0uLc9NTi43yUsv1ihNzi0vz0vWS83M3MQLj7/S/4192MO76k3SIUYCDUYmHd8XZ 5VFCrIllxZW5hxglOJiVRHhzHgCFeFMSK6tSi/Lji0pzUosPMUpzsCiJ88Zp1EUJCaQnlqRm p6YWpBbBZJk4OKUaGItuzi4rSWdmX1G8NNnv+ZXfB5fKTz8W9zDyUthzC0EGVn6hGXmHN2+5 9FQ7a4ae/kmhHQrSJhcqCl9dmBXvNTPh2/XroRYnBZukzAsufL8q/tXtxU62DqvV+pI7V9cE XFpRYx6x6OebyjWF/ixTtkY8v74ndUdI64xH3Rv2ct79ukGw0eCOkYoSS3FGoqEWc1FxIgD7 +Qq4uwIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrHJMWRmVeSWpSXmKPExsVy+t/xy7oLXiyPMlg7h99i44z1rBbzPsta nD+/gd3ic+8RRosZ5/cxWaw9cpfd4szpS6wO7B6bVnWyedy5tofNY8vVdhaPvi2rGD0+b5IL YI3isklJzcksSy3St0vgylg19QNjQQ9XxfNrlxgbGI9ydDFycEgImEicOpvZxcjFISSwhFFi Y/MGFginiUniye0rQA4nB5uAoUTX2y42EFtEwF5i7rbJTCBFzAKvGCVu3PnGCJIQFvCXWL14 JyuIzSKgKrF18wKwZl4BG4kXDy6A2RIC8hKLv+9km8DItYCRYRWjSGppcW56brGRXnFibnFp Xrpecn7uJkZgKGw79nPLDsaud8GHGAU4GJV4eBkuLI8SYk0sK67MPcQowcGsJMKb8wAoxJuS WFmVWpQfX1Sak1p8iFGag0VJnPe8QWWUkEB6YklqdmpqQWoRTJaJg1OqgdFy4bGUsKPLuXpD vdR4fDpXfOqUefOoLENOgUNn87Q/zLZ7eE1y2ipPLKgvSpj8I76Cs+FJjduTrX0SG7eL9f/o +egQs/1p7nJBcflkz8fJL8y+vbu79qegVPSLwFl8Cz2ND361SJp773PIu/o+xWeHOlzdAhdO trJn5rrStPh0hcBRvVAnFyWW4oxEQy3mouJEALBu2YcBAgAA X-CMS-MailID: 20180313150504eucas1p27e574c27e74160c01341976fd5147616 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180313150504eucas1p27e574c27e74160c01341976fd5147616 X-RootMTR: 20180313150504eucas1p27e574c27e74160c01341976fd5147616 References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP All the needed code has been already merged to mach-exynos core in commit af9971144dde ("ARM: EXYNOS: add coupled cpuidle support for Exynos3250"), so enable support for coupled variant also for Exynos3250 SoCs. Signed-off-by: Marek Szyprowski Acked-by: Krzysztof Kozlowski Acked-by: Bartlomiej Zolnierkiewicz --- This change was initially submitted with the mentioned commit: https://lkml.org/lkml/2015/2/20/321 For some reasons it has been separated from it and then it has been forgotten. This is patch brings it back to live. Tested on Exynos3250 ARTIK5 (520) development board. --- drivers/cpuidle/cpuidle-exynos.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/cpuidle/cpuidle-exynos.c b/drivers/cpuidle/cpuidle-exynos.c index 00cd129b10a4..0171a6e190d7 100644 --- a/drivers/cpuidle/cpuidle-exynos.c +++ b/drivers/cpuidle/cpuidle-exynos.c @@ -117,7 +117,8 @@ static int exynos_cpuidle_probe(struct platform_device *pdev) int ret; if (IS_ENABLED(CONFIG_SMP) && - of_machine_is_compatible("samsung,exynos4210")) { + (of_machine_is_compatible("samsung,exynos4210") || + of_machine_is_compatible("samsung,exynos3250"))) { exynos_cpuidle_pdata = pdev->dev.platform_data; ret = cpuidle_register(&exynos_coupled_idle_driver,