Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2227476imm; Tue, 10 Jul 2018 15:57:27 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe1g/ctZtNBmz/B4hR1dEtt0AtC7dKO21Mb/ZA+l+heS1SlUVVLUNZspbAJT4+yabkhOJRL X-Received: by 2002:a62:6659:: with SMTP id a86-v6mr27373005pfc.31.1531263447438; Tue, 10 Jul 2018 15:57:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531263447; cv=none; d=google.com; s=arc-20160816; b=syLzCnvin5CwGVFb79pKzSmyxGv1j8pM+V7Cr8fmcpSoNdnLj3wowWkpncSAcJNjbK fHjkfnLwXAteBEdo0QqN/TijHbL4y3ghatRdhYcRIIRt/vYoPXo662AOwslQKyfl2ZIn WuaYKeAs/BSG3u8voLXdQFt7EL5d0uU2RezR0hcBj2uc3qEzEL1l5M7Rz8k9nINAaFkq 6D6Hq3xEDNoQoD4dHRJp+UmHFGn0HSCA5nUK3rJ2WmncfABgeHKK9MTpl3DTUOWGArw+ 5H0M5iF8FtUFUy19Uwc+3tcoIN70jxjJTibLHeC2JboQCm8RQq683gaHe00cXd3nsBZy uT7w== 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=ZFRmDSfeqHNRV/cOLec/5MNSDqI0ega8FN+QwrsydaY=; b=CSxeRBmy/omKjtXQTecWpF7x6njwbn0u93LJr3gX33YmyN2CTDfNBXUFr951gRVmck pA/Ywjjto3tfp6L06mG0IaLQ0W+K0hSE+ujcATQ2lGP0jbzd2tl+hjQHJhsbL8+2txtA kMbELmyHdrGC6q1IZc8AhZZLQSvG0gDZh+BbiM3U9Q2gW96M/X1jbUGN5I8P7sHaNTk6 e+6HXdzAGJDQYiKohdZtAd41z+aj5huG349OFbnojIE+z1JKUOr7huQQ6NgyAoLjMCYb wh5IGLDShxTzSBPEs1BEZu9rkvVlGf6yXGAtepc1Eb18Ny1Kpugx0gSZaj/Pi/LTL4ws VcXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=txsmJ7S+; dkim=fail header.i=@chromium.org header.s=google header.b=J0nrLxTI; 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 h29-v6si16947244pgb.53.2018.07.10.15.57.12; Tue, 10 Jul 2018 15:57:27 -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=txsmJ7S+; dkim=fail header.i=@chromium.org header.s=google header.b=J0nrLxTI; 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 S1732407AbeGJW5A (ORCPT + 99 others); Tue, 10 Jul 2018 18:57:00 -0400 Received: from mail-ua0-f194.google.com ([209.85.217.194]:36066 "EHLO mail-ua0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732328AbeGJW47 (ORCPT ); Tue, 10 Jul 2018 18:56:59 -0400 Received: by mail-ua0-f194.google.com with SMTP id y8-v6so15049126uan.3 for ; Tue, 10 Jul 2018 15:55:41 -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=ZFRmDSfeqHNRV/cOLec/5MNSDqI0ega8FN+QwrsydaY=; b=txsmJ7S+vvaRJUcGBkXxElxznmy7bOtZtai9E+qRmxekOW/1GdDkOYJML+3p+gXYve SPxqUMETbpy3HkdXFvpiVqJRfMILUDDnw+EMzBiB+4JCX5eCc3xXp5a0VoXlXoPu/feG ZxHZvn8iTMi24mGulVIEaM/5FQhas9qDB85KW5dGeW9/wbPeqiSqwW+bLntqLYDh1W51 /zgSqN5WYpjtD3Oho6MxnMg8Tc1Z95orFHY7p87mSuOOfkUb7oaVqCbjYoad3ReMiopk TB+mgp+iuQxg6JMuXH8LMlOB9JJRyJcPe7gWLPHxSv5mfxCRhdDJog7NxkQQBFIfThP9 KheA== 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=ZFRmDSfeqHNRV/cOLec/5MNSDqI0ega8FN+QwrsydaY=; b=J0nrLxTIW6d6IR639ss5ueCtBF4wwAn0+n7LYi1XmuoHEJ/WzcmQdUJbYLDVCnHzXi WBgQ+n8nsg3aHTOdzcy19moD5dM0CablRm9/gp3Z5GraDELyHA4vZNNySCIeQOEfH8HO eLzaIndvRSA90MvCFVzR6DgRCd4aXvNBzR5oE= 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=ZFRmDSfeqHNRV/cOLec/5MNSDqI0ega8FN+QwrsydaY=; b=eMWG5RxZQAbYhL3tVz5TLWxB+Kpugn5Ui+GLDkId4dBA4dRWfMDpOzIMy8MpQaP4u0 XbtxLC71Ppetr/UTryukGsEFPr1y44JoqCBz0tZ8XbrKIXVkHzhXRxI++WPzuT/Ixj3v 1I6R10IqmwcWbAUfUh/Jlf/DlOy0WkPrLQ3KcgKL4aZYxO0Tq+bc5eocaL4ZX8mfikbS 7ViENUSmNxwKXbDRC8EO94wBow1ps0AMK52PFG56K3wlXQrh4MS6ltgnP5dUWD06dlqr Nbt4qzjmvwYRJdam2RvPQhEmzKqAM6qL3PA9X9Ul9DK3RPFRzgm/eND+wc0HApZFRfa9 9EBg== X-Gm-Message-State: APt69E0WpGqgpXTWw0U3sweiSpQ5gk3sYbdZcNnXj9X9KCllL3ExfMZM Mc5snP0uCacMAgQexZNETHr2UihT6PkC7yYhHYAt1w== X-Received: by 2002:ab0:1163:: with SMTP id g35-v6mr16684404uac.135.1531263340982; Tue, 10 Jul 2018 15:55:40 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1f:9495:0:0:0:0:0 with HTTP; Tue, 10 Jul 2018 15:55:40 -0700 (PDT) In-Reply-To: <0d334051-2ba5-075d-df8c-affe3e617e8d@codeaurora.org> References: <20180710220202.116404-1-dianders@chromium.org> <20180710220202.116404-3-dianders@chromium.org> <0d334051-2ba5-075d-df8c-affe3e617e8d@codeaurora.org> From: Doug Anderson Date: Tue, 10 Jul 2018 15:55:40 -0700 X-Google-Sender-Auth: E9rkyIyu4TIBkZXh_DjyiuOa4lk Message-ID: Subject: Re: [PATCH 2/3] arm64: dts: qcom: sdm845-mtp: Add RPMh VRM/XOB regulators To: David Collins Cc: Andy Gross , Bjorn Andersson , Stephen Boyd , Tomasz Figa , Manu Gautam , Vivek Gautam , devicetree@vger.kernel.org, linux-arm-msm , LKML , Rob Herring , David Brown , Will Deacon , Mark Rutland , "open list:ARM/QUALCOMM SUPPORT" , Catalin Marinas , Linux ARM 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 Tue, Jul 10, 2018 at 3:32 PM, David Collins wrote: > Hello Doug, > > On 07/10/2018 03:02 PM, Douglas Anderson wrote: > ... >> + vdd-s1-supply = <&vph_pwr>; >> + vdd-s2-supply = <&vph_pwr>; >> + vdd-s3-supply = <&vph_pwr>; >> + vdd-s4-supply = <&vph_pwr>; >> + vdd-s5-supply = <&vph_pwr>; >> + vdd-s6-supply = <&vph_pwr>; >> + vdd-s7-supply = <&vph_pwr>; >> + vdd-s8-supply = <&vph_pwr>; >> + vdd-s9-supply = <&vph_pwr>; >> + vdd-s10-supply = <&vph_pwr>; >> + vdd-s11-supply = <&vph_pwr>; >> + vdd-s12-supply = <&vph_pwr>; >> + vdd-s13-supply = <&vph_pwr>; >> + vdd-l1-l27-supply = <&vreg_s7a_1p025>; >> + vdd-l2-l8-l17-supply = <&vreg_s3a_1p35>; >> + vdd-l3-l11-supply = <&vreg_s7a_1p025>; >> + vdd-l4-l5-supply = <&vreg_s7a_1p025>; >> + vdd-l6-supply = <&vph_pwr>; >> + vdd-l7-l12-l14-l15-supply = <&vreg_s5a_2p04>; >> + vdd-l9-supply = <&vreg_bob>; >> + vdd-l10-l23-l25-supply = <&vreg_bob>; >> + vdd-l13-l19-l21-supply = <&vreg_bob>; >> + vdd-l16-l28-supply = <&vreg_bob>; >> + vdd-l18-l22-supply = <&vreg_bob>; >> + vdd-l20-l24-supply = <&vreg_bob>; >> + vdd-l26-supply = <&vreg_s3a_1p35>; >> + vin-lvs-1-2-supply = <&vreg_s4a_1p8>; > > I would suggest not specifying any of these regulator parent supplies in > device tree. RPMh will be enforcing all regulator parent-child > dependencies. Therefore, handling the dependencies in Linux is redundant. > It will result in additional RPMh requests as well as more time spent in > regulator framework calls. Overall, it will lead to slightly lower > performance. Note that while specifying the parent supplies results in > less efficient runtime behavior, it is not technically wrong so you could > keep them in place if you prefer. Interesting. ...so RPMh will automatically turn on parent regulators when their children are enabled (assuming that the parent regulator is also RPMh controlled)? Personally I'd still prefer to see Linux managing its own state and relying less on RPMh-automatic stuff, but I'd defer to Bjorn / Andy (or others) to override me. -Doug