From patchwork Thu Jan 28 08:20:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 60685 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp332593lbb; Thu, 28 Jan 2016 00:24:24 -0800 (PST) X-Received: by 10.98.66.157 with SMTP id h29mr2693627pfd.91.1453969464470; Thu, 28 Jan 2016 00:24:24 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o28si12786332pfa.151.2016.01.28.00.24.23; Thu, 28 Jan 2016 00:24:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dkim=pass header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966225AbcA1IYM (ORCPT + 30 others); Thu, 28 Jan 2016 03:24:12 -0500 Received: from mail-pa0-f50.google.com ([209.85.220.50]:35672 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965380AbcA1IVZ (ORCPT ); Thu, 28 Jan 2016 03:21:25 -0500 Received: by mail-pa0-f50.google.com with SMTP id ho8so19502858pac.2 for ; Thu, 28 Jan 2016 00:21:24 -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=ZM/XO0ck/oLXVBiLwCqt7UjGDkt17gMv1tCJN6bmuME=; b=JMqie/RKHLrJhACZqV5dQexPVzpmt/4kpszRfasKI67jINQodB4THuOGZEpsSVGdAI d7SR3AgNsEpqhvOmftH9ON0hWzLRONrcgu+rZvlZ7hGcrIXmkbjZjjzq2ed5oyAivevK 0jeboIpI+Qtq4WQ6Jzn9fpW3Ugc6v3jhhTaeg= 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=ZM/XO0ck/oLXVBiLwCqt7UjGDkt17gMv1tCJN6bmuME=; b=jr03vUi3QXLypttNBZFCdTQLoPyTAls6PKc0c/OAlvT0RnBq1qZWZCYqwGVzljJ1zF rI7DXW+gQSsMCGA1VmAYaKLK2zBQ8vvKSWadWifP3wgcaOwvLH/Cuon2bazsOiq2kHDs OItdy02HZ8JpMsVDqbUYaSK64eZwY/IfTrKknhVKZlazwxx+V4XQZoeHhW7bquRExqyx +JsMop7bkTI78Vi8DJnpWZ2rdtHu8KDCFj0qK4fZdoGoCa5b5eqm6u8J3Q6SZdk+hbaK 9spD7mStrKCvrSZS6cUBc9Kq8XFsyGv6BbPa1HznPArZzfGyYzS2K3Zz09GnENhbFizS 9AFg== X-Gm-Message-State: AG10YORZuFQ2YgX1js+kuU2QLJFLOySF6EP6bbH26yZvfTN2W1Bx7G4NkjJL7NKiKGY7TZnX X-Received: by 10.66.121.136 with SMTP id lk8mr2681385pab.1.1453969284579; Thu, 28 Jan 2016 00:21:24 -0800 (PST) Received: from localhost ([122.171.121.234]) by smtp.gmail.com with ESMTPSA id 11sm14172493pfq.87.2016.01.28.00.21.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jan 2016 00:21:24 -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 V2 10/16] cpufreq: dt: OPP layers handles clock-latency for V1 bindings as well Date: Thu, 28 Jan 2016 13:50:39 +0530 Message-Id: <566f3cd11c1e0ebc1075a7e20fd9df04ba394624.1453965717.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.7.0.79.gdc08a19 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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.0.79.gdc08a19 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;