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: 5213931 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C51BFC11AC for ; Mon, 3 Nov 2014 04:06:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E5E03201E4 for ; Mon, 3 Nov 2014 04:06:23 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 16BAF20204 for ; Mon, 3 Nov 2014 04:06:23 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xl8sP-0000qS-3P; Mon, 03 Nov 2014 04:04:21 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xl8sK-0000UB-0x for linux-arm-kernel@lists.infradead.org; Mon, 03 Nov 2014 04:04:16 +0000 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> for linux-arm-kernel@lists.infradead.org; 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 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/NxNjMAQPv3v2YQdjPcOWB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f1sMMBCw3PGF732Pn84R7ejOg9Z1d9fd2Qe0Kd l/vahyfa0a/fLq/mumc09YcSS3FGoqEWc1FxIgCb5NDspwIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141102_200416_246210_03A6410B X-CRM114-Status: GOOD ( 10.20 ) X-Spam-Score: -5.6 (-----) Cc: pankaj.dubey@samsung.com, Amit Daniel Kachhap , kgene.kim@samsung.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, 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); }