From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753298AbaEIGAS (ORCPT ); Fri, 9 May 2014 02:00:18 -0400 Received: from mail-ob0-f179.google.com ([209.85.214.179]:42413 "EHLO mail-ob0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751124AbaEIGAQ (ORCPT ); Fri, 9 May 2014 02:00:16 -0400 MIME-Version: 1.0 In-Reply-To: <000e01cf6b23$58fda900$0af8fb00$@samsung.com> References: <000001cf643d$69e5e350$3db1a9f0$@samsung.com> <003901cf6664$e4e8d2a0$aeba77e0$@samsung.com> <5367946F.1030407@ti.com> <003e01cf6984$fb950280$f2bf0780$@samsung.com> <001501cf6a5c$07bc2520$17346f60$@samsung.com> <000301cf6a62$413c16b0$c3b44410$@samsung.com> <000e01cf6b23$58fda900$0af8fb00$@samsung.com> Date: Fri, 9 May 2014 11:30:15 +0530 Message-ID: Subject: Re: [PATCH 1/3] PM / OPP: Add support for descending order for cpufreq table From: Viresh Kumar To: Jonghwan Choi Cc: Nishanth Menon , Linux PM list , open list , "Rafael J. Wysocki" , Len Brown , Amit Daniel Kachhap Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9 May 2014 06:39, Jonghwan Choi wrote: > -> In exynos cpufreq driver, if we want to support more frequency, then Don't add "->" to your replies, it doesn't make it more readable but less. > we have to describe frequency information in dts file and have to change exynos cpufreq > driver file also(For adding divider value). Why? So, as far as I got it your dividers are nothing but 0,1,2... i.e. Freqs: 400 500 600 700 800 div: 4 3 2 1 0 right? That's what you are doing in exynos5440. So just add this in your probe after doing: dev_pm_opp_init_cpufreq_table for(i = 0; all-available-freqs; i++) dvfs_info->freq_table[i].driver_data = dvfs_info->freq_count - i; And this will work with changes in dts files.