Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp66326imu; Tue, 22 Jan 2019 13:59:25 -0800 (PST) X-Google-Smtp-Source: ALg8bN6YYKKWSP8z55SiMvI7I1deARGDkbwEujaOWfQ7Y9qB92ldWsRL6Z5TM94HO27r4+y0eE/M X-Received: by 2002:a62:9719:: with SMTP id n25mr36267589pfe.240.1548194365574; Tue, 22 Jan 2019 13:59:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548194365; cv=none; d=google.com; s=arc-20160816; b=dCKeUWMFtSg8bIptkUV5iH+1fQY8cBZgkwfzdru0aCA4OFwIfLouV/kHVtrgyaV/iO bWSpdIQPIkZlKRHHtYyiV5t7rXDYgxmcZy3OqAszqsuh36XXatzANy05ADhLDUsVcvT5 DmxXQ0CmM+TbVCodDcgAluacx+KgxgGO0XJzieTbt50NAJRbhUmzelvuDKSVqUNLfyNM 9MAuMhH1bQJUF4z1PS25Bz3mf1r3u3tfcqsMsfksXZUHuP+m/rVZ7zvUauC8WDHd623n uiRAgdkUg78OQVz4MMppo6Z1ksQ3wN5XqSK39VGL9h5n+jgPGqG23wpWnrj3JdpxI/Hr FS4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature; bh=54/afgj3XnsltfrXXnXsExRVDT2lxcGLLTyTI//L+1M=; b=K4Q48eynMC2s0NqMPwTcLx9KbTOqT8PvCWtJcOd9u1kGgzPtOuqatoCV1yX5NgYYnj Ocz2DAMY+kRx9mU7ZR/Hl/rbwRN0mGmKFzhcpsnTx0irXLcldajplbCO7TqGICfhb6MH 9KJWvTTlxxtpnRY7Vonos0jresCQr/btlyfCLJ+EEHAm6Ogfkx/OVNFxN64Pq5Fw1+lj cJ1TwW875NCdAaFKxsr09Svn6o4KeSEUoxVuIkus8Cq6Rc5F4Y73wubA2fHV5bkFqQeF QDYU1IRA1/uZEVQB90S9Og3sspYPx8ElqijJIDJ8yCnosC31lQzyCQY8GVxMF+jQnK8b iC0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=lGUPlC0F; dkim=pass header.i=@codeaurora.org header.s=default header.b=Yrpwkn3J; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w31si3518348pla.308.2019.01.22.13.59.08; Tue, 22 Jan 2019 13:59:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=lGUPlC0F; dkim=pass header.i=@codeaurora.org header.s=default header.b=Yrpwkn3J; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726741AbfAVV5s (ORCPT + 99 others); Tue, 22 Jan 2019 16:57:48 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:47754 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725919AbfAVV5s (ORCPT ); Tue, 22 Jan 2019 16:57:48 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 19A1E6074E; Tue, 22 Jan 2019 21:57:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1548194267; bh=slzva9b7Horeo6+Qx1RPzLwHG79/nUlFt6Dz5noHP0s=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=lGUPlC0FpDuZE2erlxY2KSjUWFa+tUcKAKahj0e7U8e4Sqbk64kNXu1yhYsJq88JK 2NYBMk+tG8Ldwdx+DLATlzhIHu88MG140gQ6c0rHfrNV2vp9Q+NEoGyx/ZRBTk8nCu i+dRLSzs+uD2e1V/NLP5M3losCzHXLDBqYihZZbs= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from [10.226.60.81] (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jhugo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 0E3A660740; Tue, 22 Jan 2019 21:57:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1548194266; bh=slzva9b7Horeo6+Qx1RPzLwHG79/nUlFt6Dz5noHP0s=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=Yrpwkn3Jg16ugIDXT5ZAHWUNyq9zaEtfvjMSDPbobCZF16WBRE+w8Pn4P5WtMNgqU TpxjAnfhowbYS7ncif5ZV1J2wNm10VahWS0UgyxuqUFb+IoLbuQpLQvTRvT53A0yt/ luHBdscU99XrZyVdVXH/wSsqF7J9FsmYr8iP7yrI= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 0E3A660740 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=jhugo@codeaurora.org Subject: Re: [PATCH] regulator: qcom-smd: Batch up requests for disabled regulators To: Bjorn Andersson , Liam Girdwood , Mark Brown Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org References: <20190122190147.26735-1-bjorn.andersson@linaro.org> From: Jeffrey Hugo Message-ID: <5165f4d3-5c98-86de-4813-589e1e3da3d8@codeaurora.org> Date: Tue, 22 Jan 2019 14:57:46 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190122190147.26735-1-bjorn.andersson@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/22/2019 12:01 PM, Bjorn Andersson wrote: > In some scenarios the early stages of the boot chain has configured > regulators to be in a required state, but the later stages has skipped > to inform the RPM about it's requirements. > > But as the SMD RPM regulators are being initialized voltage change > requests will be issued to align the voltage with the valid ranges. The > RPM aggregates all parameters for the specific regulator, the voltage > will be adjusted and the "enabled" state will be "off" - and the > regulator is turned off. > > This patch addresses this problem by caching the requested enable state, > voltage and load and send the parameters in a batch, depending on the > enable state - effectively delaying the voltage request for disabled > regulators. > > Signed-off-by: Bjorn Andersson This happens to fix an annoyance I've been avoiding on 8998. Reviewed-by: Jeffrey Hugo Tested-by: Jeffrey Hugo -- Jeffrey Hugo Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.