From patchwork Mon Nov 3 03:53:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kachhap X-Patchwork-Id: 5213811 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id F09D39F380 for ; Mon, 3 Nov 2014 04:03:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 26E7220204 for ; Mon, 3 Nov 2014 04:03:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 351EE201E4 for ; Mon, 3 Nov 2014 04:03:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751983AbaKCED4 (ORCPT ); Sun, 2 Nov 2014 23:03:56 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:61443 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751852AbaKCEDz (ORCPT ); Sun, 2 Nov 2014 23:03:55 -0500 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NEG00EIZ3AI6OE0@mailout1.samsung.com>; Mon, 03 Nov 2014 13:03:54 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.126]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 95.E5.18167.AAEF6545; Mon, 03 Nov 2014 13:03:54 +0900 (KST) X-AuditID: cbfee690-f79ab6d0000046f7-24-5456feaa24ba Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id B8.59.20081.9AEF6545; Mon, 03 Nov 2014 13:03:54 +0900 (KST) Received: from chromebld-server.sisodomain.com ([107.108.73.106]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NEG00BUJ320LR40@mmp2.samsung.com>; Mon, 03 Nov 2014 13:03:53 +0900 (KST) From: Amit Daniel Kachhap To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org Cc: kgene.kim@samsung.com, pankaj.dubey@samsung.com, Amit Daniel Kachhap Subject: [PATCH 10/12] soc: samsung: pm_domain: Use the recently added PM Domain notifiers Date: Mon, 03 Nov 2014 09:23:08 +0530 Message-id: <1414986790-11940-11-git-send-email-amit.daniel@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1414986790-11940-1-git-send-email-amit.daniel@samsung.com> References: <1414986790-11940-1-git-send-email-amit.daniel@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrJLMWRmVeSWpSXmKPExsWyRsSkTnfVv7AQgyW3uSwaroZY9C64ymax 6fE1VovPvUcYLWac38dksWjrF3YHNo/NS+o9+rasYvT4vEkugDmKyyYlNSezLLVI3y6BK6N5 7jG2gqVcFe07J7I1MN7l6GLk5JAQMJH4tL2LCcIWk7hwbz0biC0ksJRR4vBsH5iaBb0zmLsY uYDi0xklJq3dAOVMYJK4P+8vC0gVm4CxxM+d+9lBbBGBdIk1i3aDTWIWSJG4PL0DbIOwQIzE q2OXweIsAqoSH6bMB+vlFfCQ2LRtNlCcA2ibgsScSTYgYU6g8Mm+66wQB7lLTHr3nAlkr4RA M7vEvOkzWSDmCEh8m3yIBaJXVmLTAWaIoyUlDq64wTKBUXgBI8MqRtHUguSC4qT0IhO94sTc 4tK8dL3k/NxNjMAQPv3v2YQdjPcOWB9iFOBgVOLhLdgeFiLEmlhWXJl7iNEUaMNEZinR5Hxg pOSVxBsamxlZmJqYGhuZW5opifO+lvoZL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IgCb5NDspwIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected 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=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 Invoke the GPD_OFF_PRE/GPD_ON_POST power Domain notifiers. This will allow some clocks to be saved and restored. These notifiers can also be invoked from the core power domain files but is not done as exynos is the only user of these notifiers as of now. In exynos7 SOC's only GPD_OFF_PRE/GPD_ON_POST are required. Cc: Kukjin Kim Reviewed-by: Pankaj Dubey Signed-off-by: Amit Daniel Kachhap --- drivers/soc/samsung/pm_domains.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/soc/samsung/pm_domains.c b/drivers/soc/samsung/pm_domains.c index f14f182..11633c2 100644 --- a/drivers/soc/samsung/pm_domains.c +++ b/drivers/soc/samsung/pm_domains.c @@ -99,11 +99,16 @@ static int exynos_pd_power(struct generic_pm_domain *domain, bool power_on) static int exynos_pd_power_on(struct generic_pm_domain *domain) { - return exynos_pd_power(domain, true); + int ret; + + ret = exynos_pd_power(domain, true); + genpd_invoke_transition_notifier(domain, GPD_ON_POST); + return ret; } static int exynos_pd_power_off(struct generic_pm_domain *domain) { + genpd_invoke_transition_notifier(domain, GPD_OFF_PRE); return exynos_pd_power(domain, false); }