Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2650726imm; Thu, 16 Aug 2018 13:09:34 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzNC0u4XBzdcLdSSl3FvtKa6KTgF4G/LzlbdrkVrIPQyAq4YogId2FHww96l/vEIlnzEQOh X-Received: by 2002:a17:902:8a92:: with SMTP id p18-v6mr30506633plo.148.1534450173998; Thu, 16 Aug 2018 13:09:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534450173; cv=none; d=google.com; s=arc-20160816; b=HdNP4nIMzo/YOO2h3zM93JX1YjSmtIzRZ4e7+vz/bB6ydsVu/BwHq2jBclHcaLd65N S+W4FlT/Rfq+Z9pv/k0KSXlzyrt+yx7zK8nQawZCEWBpcyOXFHfFRIavEVqtZ8wIe50J NVxDobOS/lctHN+oL9rDSKtnmJ0k5sxdpy+ibFwE0ZnL0q04mz4o9T07T5iXEkOiehTv atIrT6FBWCRkkhNkNgVRAnQsSvRgl4cCq5QCDPn5eLn6T/h97x1h4TpoK40vd7lvrrMw AMWvHvQmzvc2ld+7z6SF2jAtV//kcIIn6YJ24GAH4bH5h/IQyyHIL5m3g8BrLOJnb9DA sUUg== 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 :arc-authentication-results; bh=9UeDdLsVym8qM3xwEKkEFfsoKbWWPNPpjRSpt3oFrRw=; b=Vqxunjh9r1YGMBoI8uW9nZrlu0AlNvSkbaXW44kXc+qmF4ZtuXqn72QRnopH5kNInI kT79+kDEHpPxrjKVMF2yt/dr5lJYVzhXDCInt8FMpu3Zk72jJSIWBqpip0dNG8kZImV2 lYq9lG8ICYTuq6W0wNE+Ls7OXhzrVPekrEdPTfpO0cjKOs1P7/11YeXukOyOxB0aniUe asR2W9vDLpS4kSXtRQtz9aafmjp6oVmYfB6D0evtgupg5X1muqiCSrtopIBLOB3i891t 1weFc1p3ijlHvpEE2JqceN9YODBNefHP5TuJD/5fIogC1iK0/o9VpiAZJHd8N+LCiXAQ HsoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=N0yuI299; 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=pass (p=REJECT sp=REJECT 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 e39-v6si208087plg.386.2018.08.16.13.09.19; Thu, 16 Aug 2018 13:09:33 -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=pass header.i=@chromium.org header.s=google header.b=N0yuI299; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726292AbeHPXIU (ORCPT + 99 others); Thu, 16 Aug 2018 19:08:20 -0400 Received: from mail-ua1-f65.google.com ([209.85.222.65]:42608 "EHLO mail-ua1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725887AbeHPXIT (ORCPT ); Thu, 16 Aug 2018 19:08:19 -0400 Received: by mail-ua1-f65.google.com with SMTP id w7-v6so4417312uan.9 for ; Thu, 16 Aug 2018 13:07:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=9UeDdLsVym8qM3xwEKkEFfsoKbWWPNPpjRSpt3oFrRw=; b=N0yuI299h9TDUAwf/STuv7GnT03A8+8zfzK3TmpQymjW4vLo+pjQ7xY3beHq0zjYTj 95PreNUiAxGeApdR7Wmbr7cos9GIuW16Pzmp6OgpJFRACQhwjJSxifFdXLbKKVzLvwx2 lLWArtvUITMdctxsMFXXey+DeLa2gnjBMQ9SQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=9UeDdLsVym8qM3xwEKkEFfsoKbWWPNPpjRSpt3oFrRw=; b=TVwpLHA6pjruZOAmmt0wvb2byQW6GEEJaybLxVJ/dTKjDVPC9b5nZ4O22KdBJtLu36 NHJB/nJDOrKjoWUPeXmKPdRomQlFqNC++0jLGDs08v+AWi1WBF/p/29sG2EhYw7M5wji BMfzMH9qIJXqYMQkwEdiHfh/dKUh3LFcs6tzcTSovyx+UQnqWQ/XT5+lxhh0btlRiJVn IbwaL3r8vkWbWVqds6HC8jfl22rUn8VOe4VY+JrzkgLtViqUCC5S9l7CN21eGoTlgICv EbTukYkzwb5mEricsgJ+62rX2tLpbKayeO2u12C+LdEtuDCg+RS9gCOmOoYq5jaBACkp zExQ== X-Gm-Message-State: AOUpUlHzOL/U5qrzMh55E5q+9ojywtlRJSiqtjqEdbvmvXmZSmMiRLX0 WRXot7MRxX1gOW0avlQNlJjhvRD20mg= X-Received: by 2002:ab0:1724:: with SMTP id j36-v6mr21173686uaf.0.1534450070829; Thu, 16 Aug 2018 13:07:50 -0700 (PDT) Received: from mail-vk0-f52.google.com (mail-vk0-f52.google.com. [209.85.213.52]) by smtp.gmail.com with ESMTPSA id m143-v6sm62957vke.23.2018.08.16.13.07.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Aug 2018 13:07:49 -0700 (PDT) Received: by mail-vk0-f52.google.com with SMTP id s17-v6so2068877vke.10 for ; Thu, 16 Aug 2018 13:07:49 -0700 (PDT) X-Received: by 2002:a1f:ebc7:: with SMTP id j190-v6mr20769720vkh.114.1534450068985; Thu, 16 Aug 2018 13:07:48 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1f:cd5:0:0:0:0:0 with HTTP; Thu, 16 Aug 2018 13:07:47 -0700 (PDT) In-Reply-To: <20180815111318.GY2414@sirena.org.uk> References: <20180814170617.100087-1-dianders@chromium.org> <20180814170617.100087-2-dianders@chromium.org> <20180815111318.GY2414@sirena.org.uk> From: Doug Anderson Date: Thu, 16 Aug 2018 13:07:47 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/4] regulator: core: If consumers don't call regulator_set_load() assume max To: Mark Brown Cc: David Collins , linux-arm-msm , Bjorn Andersson , Stephen Boyd , Liam Girdwood , LKML 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, Aug 15, 2018 at 4:13 AM, Mark Brown wrote: > On Tue, Aug 14, 2018 at 04:56:42PM -0700, Doug Anderson wrote: > >> IMO about the best we could hope to do would be to map "mode" from >> children to parent. AKA: perhaps you could assume that if a child is >> in a higher power mode that perhaps a parent should be too? > > That's not going to work well - different regulators have wildly > different abilities to deliver current which is the whole reason why > modes are so fuzzy and hard to use in the first place. A high power > load for a low noise regulator designed to feed analogue circuits might > not even make it out of the lowest power LDO mode of a DCDC designed to > supply the main application processors in the system or (more > relevantly) provide the main step down for a bunch of LDOs. OK, fair enough. I'll drop this patch and rebase the later patches in the series without it since I think they're still useful. I'll work on either adding more regulator_set_load() calls to clients or perhaps disabling the "regulator-allow-set-load" for a bunch of rails. David: presumably if we have a rail that we never need to be on-and-in-low-power-mode can just be left in high power mode all the time? There should be no advantage of being in low power mode for a regulator that is off, right? -Doug