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: 5256761 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 2D69DC11AC for ; Sat, 8 Nov 2014 13:26:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 58F7D2010C for ; Sat, 8 Nov 2014 13:26:26 +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 9C24220148 for ; Sat, 8 Nov 2014 13:26:24 +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 1Xn5zd-00072S-6K; Sat, 08 Nov 2014 13:23:53 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xn5ys-0006km-P6 for linux-arm-kernel@lists.infradead.org; Sat, 08 Nov 2014 13:23:07 +0000 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> for linux-arm-kernel@lists.infradead.org; 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 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+bmbGIFhffrfswk7GO8dsD7EKMDBqMTDe6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zKJ6Ia5j/fq6hR+4 3eYJs934MtFY79GL/58nB/HtjEplctNSZnv1eJ8SS3FGoqEWc1FxIgAGETD+sAIAAA== 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-20141108_052306_998292_BE7907FC X-CRM114-Status: UNSURE ( 8.89 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.6 (-----) Cc: Amit Daniel Kachhap , kgene.kim@samsung.com, lee.jones@linaro.org, linux-kernel@vger.kernel.org, s.nawrocki@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=-1.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, 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 */