Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751915AbcDRKg6 (ORCPT ); Mon, 18 Apr 2016 06:36:58 -0400 Received: from mailout4.w1.samsung.com ([210.118.77.14]:41174 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750860AbcDRKg5 (ORCPT ); Mon, 18 Apr 2016 06:36:57 -0400 X-AuditID: cbfec7f4-f796c6d000001486-c3-5714b8c53240 Subject: Re: [PATCH] regulator: s2mps11: Remove unused set_voltage_time_sel To: Mark Brown References: <1460965378-5256-1-git-send-email-k.kozlowski@samsung.com> <20160418095713.GO3217@sirena.org.uk> Cc: Sangbeom Kim , Liam Girdwood , linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Bartlomiej Zolnierkiewicz From: Krzysztof Kozlowski X-Enigmail-Draft-Status: N1110 Message-id: <5714B8C4.5070207@samsung.com> Date: Mon, 18 Apr 2016 12:36:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-version: 1.0 In-reply-to: <20160418095713.GO3217@sirena.org.uk> Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrILMWRmVeSWpSXmKPExsVy+t/xq7pHd4iEGzx8ImuxccZ6VoupD5+w Wbx+YWjx7UoHk8XlXXPYLGac38dkcXHFFyYHdo+ds+6ye2xa1cnm0bdlFaPH501yASxRXDYp qTmZZalF+nYJXBn3Z1xnK/jEXjFh+nnGBsa1bF2MnBwSAiYSh/b+ZYKwxSQu3FsPFOfiEBJY yihxe8V0FgjnGaPEhuudjCBVwgLeEovOfmIGsUUElCWuft/LAmILCeRJ7H02lQmkgVngGKPE vQPXwYrYBIwlNi9fArVOTqK3exJYA6+AlsS0dVvZQWwWAVWJ4+cmgZ0hKhAh8WTuSUaIGkGJ H5PvgdVzChhJdG7/CjSHA2iBnsT9i1ogYWYBeYnNa94yT2AUnIWkYxZC1SwkVQsYmVcxiqaW JhcUJ6XnGuoVJ+YWl+al6yXn525ihAT8lx2Mi49ZHWIU4GBU4uGNYBAJF2JNLCuuzD3EKMHB rCTCO2UjUIg3JbGyKrUoP76oNCe1+BCjNAeLkjjv3F3vQ4QE0hNLUrNTUwtSi2CyTBycUg2M /NGvf0fX9x0rFnwowjHDUbl+cUXGNe2XE4zNbuiLP/OynJ5muv649ft1+jtmel/Zd2z2M8Nz 9ys/bNissd91GsPsjD9cKS0Ch3fa+JmHnlTJCHuapfNksRNriorIpm/btA7dV/x7Isztt/Ov qDL1ToW6xiDB6/KbjoR/TD51cNWius4VXgvtlFiKMxINtZiLihMBHweZ1XQCAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 985 Lines: 23 On 04/18/2016 11:57 AM, Mark Brown wrote: > On Mon, Apr 18, 2016 at 09:42:58AM +0200, Krzysztof Kozlowski wrote: > >> On S2MPS11 and S2MPS14 devices the default implementation of >> set_voltage_time_sel() for LDO regulators was not doing anything useful >> because users did not provide ramp delay in Device Tree so the >> set_voltage_time_sel() exited with status 0. This could be seen in >> dmesg, e.g. on Odroid XU4: > > That's not the bug, the bug is that the driver is providing the > operation without providing a non-zero value for it. The device tree > configuration is to override what the driver is doing. So your recommendation would be to set the ramp_delay value in regulator_desc structure? The problem is that value of 30 mv/us in datasheet looks untrustworthy (copied from other pages) and vendor kernel (which should be a reference) uses 12 mv/us. Anyway setting any value greater than 0 seems like better idea than just sticking to 0... Best regards, Krzysztof