From patchwork Mon Nov 24 02:06:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kachhap X-Patchwork-Id: 5362741 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 164C39F39D for ; Mon, 24 Nov 2014 02:13:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5430A202FF for ; Mon, 24 Nov 2014 02:13:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7166D202F8 for ; Mon, 24 Nov 2014 02:13:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751848AbaKXCMu (ORCPT ); Sun, 23 Nov 2014 21:12:50 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:16495 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751775AbaKXCMr (ORCPT ); Sun, 23 Nov 2014 21:12:47 -0500 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NFI0059JU58JS10@mailout3.samsung.com>; Mon, 24 Nov 2014 11:12:45 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.126]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id C2.67.17016.C1492745; Mon, 24 Nov 2014 11:12:44 +0900 (KST) X-AuditID: cbfee68d-f79296d000004278-d4-5472941c6f3e Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id D5.BA.20081.C1492745; Mon, 24 Nov 2014 11:12: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 <0NFI006X1U4PTKF0@mmp2.samsung.com>; Mon, 24 Nov 2014 11:12: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, linux@arm.linux.org.uk, Amit Daniel Kachhap Subject: [PATCH v4 3/5] driver: soc: exynos-pmu: Add an API to be called after wakeup Date: Mon, 24 Nov 2014 07:36:13 +0530 Message-id: <1416794775-1605-4-git-send-email-amit.daniel@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1416794775-1605-1-git-send-email-amit.daniel@samsung.com> References: <1416794775-1605-1-git-send-email-amit.daniel@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrLLMWRmVeSWpSXmKPExsWyRsSkTldmSlGIwdSLphYNV0MsehdcZbPY 9Pgaq8XlXXPYLGac38dkcfsyrwObR0tzD5vH5iX1Hn1bVjF6fN4kF8ASxWWTkpqTWZZapG+X wJWx48sxpoKVvBWLTm9gbmBcwd3FyMkhIWAi8fV6LzOELSZx4d56ti5GLg4hgaWMEremvmCD Kfq5fh8rRGI6o8Tb211QzgQmiQ0n/zOCVLEJGEv83LmfvYuRg0NEwFti+TVFkBpmgQZGie0f 5oNNEhYIl9h3/wBYDYuAqsTeC5kgYV4BN4mvNx4wgoQlBBQk5kyyAQlzCrhLNB+dDzZdCKhk z/cOJpCREgLd7BLrLm5lB0mwCAhIfJt8iAWiV1Zi0wGoZyQlDq64wTKBUXgBI8MqRtHUguSC 4qT0IkO94sTc4tK8dL3k/NxNjMBQPv3vWe8OxtsHrA8xCnAwKvHwfmgtDBFiTSwrrsw9xGgK tGEis5Rocj4wYvJK4g2NzYwsTE1MjY3MLc2UxH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HGVXcydVxvHxc+Wa3EUpyRaKjFXFScCAAU2RefqgIAAA== 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 2965c3b..f7ae8a0 100644 --- a/drivers/soc/samsung/exynos-pmu.c +++ b/drivers/soc/samsung/exynos-pmu.c @@ -32,6 +32,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 { @@ -640,6 +641,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 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 */