Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp656904imm; Wed, 15 Aug 2018 03:59:15 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzTIiinHtwOinuV/ope1zuFfGnHenlFllwFPyVvzWi8N09UFr+UCQmlYbJePX0gOFMc8uYV X-Received: by 2002:a63:b00f:: with SMTP id h15-v6mr25078391pgf.442.1534330755749; Wed, 15 Aug 2018 03:59:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534330755; cv=none; d=google.com; s=arc-20160816; b=J397mKZGWcemdVbctm26m4EvpbQmyE/Rkd8Op6ypcDmoMSvV/4/K/HmPdMbvcP+2Cb ehygy2vUdyLjy5OSglRXspawAgmqz4llC+oovjG4tbqqGAmlJ1QgoBrqXKfPaT+3yBnd cECQKuQqmz4vcRf31Xr/vOsZttlLgeykuHe9ZyMqd6pdqkWT5awyRnTXdPczGxO95GOB mFo2hD/JoAxtIW9qUhdGFQVolL40XZP8I3XZ6rEjKbCIBFZNnZ/WIsBp5VDDDY705jKl 8C8Mt9VJD9tuH8p3041LhzTda5UIQ4PU0YE0rUWV5Ud5jZHvB9SKTmCmP9+wPo+E+tVm Jutg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=3aocv68c+y5A60g9AD4qIGeTr7mmnuLwxVAiuPNfa0k=; b=KkUWOSGZ1zVmkET7TPn4q3LROpxSyF7hfDBwOHeEkPZ/aTFVoetN4Ox8cnmKb7WkkE zLSAB9Fl7GYIDqzUHGtZ0uNJSrHcs0FjZvQagRBhM37xZ19Uwm0JtilUDTAM50jY4Pb/ Xl+Woe+5WnkhECHCHJ+843Lr0BxUoM47OH648uKYHAQjlbUQMrPv7cL2Xt/iFEp4LSyM MZK5MobR8lZnFjSYUgTJPlYFyTzL+ZgNGOJNsGbay4fWrtB+w28PDnXDCXF1Bx4pF+/n UA8D9iokgL6zO3s4XzaK4QlUXEmA3ne3SwKb9pSc9Tv40CiORlJMTMVHnHRs0/8TkYve GMPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=ZKu+v+BB; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 32-v6si22332950plf.0.2018.08.15.03.59.00; Wed, 15 Aug 2018 03:59:15 -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=@sirena.org.uk header.s=20170815-heliosphere header.b=ZKu+v+BB; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729157AbeHONtO (ORCPT + 99 others); Wed, 15 Aug 2018 09:49:14 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:49030 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727141AbeHONtO (ORCPT ); Wed, 15 Aug 2018 09:49:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=3aocv68c+y5A60g9AD4qIGeTr7mmnuLwxVAiuPNfa0k=; b=ZKu+v+BBuv7UUrAY3qdGR6JFA mnvc5pWWs1uSyNykV8ScMVlWEa7L/3/f/Gl6kbiHYTV1mR+9/xqdO3Ie+sjjNonQ/lfV4RsI+peft 0DkHEKGoh8FOmk68l64bM4eya72TWBSJJWYsKIrmqlUEgKCGaET84z4Ku2HTKRP4weTvM=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fptUY-0001ax-4z; Wed, 15 Aug 2018 10:57:30 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id 53BD0440078; Wed, 15 Aug 2018 11:57:29 +0100 (BST) Date: Wed, 15 Aug 2018 11:57:29 +0100 From: Mark Brown To: Douglas Anderson Cc: linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, collinsd@codeaurora.org, swboyd@chromium.org, Liam Girdwood , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/4] regulator: core: If consumers don't call regulator_set_load() assume max Message-ID: <20180815105728.GW2414@sirena.org.uk> References: <20180814170617.100087-1-dianders@chromium.org> <20180814170617.100087-2-dianders@chromium.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dIV3CY5swYZsO92m" Content-Disposition: inline In-Reply-To: <20180814170617.100087-2-dianders@chromium.org> X-Cookie: Many are called, few volunteer. User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --dIV3CY5swYZsO92m Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Aug 14, 2018 at 10:06:14AM -0700, Douglas Anderson wrote: > Not all regulator consumers call regulator_set_load(). On some > regulators (like on RPMh-regulator) this could be bad since the > regulator framework will treat this as if consumer needs no load. > It's much better to assume that a dumb client needs the maximum > possible load so we get correctness first. If you take this to its logical conclusion we should never have runtime mode setting - there may be passive components in the system which don't appear in DT but do affect the load. It's why we require the machines to explicitlly enable any changes that the framework does, if we don't do this then things aren't safe. You may also have a situation where some of the drivers that are registered are included in a fixed load specified by the machine integration. Dynamic mode setting is just a very hard feature to use usefully, there's a reason why few systems do it. --dIV3CY5swYZsO92m Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlt0BxgACgkQJNaLcl1U h9ASxwf+Nckyt05E1tPXv5gm3yuIus/OGZ5dZhjf6tdS7aoNL+HUG4iEr8TDBgA/ qUMOJioFdR5YjXZwCla3KlN/TZUKOUr8qajwhvwuh+Y3LiNzUKnb/hp8GrsqK3LU FbsXqxzqPJXgcsacYGtVA4A7/67+c+R6ScvNorUfXGzy6BRygyvxHHeGdMnhcjOt ejB71/wH7yoAhtMHSKUYkzfwY95Mh+eS37WAgI69zr+KZ28e8DD+Rv2yphcxfrz2 fHcegYeqlbXbdS7/WEAMQpZ8rmeOJ/Sg4OuA3lR0xkC+oB2NPR2VCYP0JZ7XJKrS x1p6qRhpznCoqbSwKk9UatVvKhHRKQ== =nEZj -----END PGP SIGNATURE----- --dIV3CY5swYZsO92m--