From patchwork Tue Feb 9 05:00:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 61504 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp1832775lbl; Mon, 8 Feb 2016 21:06:32 -0800 (PST) X-Received: by 10.98.14.79 with SMTP id w76mr24543730pfi.1.1454994392571; Mon, 08 Feb 2016 21:06:32 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 17si51359225pfm.61.2016.02.08.21.06.32; Mon, 08 Feb 2016 21:06:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752942AbcBIFGb (ORCPT + 11 others); Tue, 9 Feb 2016 00:06:31 -0500 Received: from mail-pa0-f41.google.com ([209.85.220.41]:35312 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751874AbcBIFCF (ORCPT ); Tue, 9 Feb 2016 00:02:05 -0500 Received: by mail-pa0-f41.google.com with SMTP id ho8so85229703pac.2 for ; Mon, 08 Feb 2016 21:02:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=aLZbkMf952THjinM7aUb/s+8o4tjGuFCzsyd+FwdRms=; b=G6pxpIOtaFWJK1/RlYZpvrMUgbA7vkDYKBnEjAhpa+osLLaoUMTg41FpGV4eyKXAdY lUnlVQMId2fiB1KP82WQpDmch+y0bfGTqAas84Y8/mZNPaZSPg5pC5tdnW3LoEkc9w7c jXkNNGx6iJAvMqPsF3NofVha+LSfa8mCxlTdc= 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:in-reply-to :references:in-reply-to:references; bh=aLZbkMf952THjinM7aUb/s+8o4tjGuFCzsyd+FwdRms=; b=NGttUPjvrFGyncM3VDYAdImic8JJUmc27ty0Q0e41beizg/0dVYX35IKufc3qy558o YuuX0rlPz30t9oBwrW9dPacB2W6HJF7TxY4D6O/G33ZI8cSRhQNp5SZ/TnbUUOaTCUR2 vbHErLk6952YpGzWo45lRwuYV/S+Nx438uKg/xEoJTo8kggCWCx92Q1jCk5rEhRUm5/A QAobLaySr67zMNGImyijsij59qGGZh8j8KToVIqkvvYY1pt7RubPMq2GPH4cherlQOu/ 5bThrS9JhC/fOs+ZJimDWms2TXTttOdeaIafYIeWOMpFzaA2059O3lfjof8M3BOMXsyf wPyA== X-Gm-Message-State: AG10YOT2yLUpuuxgPOxRGkmxEe/CrHeEQtRQwOe9Pq3um0X8sje+ysLsCp/YiXQuaO4txa6p X-Received: by 10.66.62.132 with SMTP id y4mr47075324par.49.1454994124503; Mon, 08 Feb 2016 21:02:04 -0800 (PST) Received: from localhost ([122.172.22.246]) by smtp.gmail.com with ESMTPSA id x88sm25509425pfi.66.2016.02.08.21.02.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Feb 2016 21:02:03 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Stephen Boyd , nm@ti.com, Viresh Kumar , linux-kernel@vger.kernel.org (open list) Subject: [PATCH V3 10/16] cpufreq: dt: OPP layers handles clock-latency for V1 bindings as well Date: Tue, 9 Feb 2016 10:30:42 +0530 Message-Id: <27a4bd439b1355945dd2f965eeea58230d01ba6a.1454992187.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.7.1.370.gb2aa7f8 In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org "clock-latency" is handled by OPP layer for all bindings and so there is no need to make special calls for V1 bindings. Use dev_pm_opp_get_max_clock_latency() for both the cases. Signed-off-by: Viresh Kumar Reviewed-by: Stephen Boyd --- drivers/cpufreq/cpufreq-dt.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) -- 2.7.1.370.gb2aa7f8 -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/cpufreq/cpufreq-dt.c b/drivers/cpufreq/cpufreq-dt.c index 0047d20803db..4c9f8a828f6f 100644 --- a/drivers/cpufreq/cpufreq-dt.c +++ b/drivers/cpufreq/cpufreq-dt.c @@ -265,10 +265,6 @@ static int cpufreq_init(struct cpufreq_policy *policy) if (ret) dev_err(cpu_dev, "%s: failed to mark OPPs as shared: %d\n", __func__, ret); - - of_property_read_u32(np, "clock-latency", &transition_latency); - } else { - transition_latency = dev_pm_opp_get_max_clock_latency(cpu_dev); } priv = kzalloc(sizeof(*priv), GFP_KERNEL); @@ -279,6 +275,7 @@ static int cpufreq_init(struct cpufreq_policy *policy) of_property_read_u32(np, "voltage-tolerance", &priv->voltage_tolerance); + transition_latency = dev_pm_opp_get_max_clock_latency(cpu_dev); if (!transition_latency) transition_latency = CPUFREQ_ETERNAL;