From patchwork Tue Dec 22 10:16:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 58853 Delivered-To: patch@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp3139787lbb; Tue, 22 Dec 2015 02:17:04 -0800 (PST) X-Received: by 10.98.87.133 with SMTP id i5mr14364574pfj.130.1450779424604; Tue, 22 Dec 2015 02:17:04 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sw10si3585212pab.55.2015.12.22.02.17.04; Tue, 22 Dec 2015 02:17:04 -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 S932663AbbLVKRD (ORCPT + 11 others); Tue, 22 Dec 2015 05:17:03 -0500 Received: from mail-pf0-f174.google.com ([209.85.192.174]:34694 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932181AbbLVKRC (ORCPT ); Tue, 22 Dec 2015 05:17:02 -0500 Received: by mail-pf0-f174.google.com with SMTP id u7so57927608pfb.1 for ; Tue, 22 Dec 2015 02:17:01 -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=nYUM7MvKAJYdJxK5ll077//DQoVEQcfA/6I/wtARr6o=; b=RBQ3j02cgxFsuojSENzn1lYWwe9he0MVfTxU+07XC3L87CPIVedNnTCfWMbS8TPTG6 2MpfQhwdhzSG0LjDGuPL07HWGoba5p6oPWkQ17pv+j55m5kHTQ+GecL0yJWOC/iFp+AH 0OmkHIphrhju0dQJej11ulS+2aX+7Ne6wMVVA= 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=nYUM7MvKAJYdJxK5ll077//DQoVEQcfA/6I/wtARr6o=; b=GepLxlNHYPNUnadgfby1CZ0wSKxPhRxkAsaFz0cBgyTyMbTrw7rSrXqFBfmcfDhh2p RfXsNnpfcElNT5zHTUuwJ13NYedllJfuP+KXHzm4to9IXRfuGRJtFZVbeedd6YWR1e8m aZ0dOuGCvS6vUuU4XXVATlA+xCvGQzuucmz89X6d0JzW5gIORB4kxC8z/Cbs2p6Oo8lF SyM7ICRUc8se870AMdtJ4FgY011pitFe3VJLhW7Cp817QHOvQsZlUs/zrgjg54xe4r1t KNRCz+x20aS3y5VFsX5Lm2bFHilw1tFzZWkxjplJGw8Acfu6XSpofrdw3LWX1ALMNGAw HEug== X-Gm-Message-State: ALoCoQmlzkqCRwNbsBTf8Og/kvk/ip3K2k13w5NtAnQVFKwBeCw+LVnHIuV4V2egmSM0orqEEK2URMzFgE6y7wibp9iwIUW1bA== X-Received: by 10.98.73.218 with SMTP id r87mr34544136pfi.20.1450779421743; Tue, 22 Dec 2015 02:17:01 -0800 (PST) Received: from localhost ([122.171.29.67]) by smtp.gmail.com with ESMTPSA id i66sm6613454pfj.28.2015.12.22.02.17.00 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 22 Dec 2015 02:17:01 -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 Subject: [PATCH 11/17] cpufreq: dt: OPP layers handles clock-latency for V1 bindings as well Date: Tue, 22 Dec 2015 15:46:12 +0530 Message-Id: <617c40e84b653fa4253c8f3b2520f27127f87264.1450777582.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.7.0.rc1.186.g94414c4 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 --- drivers/cpufreq/cpufreq-dt.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) -- 2.7.0.rc1.186.g94414c4 -- 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 7af6e466205f..a6f91da7283e 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;