Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4656003imm; Wed, 30 May 2018 09:26:22 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJNZ3M9kGTCrszMOddu8ZKq8JdXqIFR8/GT3Q0PqGbqrzCLNS1G12wRozRB+x+ZO6F2uUqo X-Received: by 2002:a17:902:9883:: with SMTP id s3-v6mr3516530plp.179.1527697582495; Wed, 30 May 2018 09:26:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527697582; cv=none; d=google.com; s=arc-20160816; b=JPx65fyAa2nFvVbrmHbNDfFNl2IW4wj7mxEIAN4qhPXDyZLvR8exKJWbnYcBAYam+z D/Go72/rZ+rUiNqzP4na4VaD/zL0tLjXO8hJzBoiYy6DWurFEW8yzbwFwn5m56W8iHtb wlYzkWKstEbEgzW8cnCzu40ed5Hm3GMQfr5p4XfYzJx6o2heh9xPH7sPmMaIVrPG1PbA Jlr7N3KRxBQ2xPJhIgo0PvtRHm/JI2MHpVSp1PZBU/RyjDUXIEIN6yNclrI5gBLZJbqN 6/qsEqJdU2fzDovi5L+1TvgeW7co/smIqtc8ZMUftYBhYGT+kfNjACSr1Vg9QoDLLHoz 4jjA== 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=q6IfvAef5OsbUVGI91++y3BZdZ+s92R14DIZ0ndb9Yg=; b=UFNu5E+5gpJvimaZHs78pWZaK1WuhQ+gXQ7BwWTZUHLnLThGS/YW4rhT7YQHWGpk55 oG7gIVhq6tFzkO5qvEGvcyKgpMu1X4/JjJRTbDYbxrTu5Qa5CWn4hX/h0xzzzlV8WPHt qOn8LCnTcmT8EvA6hddAidnjAHDSQIbC0b+7YR9EwJLoU3lg/pk37Ct21SKRRc6/BZEy MhGfW//yl05bo2VCcc3jacKZCFjWV0rCqAkFEprKl2tyDaMA6joLOXVInr9fVOUDHk2e RAAT54aETpoSyE0X+Uhbc9Mu4RtDETMVyUUOolpcw5YhfOop0qqe023r/tR3Hy85YN05 /qAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=WuIGbk2T; dkim=fail header.i=@chromium.org header.s=google header.b=m7C/3I5H; 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 n3-v6si14162576pga.622.2018.05.30.09.26.08; Wed, 30 May 2018 09:26:22 -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=WuIGbk2T; dkim=fail header.i=@chromium.org header.s=google header.b=m7C/3I5H; 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 S1753560AbeE3QYp (ORCPT + 99 others); Wed, 30 May 2018 12:24:45 -0400 Received: from mail-vk0-f65.google.com ([209.85.213.65]:41476 "EHLO mail-vk0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751688AbeE3QYk (ORCPT ); Wed, 30 May 2018 12:24:40 -0400 Received: by mail-vk0-f65.google.com with SMTP id 128-v6so6144141vkf.8 for ; Wed, 30 May 2018 09:24:40 -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=q6IfvAef5OsbUVGI91++y3BZdZ+s92R14DIZ0ndb9Yg=; b=WuIGbk2T62mJBAIrTY3LYQeulmnOS2uv+ww4fBvpa6NaFeAZ2qpuE3cTbZgzPXFuv7 8kvJ9Ng4tw7aiz6aCB8URxMdtLP4h6yg2EZ451/yxJVYO/w3auq9foeLnuXH8d1fujRJ MOqGniHZoWL1lASBw5c+U2Q7s3T/VpX4SRvMyjyiEM9cHYFfVx0tj/1oSESy8jHAE9ok Hjj/maykWAEpkzK2GQzMYj7qXXbJrUatqkMb033e6RN2eLrU5bbUkg65MR5tmk/E8Nyu Y7WIkWwVf6dNPPpk+SlitPun2ln6PCXk50cLF0eEv6HdiwvF7cyLYUwgqAgjVWMW0RVF M3Bw== 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=q6IfvAef5OsbUVGI91++y3BZdZ+s92R14DIZ0ndb9Yg=; b=m7C/3I5H6f5uca9wF2hnZerfxdgCm1QpncWs2Nxg7lvcfVIDyeP1nXGkzJ8ZdurOM4 x6U0ft5pfsFE9NaoZjUMzrJCHKgayNcnFFK9pJm7NRt9dn26QIxR5toJWLU+/tn0dkZ9 f3dhbxBISPJDDVmsJJGBWTfnlkIo/WKoS/jA8= 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=q6IfvAef5OsbUVGI91++y3BZdZ+s92R14DIZ0ndb9Yg=; b=nuG81tHD0V5ot9RwxVDNR1vxUTdwPlvsz/tzZoxDwLpuLsBDUX/e5YyyhIkJZ09vEo CirZndwA/AX6vE0pPrXhnDo9q4Lva893dcEgWbBB15MqAK4sEMp96UFnAs5TEeOR67Ri ZYYqthylOhqm2DGIsWR71hKtyhB8Secr5YDMxH/VSskizfjQBJUbONx6Wn7F5uYb3uSS UIOqsao/V5PGOVd3qXoe7BAi2kjWZbrCLNLBUsiYiN9sa/4joGa0MI+0PhGezCbvGDSU mSFmUXmhL8gNwBy+ipUtmv7NKZ0r6dRbf9eBsRHrCKHy8T7Cd30QPmiv7S9xIYo1bP6O No3A== X-Gm-Message-State: ALKqPwfcPPWG5ZITch/yAxFQSNHBawmh4jA5WHlU9gj5fqHsLUdt+kBM WUtDODfar9B0ulhh0YcidWK8LM3vvCBk4UHZMhFx+Q== X-Received: by 2002:a1f:d304:: with SMTP id k4-v6mr1944491vkg.101.1527697478917; Wed, 30 May 2018 09:24:38 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1f:3052:0:0:0:0:0 with HTTP; Wed, 30 May 2018 09:24:37 -0700 (PDT) In-Reply-To: <20180530162007.GU6920@sirena.org.uk> References: <6d03576cf90f06afb1194301cb41fc31704def1d.1527040878.git.collinsd@codeaurora.org> <20180530103720.GH6920@sirena.org.uk> <20180530155044.GR6920@sirena.org.uk> <20180530162007.GU6920@sirena.org.uk> From: Doug Anderson Date: Wed, 30 May 2018 09:24:37 -0700 X-Google-Sender-Auth: nzEuSv6KZUfyLukH5OiGCVnT4NI Message-ID: Subject: Re: [PATCH v4 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:20 AM, Mark Brown wrote: > On Wed, May 30, 2018 at 09:12:25AM -0700, Doug Anderson wrote: >> On Wed, May 30, 2018 at 8:50 AM, Mark Brown wrote: > >> > No, I'm saying that I don't know why that property exists at all. This >> > sounds like it's intended to be the amount of current the regulator can >> > deliver in each mode which is normally a design property of the silicon. > >> Ah, got it. So the whole point here is to be able to implement either >> the function "set_load" or the function "get_optimum_mode". We need >> some sort of table to convert from current to mode. That's what this >> table does. > > We do need that table, my expectation would be that this table would be > in the driver as it's not something I'd expect to vary between different > systems but rather be a property of the silicon design. No sense in > every single board having to copy it in. Ah, got it! I'd be OK with it being hardcoded in the driver. At one point I think David was making the argument that some boards have different noise needs for the rails and thus you might want to change modes at different currents. I don't know if this is realistic but I believe it was part of his original argument for why this needed to be specified. If we can hardcode this in the driver I'm fine with it... That would actually solve many of my objections too... -Doug