From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752426AbaEHFzg (ORCPT ); Thu, 8 May 2014 01:55:36 -0400 Received: from mail-oa0-f43.google.com ([209.85.219.43]:36037 "EHLO mail-oa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751043AbaEHFze (ORCPT ); Thu, 8 May 2014 01:55:34 -0400 MIME-Version: 1.0 In-Reply-To: <000301cf6a62$413c16b0$c3b44410$@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> Date: Thu, 8 May 2014 11:25:34 +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 8 May 2014 07:37, Jonghwan Choi wrote: As asked earlier by Nishanth: - Avoid top-posting (the practice of putting your answer above the quoted text you are responding to). It makes your response harder to read and makes a poor impression. Reference: Documentation/development-process/2.Process > I believe that 3 item is required for DVFS. Those are frequency, voltage, divider value. Not necessarily. People may need a multiplier as well or some other configuration and so this stuff was left for drivers to implement. > How about adding that divider value into struct dev_pm_opp like this; Wouldn't work for all and so NAK. > struct dev_pm_opp { > struct list_head node; > > bool available; > unsigned long rate; > unsigned long u_volt; > unsigned int ctl[2]; // Added > > struct device_opp *dev_opp; > struct rcu_head head; > }; Always paste a diff, its impossible to read this :( > In my test, it works very wel.. Working isn't enough :) You don't have a complicated list of dividers, these are simple values from 0 to total-num-of-freq -1 and that can be handled very easily in your code.. Please do it there.