Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754765AbcC3SJm (ORCPT ); Wed, 30 Mar 2016 14:09:42 -0400 Received: from mail-pf0-f173.google.com ([209.85.192.173]:35920 "EHLO mail-pf0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754665AbcC3SJk convert rfc822-to-8bit (ORCPT ); Wed, 30 Mar 2016 14:09:40 -0400 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT To: Georgi Djakov , "Mark Brown" From: Stephen Boyd In-Reply-To: <56FBE45B.4030709@linaro.org> Cc: linux-arm@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, "David Collins" References: <1459292320-1996-1-git-send-email-stephen.boyd@linaro.org> <56FBE45B.4030709@linaro.org> Message-ID: <20160330180933.5175.90898@sboyd-linaro> User-Agent: alot/0.3.7 Subject: Re: [PATCH] regulator: qcom_spmi: Add slewing delays for all SMPS types Date: Wed, 30 Mar 2016 11:09:33 -0700 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1086 Lines: 23 Quoting Georgi Djakov (2016-03-30 07:36:11) > On 03/30/2016 01:58 AM, Stephen Boyd wrote: > > Only the FT SMPS type regulators have slewing supported in the > > driver, but all types of SMPS regulators need the same support. > > The only difference is that some SMPS regulators don't have a > > step size and the step delay is typically 20, not 8. Luckily, the > > step size reads as 0 for the non-FT types, so we can always read > > that, but we need to detect which type of regulator we're using > > to figure out what step delay to use. Make these minor > > adjustments to the slew rate calculations and add support for the > > delay function to the appropriate regulator ops. > > > > Reported-by: Georgi Djakov > > Cc: David Collins > > Signed-off-by: Stephen Boyd > > Thanks for the patch! I have verified it by applying this one > on top: https://lkml.org/lkml/2016/3/30/381 > > Tested-by: Georgi Djakov > Thanks for testing. I'll pick up the rest on the other thread.