From patchwork Mon Feb 9 07:25:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 5798561 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C1A499F336 for ; Mon, 9 Feb 2015 07:25:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 06B2020123 for ; Mon, 9 Feb 2015 07:25:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 139D02011E for ; Mon, 9 Feb 2015 07:25:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753236AbbBIHZw (ORCPT ); Mon, 9 Feb 2015 02:25:52 -0500 Received: from mailout4.w1.samsung.com ([210.118.77.14]:23515 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752616AbbBIHZw (ORCPT ); Mon, 9 Feb 2015 02:25:52 -0500 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NJH005J5U5P5020@mailout4.w1.samsung.com> for linux-samsung-soc@vger.kernel.org; Mon, 09 Feb 2015 07:29:49 +0000 (GMT) X-AuditID: cbfec7f4-b7f126d000001e9a-70-54d8606ce225 Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 94.93.07834.C6068D45; Mon, 09 Feb 2015 07:23:24 +0000 (GMT) Received: from amdc1339.digital.local ([106.116.147.30]) by eusync2.samsung.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NJH00DK3TYT7820@eusync2.samsung.com>; Mon, 09 Feb 2015 07:25:49 +0000 (GMT) From: Marek Szyprowski To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Kukjin Kim , Tobias Jakobi , Daniel Drake Subject: [PATCH] exynos: pmu: use PS_HOLD based poweroff for all supported SoCs Date: Mon, 09 Feb 2015 08:25:41 +0100 Message-id: <1423466741-11421-1-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrFJMWRmVeSWpSXmKPExsVy+t/xK7o5CTdCDGZ+Y7F4NP8xs0X/49fM FpseX2O1mHF+H5PF2iN32S3aVn9gdWDzWPQ9y2PTqk42j81L6j3+HWP36NuyitHj8ya5ALYo LpuU1JzMstQifbsErozWL4sYC3ZwVnRPkW9gfMPexcjJISFgIjHzzlE2CFtM4sK99UA2F4eQ wFJGiR9vl7NDOH1MEve/tTCCVLEJGEp0ve0CquLgEBHwllh+TRGkhllgCaPE5P87wKYKC/hL HN0/kQnEZhFQlZje9QcszivgIbH1+UFWiG1yEv9frmCawMi9gJFhFaNoamlyQXFSeq6hXnFi bnFpXrpecn7uJkZIeHzZwbj4mNUhRgEORiUeXgvl6yFCrIllxZW5hxglOJiVRHiNPgKFeFMS K6tSi/Lji0pzUosPMTJxcEo1MKY6rWK86uvvLRR05WXHEvYrIZocM43X8+zxKix/p9tX96yv huvr+fmb83q3nY5418uZW2c3pz0/IjnDguXk2inFmc6f5zM9m/70ZZYON7fC3XPvU/clc5W4 b/045X2B0t6L6l9tuv5yGqfWpz4+5y4oUlStGrRgz4dmf5mpxumeHqxHt5foKLEUZyQaajEX FScCAIvrprHtAQAA Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP PS_HOLD based power off procedure is common for all Exynos SoCs, so use it for every Exynos SoC. Signed-off-by: Marek Szyprowski Tested-by: Krzysztof Kozlowski Reviewed-by: Krzysztof Kozlowski --- arch/arm/mach-exynos/pmu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-exynos/pmu.c b/arch/arm/mach-exynos/pmu.c index c15761ca2f18..e812c1c85624 100644 --- a/arch/arm/mach-exynos/pmu.c +++ b/arch/arm/mach-exynos/pmu.c @@ -681,7 +681,7 @@ static unsigned int const exynos5420_list_disable_pmu_reg[] = { EXYNOS5420_CMU_RESET_FSYS_SYS_PWR_REG, }; -static void exynos5_power_off(void) +static void exynos_power_off(void) { unsigned int tmp; @@ -872,8 +872,6 @@ static void exynos5420_pmu_init(void) EXYNOS5420_ARM_INTR_SPREAD_USE_STANDBYWFI); pmu_raw_writel(0x1, EXYNOS5420_UP_SCHEDULER); - - pm_power_off = exynos5_power_off; pr_info("EXYNOS5420 PMU initialized\n"); } @@ -984,6 +982,8 @@ static int exynos_pmu_probe(struct platform_device *pdev) if (ret) dev_warn(dev, "can't register restart handler err=%d\n", ret); + pm_power_off = exynos_power_off; + dev_dbg(dev, "Exynos PMU Driver probe done\n"); return 0; }