From patchwork Fri Nov 8 06:27:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 3156421 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 976479F440 for ; Fri, 8 Nov 2013 06:28:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AF41420497 for ; Fri, 8 Nov 2013 06:28:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7299D201CB for ; Fri, 8 Nov 2013 06:28:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751391Ab3KHG2s (ORCPT ); Fri, 8 Nov 2013 01:28:48 -0500 Received: from mail-pd0-f174.google.com ([209.85.192.174]:52229 "EHLO mail-pd0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750995Ab3KHG2s (ORCPT ); Fri, 8 Nov 2013 01:28:48 -0500 Received: by mail-pd0-f174.google.com with SMTP id z10so1707149pdj.33 for ; Thu, 07 Nov 2013 22:28:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=kenaEIt+BuCVffx4gyZlrX1L6xULYb0G8bxZVyYlSMA=; b=ffbP1H7KFhbes74vcnWzg237Pxzoc6+BoSz/MRCbCSNLmYQYEK8nTmlujTM/pzrN8I wpCfIwmvwFejmZEGQTctZvTNnxy2BbmISv1KJQmnuxJOx0FEwCXMFffoXMQVxIQ3T8cg 7PY/XuGud8zAF04d5H8/UB1t/1/m5QOim5zVzFoAONAfaXLYqD9JMkzYUY9mKJglNFoo uw0nEV4nLorrPBgMlYTBOBhGo3uUuU+lJWO4oethNobpj27KWUiTfbCnaEZBK7+NNfMV WHG2BCRNnfdbCQW4/JTOgjQEhZGmIoGTVNAPi45cVU6+EJ9kmPYMpo1eokXhLDBUvS8L eOeg== X-Gm-Message-State: ALoCoQm2QJq5GgPoJgUPk3kFkvPh0yulJD5V+R6kLuwuIVp5imnTEDNwqWfvo840jW9H76UVkS/F X-Received: by 10.66.235.106 with SMTP id ul10mr13651508pac.19.1383892127612; Thu, 07 Nov 2013 22:28:47 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id y9sm11542009pas.10.2013.11.07.22.28.44 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 07 Nov 2013 22:28:47 -0800 (PST) From: Sachin Kamat To: linux-samsung-soc@vger.kernel.org Cc: kgene.kim@samsung.com, prathyush.k@samsung.com, sachin.kamat@linaro.org, Prasanna Kumar Subject: [PATCH 1/1] ARM: EXYNOS: Add default latency values for Device and Power Domain Date: Fri, 8 Nov 2013 11:57:05 +0530 Message-Id: <1383892025-14759-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 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, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 From: Prasanna Kumar Power domain and device timing data are intialized with default values to avoid dump of warnings from various power domains during power gating. Signed-off-by: Prasanna Kumar Signed-off-by: Prathyush K Signed-off-by: Sachin Kamat --- arch/arm/mach-exynos/pm_domains.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-exynos/pm_domains.c b/arch/arm/mach-exynos/pm_domains.c index 84e0483a0500..9bbb4ac23980 100644 --- a/arch/arm/mach-exynos/pm_domains.c +++ b/arch/arm/mach-exynos/pm_domains.c @@ -25,6 +25,10 @@ #include #include +#define DEFAULT_DEV_LATENCY_NS 1000000UL +#define DEFAULT_PD_PWRON_LATENCY_NS 10000000UL +#define DEFAULT_PD_PWROFF_LATENCY_NS 10000000UL + /* * Exynos specific wrapper around the generic power domain */ @@ -36,6 +40,13 @@ struct exynos_pm_domain { u32 enable; }; +static struct gpd_timing_data dev_latencies = { + .stop_latency_ns = DEFAULT_DEV_LATENCY_NS, + .start_latency_ns = DEFAULT_DEV_LATENCY_NS, + .save_state_latency_ns = DEFAULT_DEV_LATENCY_NS, + .restore_state_latency_ns = DEFAULT_DEV_LATENCY_NS, +}; + static int exynos_pd_power(struct generic_pm_domain *domain, bool power_on) { struct exynos_pm_domain *pd; @@ -83,7 +94,7 @@ static void exynos_add_device_to_domain(struct exynos_pm_domain *pd, dev_dbg(dev, "adding to power domain %s\n", pd->pd.name); while (1) { - ret = pm_genpd_add_device(&pd->pd, dev); + ret = __pm_genpd_add_device(&pd->pd, dev, &dev_latencies); if (ret != -EAGAIN) break; cond_resched(); @@ -173,6 +184,8 @@ static __init int exynos4_pm_init_power_domain(void) pd->base = of_iomap(np, 0); pd->pd.power_off = exynos_pd_power_off; pd->pd.power_on = exynos_pd_power_on; + pd->pd.power_off_latency_ns = DEFAULT_PD_PWROFF_LATENCY_NS; + pd->pd.power_on_latency_ns = DEFAULT_PD_PWRON_LATENCY_NS; pd->pd.of_node = np; platform_set_drvdata(pdev, pd);