From patchwork Sat Nov 29 14:15:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kachhap X-Patchwork-Id: 5406651 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 6E8159F443 for ; Sat, 29 Nov 2014 14:21:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9E16920155 for ; Sat, 29 Nov 2014 14:21:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C072420120 for ; Sat, 29 Nov 2014 14:21:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751199AbaK2OVt (ORCPT ); Sat, 29 Nov 2014 09:21:49 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:37726 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751173AbaK2OVt (ORCPT ); Sat, 29 Nov 2014 09:21:49 -0500 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NFT00LEY18CAAB0@mailout3.samsung.com> for linux-samsung-soc@vger.kernel.org; Sat, 29 Nov 2014 23:21:48 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.125]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 9C.D1.18484.B76D9745; Sat, 29 Nov 2014 23:21:48 +0900 (KST) X-AuditID: cbfee68f-f791c6d000004834-14-5479d67b290c Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id B1.18.20081.B76D9745; Sat, 29 Nov 2014 23:21:47 +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 <0NFT00ENK17RUY00@mmp2.samsung.com>; Sat, 29 Nov 2014 23:21:47 +0900 (KST) From: Amit Daniel Kachhap To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Cc: kgene.kim@samsung.com, b.zolnierkie@samsung.com, pankaj.dubey@samsung.com, Amit Daniel Kachhap Subject: [PATCH v5 3/6] driver: soc: exynos-pmu: Add an API to be called after wakeup Date: Sat, 29 Nov 2014 19:45:05 +0530 Message-id: <1417270508-11174-4-git-send-email-amit.daniel@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1417270508-11174-1-git-send-email-amit.daniel@samsung.com> References: <1417270508-11174-1-git-send-email-amit.daniel@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrKLMWRmVeSWpSXmKPExsWyRsSkVrfmWmWIwe/njBYNV0MsNs5Yz2rR u+Aqm8Wmx9dYLWac38dksWjrF3YHNo/NS+o9+rasYvT4vEkugDmKyyYlNSezLLVI3y6BK+P/ K8WC27wVx6dOYmtgvM7dxcjJISFgIrF91kJmCFtM4sK99WxdjFwcQgJLGSW2nZvI1MXIAVb0 cYMZSI2QwHRGiUcvxCBqJjBJnHtyjg0kwSZgLPFz5352kHoRAW+J5dcUQcLMAnUSvXMfM4HY wgLhEpfuQuxiEVCVWPN0MSuIzSvgLnH80mUWiFUKEnMm2YCEOQU8JA5MPgAWFgIqaTmqDLJV QuA3m8SMRxcZIcYISHybfAiqVVZi0wGoTyQlDq64wTKBUXgBI8MqRtHUguSC4qT0ImO94sTc 4tK8dL3k/NxNjMDQPf3vWf8OxrsHrA8xCnAwKvHwJlhXhgixJpYVV+YeYjQF2jCRWUo0OR8Y IXkl8YbGZkYWpiamxkb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xRmJhlrMRcWJAAXCixaiAgAA 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=-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 This patch adds an API exynos_sys_powerup_conf to be called after system sleep wakeup. This will useful for exynos7 SoC to perform resume related initialisations. This is similar to currently existing API exynos_sys_powerdown_conf. Reviewed-by: Pankaj Dubey Signed-off-by: Amit Daniel Kachhap --- drivers/soc/samsung/exynos-pmu.c | 9 +++++++++ include/linux/soc/samsung/exynos-pmu.h | 1 + 2 files changed, 10 insertions(+) diff --git a/drivers/soc/samsung/exynos-pmu.c b/drivers/soc/samsung/exynos-pmu.c index 7eb5b0b..c3307eb 100644 --- a/drivers/soc/samsung/exynos-pmu.c +++ b/drivers/soc/samsung/exynos-pmu.c @@ -33,6 +33,7 @@ struct exynos_pmu_data { void (*pmu_init)(void); void (*powerdown_conf)(enum sys_powerdown); void (*powerdown_conf_extra)(enum sys_powerdown); + void (*powerup_conf)(enum sys_powerdown); }; struct exynos_pmu_context { @@ -768,6 +769,14 @@ void exynos_sys_powerdown_conf(enum sys_powerdown mode) } } +void exynos_sys_powerup_conf(enum sys_powerdown mode) +{ + const struct exynos_pmu_data *pmu_data = pmu_context->pmu_data; + + if (pmu_data->powerup_conf) + pmu_data->powerup_conf(mode); +} + static void exynos3250_pmu_init(void) { unsigned int value; diff --git a/include/linux/soc/samsung/exynos-pmu.h b/include/linux/soc/samsung/exynos-pmu.h index a2ab0d5..b497712 100644 --- a/include/linux/soc/samsung/exynos-pmu.h +++ b/include/linux/soc/samsung/exynos-pmu.h @@ -20,5 +20,6 @@ enum sys_powerdown { }; extern void exynos_sys_powerdown_conf(enum sys_powerdown mode); +extern void exynos_sys_powerup_conf(enum sys_powerdown mode); #endif /* __EXYNOS_PMU_H */