From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754911AbbCRG7s (ORCPT ); Wed, 18 Mar 2015 02:59:48 -0400 Received: from mail-ob0-f173.google.com ([209.85.214.173]:35563 "EHLO mail-ob0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751248AbbCRG7o (ORCPT ); Wed, 18 Mar 2015 02:59:44 -0400 MIME-Version: 1.0 In-Reply-To: References: <1425458956-20665-1-git-send-email-pi-cheng.chen@linaro.org> <1425458956-20665-4-git-send-email-pi-cheng.chen@linaro.org> <20150311105307.GW28806@sirena.org.uk> <20150311124555.GB28806@sirena.org.uk> Date: Wed, 18 Mar 2015 12:29:43 +0530 Message-ID: Subject: Re: [PATCH v2 3/4] cpufreq: mediatek: add Mediatek cpufreq driver From: Viresh Kumar To: Pi-Cheng Chen Cc: Mark Brown , Mark Rutland , "devicetree@vger.kernel.org" , Linaro Kernel Mailman List , Pawel Moll , Ian Campbell , Catalin Marinas , Sascha Hauer , "linux-pm@vger.kernel.org" , "Rafael J. Wysocki" , Linux Kernel Mailing List , Chen Fan , Howard Chen , Rob Herring , linux-mediatek@lists.infradead.org, Kumar Gala , Matthias Brugger , "Joe.C" , Eddie Huang , Thomas Petazzoni , "linux-arm-kernel@lists.infradead.org" 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 12 March 2015 at 16:45, Pi-Cheng Chen wrote: > The voltages of the two regulators need to be always under a limitation: > 100mV < Vsram - Vproc < 200mV > For now, I just calculate the OPPs of Vsram from OPPs of Vproc. > > Another thing I should mention, if the voltage difference of two adjacent > OPPs is greater than 100mV, we need to set the regulator to some > voltages which are not in OPP table considering the limitation above. > I think that will make it more difficult to model such flow in a generic > framework. Actually the problem is that OPP tables are insufficient for such cases, and we are adding work-arounds to fix that. Though it will get fixed with the new bindings we are adding. I am confused on what we should be doing here. Even if you write your own driver, you will be abusing DT with incorrect information. Even if you go around adding a new driver, I would like you to fallback to cpufreq-dt ones the new OPP bindings are in place.