Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4664104imm; Wed, 30 May 2018 09:34:37 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJB1KZ/DTuG2y3g7eZdDKDW913r1uExRgAFuTEYuk9w5xYJpFIOZP2dO/1JQywgrdbwlnLP X-Received: by 2002:a17:902:b28:: with SMTP id 37-v6mr3486175plq.201.1527698076995; Wed, 30 May 2018 09:34:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527698076; cv=none; d=google.com; s=arc-20160816; b=tF90VCMEPlBPPrzma5yqDeb2aTi1AKX3I47SfnfL2k/jRSyrAp8kvcb0PfuYI+EKhZ Bnm7Ie6rbdcrlPmwE0hkVm6H5/E+7EZuT7Sg/K82ScBIHYpO5HvdphfCTRC0Yz1FJ4oz BwAmnN+Xxbd+VOKjhVCSqrEOdowCu+GezGTVpHUU4K9TStLp2vlnPpKpBBZsWAhEsD5k LdAApnPyCYc6tXhsfmrLVEvlurcxuJXGzUh7z0lpqFcLcZ3S1h4AQ5mvSRwNPbE52URy tseaw5bYw0GmZR4t9x5hLA52edwOp9XRujvj19C2q59WtwYhY4zQjFE/OS2ipmMXlKwj 7vNQ== 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=DhbQ12AkTJHjkAU2WuxgkUgJv0UUsD5LxnL3Xr/DPRw=; b=KqpG7/Ao5x+56NEfxPbEOaIE8AVe2Syjl01/sJ6ARyWUgBcSAC5M2lH4cUoRtmp7Ac GCl+SHZmxcY+dY8OuT/vvio/8Jb0Pj+IJjp8G2WOv2rlNY8Gbc+xfMvOZkcsQLBY0zb3 oUfhj6xBylZJLTPGMh+B1ujwHP7HPTLuQMYdxO9ckKGbNxSo2c1aoTm7RIeAIJuita7t v+77si0nIonG/9+ouuJ37A7YByAXgeQ/kKSKsHXNpUNSEDEKb8RFT/54KqVnGWFXvtJX K60BUn/sRPV6ml9e0X2fX/TJPyKCiG/BvIQ1it8+elxsA+zm5mzgkLULkAXY2pb0GJDq XJ+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=sivlKi0O; dkim=fail header.i=@chromium.org header.s=google header.b=VmeEmW6Y; 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 a187-v6si28543724pgc.238.2018.05.30.09.34.22; Wed, 30 May 2018 09:34:36 -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=sivlKi0O; dkim=fail header.i=@chromium.org header.s=google header.b=VmeEmW6Y; 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 S1753744AbeE3Qci (ORCPT + 99 others); Wed, 30 May 2018 12:32:38 -0400 Received: from mail-vk0-f68.google.com ([209.85.213.68]:34631 "EHLO mail-vk0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753556AbeE3Qcg (ORCPT ); Wed, 30 May 2018 12:32:36 -0400 Received: by mail-vk0-f68.google.com with SMTP id q135-v6so8992936vkh.1 for ; Wed, 30 May 2018 09:32:35 -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=DhbQ12AkTJHjkAU2WuxgkUgJv0UUsD5LxnL3Xr/DPRw=; b=sivlKi0OapiJlX2efvMyga5DpDuc6iUWxzd15pJ3n45VX+BB7f94kIvk/iDerimL3W Yz9afPpVFvAJh/YLyNQzKhAy7OHwGFSLZpif4GSACIrWsjEJdKozNYcyWL7x44JHg2HZ qtb2OZteqxhQ1Cg2MlYEB+eBRa1NhSq0DF8C1u98dJGcOsl5gwEio2H8fv0JSy79ZPNN g6GCtz3KuDchc0PDR61czRUyyFCNk33HrbymDpyL7Mjd9n1UNMEw4UCiT7JobcPnaLxp D3HqZG2JEGabdHleD9kW9YChC37BguT31jOO5+VlirJ2Cz3mgzba84m22RzQGw5Y6YVX QIcw== 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=DhbQ12AkTJHjkAU2WuxgkUgJv0UUsD5LxnL3Xr/DPRw=; b=VmeEmW6YrSzXnMYwsSNmPOrpYEkvBv2vCAeCKGtaHubaXn8KwYwWTmHh1C8DJD/z6v 7Jie/ObtGR0de+aP6GuQkqHnB3PMY2G5oBdw7KvmmFDT2IxFiBhqkTUTC65N1TkbovIQ xFlMIn9LU5a4Bstmq8XsaDVXpDEyhjOBkeDOU= 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=DhbQ12AkTJHjkAU2WuxgkUgJv0UUsD5LxnL3Xr/DPRw=; b=ANmmPO9cUz41hZSV/q9VJ4DaPpjA4XVEF1hQ540K3IpjBM0fXdH+S048PkGo2x2LM+ EYfDIT4RRuBFYSB5UY18WNaGBCvXK5hVVbXHVfA+I+36kRos9yIG18dLax0RIfFA5QNB 0Yu6aKUKr5Sx5EKHmMH6hM/gKh9FS9WALjg00aOVtyUrI4LFYmtI9izvcEFrv0GGfaJ2 fSfP/+alsbkTO3Ho4JJIWscscUWOgkHMbOd0pu5qWMsfVyonVIXZUq6YDpydaM3DMNeb VL8kLIUmrQJcxmbr8oGxXF2eCFBE8h5Ib7DGU9w/7x3nfZUKQFyFpmiJuqdO5waqd1WX bF1A== X-Gm-Message-State: ALKqPwfux0+0qxlh2WHp/TnmitRxtdyVfNrW2AaGMVBnBEtyOCipohJh 7yUIrEvhN0725YAhaACaiwTNd9G4hgAXf9a31A6KtQ== X-Received: by 2002:a1f:3a15:: with SMTP id h21-v6mr2000667vka.93.1527697954671; Wed, 30 May 2018 09:32:34 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1f:3052:0:0:0:0:0 with HTTP; Wed, 30 May 2018 09:31:55 -0700 (PDT) In-Reply-To: <20180530161311.GT6920@sirena.org.uk> References: <20180523155617.GN4828@sirena.org.uk> <20180530093701.GD6920@sirena.org.uk> <20180530150241.GO6920@sirena.org.uk> <20180530154849.GQ6920@sirena.org.uk> <20180530160744.GS6920@sirena.org.uk> <20180530161311.GT6920@sirena.org.uk> From: Doug Anderson Date: Wed, 30 May 2018 09:31:55 -0700 X-Google-Sender-Auth: oNmEtbONGEItK7lhKj692v4ZNEs 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 9:13 AM, Mark Brown wrote: > On Wed, May 30, 2018 at 09:09:02AM -0700, Doug Anderson wrote: >> On Wed, May 30, 2018 at 9:07 AM, Mark Brown wrote: > >> > It needs something to tell it what the new voltage to set is. > >> The regulator driver has its own cache of what voltage was most >> recently requested by Linux. It can use that, can't it? > > If we're just going to use the most recently set voltage then hopefully > the hardware already knew that, and it might not be the lowest available > voltage if the last consumer to get turned off was holding the voltage > higher. To circle back to the original point: the problem is that (IMHO) the hardware is doing the wrong thing by still counting Linux's vote for a voltage even though Linux also voted that the regulator should be disabled. So basically we're working around the hardware by pretending to vote for a dummy lower voltage whenever Linux wants the regulator disabled. From Linux's point of view everything works as normal--we just tell the hardware a falsehood so it doesn't count our vote for a voltage while the regulator is disabled. -Doug