Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4637543imm; Wed, 30 May 2018 09:07:26 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKMA1AndJOKODBa+kJM4rqjVTi/s/DoPIjEm3Rye+x6mzOBpzgFpcEaGlLsbzbdKvBtkGNd X-Received: by 2002:a62:7002:: with SMTP id l2-v6mr3363620pfc.40.1527696446003; Wed, 30 May 2018 09:07:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527696445; cv=none; d=google.com; s=arc-20160816; b=BXgQTtbQjciJ2vKb/Hm483NbU1dbbRNCK+rDY6LFxEYOjnaxe5cEJUOIFcVTvlCCc5 rHKgS1Ql+Di7cgi8GuW0VV5EM3ART9BQkrvPUWp+Ra4IOcdwJbe0L+JQg5B3bjOQSfs0 1Fh1l4kuBoKsVvEjgpZGT0J/UrOxwZim/XamCsPJYFSV5gCyONjZqmELqm9KQRu2J+EN FXD3QEwW5k4NIDDJoHzsybsxIKKDCdPq48emv2B//gF4uzbXUS49uD8uL7NEquWIT/51 v2Bj2ozplVhNhDIgzCNH0Q0bAzKnVXtjWfBJsBlA7aR5O6hyodfpZGVrcOEo4qJJth97 BPvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=FQJf5OC6HkPVUSiqo+3nedVMPlcyJSMdjYgXX5R/UQI=; b=Ymfyqe0Hszovvzt/kHdXc0Cm8a2IO6w7pMdzZbq9Cck2pUHO6qHtBjdpmWMNVZ0xml ERkMdlrprfFjJu5sTwoA4bO9D7iAlljpbVmWwrf7VTl8CglGR4KxDy+s8ZBsV2dr7I3J uuPVBLWb/BgIHWi8kZF2NEnw/v85TYK/79WRZgE/aH9kfDdyB+ni6IOeIG7sRTJRlu57 A0oA4bDJbTOhUFDEsCv4t4hRZFwYHZDReR8It0OQ2vKsbE9NU//DQlTbWv+Fw4YIiOVO LlTCKhY/WVFM2CzxjQUOhEpl/zq10hctTQ3653hmbJb6W9RNIV2LKnAPNVrFXPbahwSX Kd/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=B/V3Yprj; dkim=fail header.i=@chromium.org header.s=google header.b=Z3Iem+Q7; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z12-v6si27171814pgu.115.2018.05.30.09.07.11; Wed, 30 May 2018 09:07:25 -0700 (PDT) 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=fail header.i=@google.com header.s=20161025 header.b=B/V3Yprj; dkim=fail header.i=@chromium.org header.s=google header.b=Z3Iem+Q7; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932113AbeE3QGU (ORCPT + 99 others); Wed, 30 May 2018 12:06:20 -0400 Received: from mail-vk0-f68.google.com ([209.85.213.68]:46520 "EHLO mail-vk0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932097AbeE3QGS (ORCPT ); Wed, 30 May 2018 12:06:18 -0400 Received: by mail-vk0-f68.google.com with SMTP id i190-v6so11431824vkd.13 for ; Wed, 30 May 2018 09:06:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=FQJf5OC6HkPVUSiqo+3nedVMPlcyJSMdjYgXX5R/UQI=; b=B/V3Yprjzj8qkKL0/DiTEERoRyFn6mjoRdYriRiE0OrbSsvua2Hhyw4m2QkgeqGNl3 2tjD3QfjgCQgeLtH09mmJBzr+1jzdST7EaSAcu7DCLGYQtIsV6YTKKpCGvZMbONxuUwY p02xpsBgnqGHXY6YhKWQheEAd7Jhc1/V1oIwyeVUFRlLT8EitO3yNcv69fV2xqn4TXDr u5psrcngDITV+aNj9FNNVvPbDDbRMYa1LfbY5gr1qvcZWFuepmGGkRszW6c7eap2QK32 TDE78q3aBD4I9BosQ/id7OIqSe1orwyVwa1J0UVbq6wAwcG9ulKNAZSSpimf7Cm/COje IjJw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=FQJf5OC6HkPVUSiqo+3nedVMPlcyJSMdjYgXX5R/UQI=; b=Z3Iem+Q7EOzZvy1bGQavso5RPLudYxPiFgB1QQyIvGfiIZ/G8xKOcsLPMQGxnJZzCB KzB+Asoo0mAZT2V6aeIL1xFW8Gz2n4UrszLHABDkqD3SUJ4qxiadjdux5gEgl99KagUl Dq8Vivqi/0Q6mn8WagAc3GO7cmE7Tu9fMUGUg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=FQJf5OC6HkPVUSiqo+3nedVMPlcyJSMdjYgXX5R/UQI=; b=KT+xVZQm5GqkQPnED9KGAoqM19EIoaHHM01Vp+BD6IALSA08gVh5QxOd+zE+m49uVF KjBkNi4jTOKVS5eqNNKWc1bTlLSm+J345q+KPlc8FdQ97v3q05K8gr2wUIWAZch1uR2A pE3AciyW1BTkhWhaPxOg3+fyVAD44BFFxxzBuAFKrb8eGmTu1cNLXx51vfQao5DHc3b6 2ONBWv7Jt8OyTkhqtJvw0xhzXXzUqSJn1bVTA69cOMM+xr5gSOVSyBTYvpl8fbqVz/HU IMVjiSqbeAAYiZe4P3OSUQLgQJgH3C5codb7/xPNw2OzbhH9fDUZYZqm3LVEbMLtd0rJ m4uA== X-Gm-Message-State: ALKqPwemAfWJTeB/YSM60KqrLMpE4i4dkRa9QCrpRmIZ8zqEKB+JBBp9 SolVP7jD/dAOA2YCc7JZ2V+zDiPy56u//EOduguQFw== X-Received: by 2002:a1f:3a15:: with SMTP id h21-v6mr1931676vka.93.1527696377314; Wed, 30 May 2018 09:06:17 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1f:3052:0:0:0:0:0 with HTTP; Wed, 30 May 2018 09:06:16 -0700 (PDT) In-Reply-To: <20180530154849.GQ6920@sirena.org.uk> References: <20180523082908.GB4828@sirena.org.uk> <20180523154057.GL4828@sirena.org.uk> <20180523155617.GN4828@sirena.org.uk> <20180530093701.GD6920@sirena.org.uk> <20180530150241.GO6920@sirena.org.uk> <20180530154849.GQ6920@sirena.org.uk> From: Doug Anderson Date: Wed, 30 May 2018 09:06:16 -0700 X-Google-Sender-Auth: ievWh5uLxJBb4c_nRljUVLA30Ck Message-ID: Subject: Re: [PATCH v3 1/2] regulator: dt-bindings: add QCOM RPMh regulator bindings To: Mark Brown Cc: David Collins , Liam Girdwood , Rob Herring , Mark Rutland , linux-arm-msm@vger.kernel.org, Linux ARM , devicetree@vger.kernel.org, LKML , Rajendra Nayak , Stephen Boyd Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wed, May 30, 2018 at 8:48 AM, Mark Brown wrote: > On Wed, May 30, 2018 at 08:34:50AM -0700, Doug Anderson wrote: >> On Wed, May 30, 2018 at 8:02 AM, Mark Brown wrote: > >> > What you're describing sounds like what we should be doing normally, if >> > we're not doing that we should probably be fixing the core. > >> I'm not convinced that this behavior makes sense to move to the core. >> On most regulators I'd expect that when the regulator driver says to >> turn them off that they will output no voltage. The reason RPMh is > > Oh, you mean while the regulator is off... TBH I don't see a huge > problem doing that anyway and just reverting to the bottom of the > constraints when everything gets turned off since we have to see if we > need to adjust the voltage every time we enabled anyway. > >> In any other system when Linux disabled the regulator it wouldn't >> matter that you left it set at 1.4V. Thus RPMh is special and IMO the >> workaround belongs there. > > Without the core doing something the regulator isn't going to get told > that anything updated voltages anyway... I was just suggesting that when the core tells the regulator driver to disable itself that the regulator driver tell RPMh to not only disable itself but also (temporarily) vote for a lower voltage. When the core tells the regulator to re-enable itself then the regulator driver restores the original voltage vote (or applies any vote that might have been attempted while the regulator was disabled). That wouldn't require any regulator core changes. -Doug