From patchwork Sat Nov 8 13:16:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kachhap X-Patchwork-Id: 5256611 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 67589C11AC for ; Sat, 8 Nov 2014 13:23:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8AD1220160 for ; Sat, 8 Nov 2014 13:23:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1CAB620154 for ; Sat, 8 Nov 2014 13:23:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753838AbaKHNWu (ORCPT ); Sat, 8 Nov 2014 08:22:50 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:41180 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753812AbaKHNWq (ORCPT ); Sat, 8 Nov 2014 08:22:46 -0500 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NEQ00B8T2HWI230@mailout3.samsung.com>; Sat, 08 Nov 2014 22:22:44 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.123]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id FB.0E.18167.4291E545; Sat, 08 Nov 2014 22:22:44 +0900 (KST) X-AuditID: cbfee690-f79ab6d0000046f7-01-545e19242e56 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 83.38.09430.4291E545; Sat, 08 Nov 2014 22:22:44 +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 <0NEQ00B1K2HHL0A0@mmp2.samsung.com>; Sat, 08 Nov 2014 22:22:44 +0900 (KST) From: Amit Daniel Kachhap To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Cc: kgene.kim@samsung.com, linux-kernel@vger.kernel.org, s.nawrocki@samsung.com, lee.jones@linaro.org, Amit Daniel Kachhap Subject: [PATCH v2 5/6] driver: soc: exynos-pmu: Add an API to be called after wakeup Date: Sat, 08 Nov 2014 18:46:40 +0530 Message-id: <1415452601-13078-6-git-send-email-amit.daniel@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1415452601-13078-1-git-send-email-amit.daniel@samsung.com> References: <1415452601-13078-1-git-send-email-amit.daniel@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMLMWRmVeSWpSXmKPExsWyRsSkWldFMi7EYO9WM4uGqyEWvQuuslnc /3qU0WLT42usFpd3zWGzmHF+H5PF4TftrA7sHneu7WHz2Lyk3qNvyypGj8+b5AJYorhsUlJz MstSi/TtErgy7v//z1jwhKdib8t1tgbG91xdjJwcEgImEiuetTBD2GISF+6tZ+ti5OIQEljK KPH54n0WmKLOpz1MEInpjBJXPq1hhnAmMEkc3XsXrJ1NwFji58797F2MHBwiAt4Sy68pgtQw C8xglOjpbmUEqREWCJfo3rmBCcRmEVCV+LFsERtIPa+Au0TDn0QQU0JAQWLOJBuQCk4BD4kF e7vBbhACqtj08B8jyEgJgcnsEiu/dLBBjBGQ+Db5EAtEr6zEpgNQz0hKHFxxg2UCo/ACRoZV jKKpBckFxUnpRSZ6xYm5xaV56XrJ+bmbGIFhffrfswk7GO8dsD7EKMDBqMTDe6MlNkSINbGs uDL3EKMp0IaJzFKiyfnA6MkriTc0NjOyMDU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NSZnv1eJ8SS3FGoqEWc1FxIgAGETD+sAIAAA== 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.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY, URIBL_RHS_DOB 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 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 4a5eb50..a73c1ea 100644 --- a/drivers/soc/samsung/exynos-pmu.c +++ b/drivers/soc/samsung/exynos-pmu.c @@ -34,6 +34,7 @@ struct exynos_pmu_data { void (*pmu_init)(void); void (*powerdown_conf)(enum sys_powerdown); + void (*powerup_conf)(enum sys_powerdown); }; struct exynos_pmu_context { @@ -430,6 +431,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 exynos5250_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 d2f4083..9a4b833 100644 --- a/include/linux/soc/samsung/exynos-pmu.h +++ b/include/linux/soc/samsung/exynos-pmu.h @@ -25,5 +25,6 @@ struct pmu_dev_client_data { }; extern void exynos_sys_powerdown_conf(enum sys_powerdown mode); +extern void exynos_sys_powerup_conf(enum sys_powerdown mode); #endif /* __EXYNOS_PMU_H */