Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5567713ybp; Tue, 8 Oct 2019 05:07:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqyIKPNvDnJ6TzNtf20UemsyMMSCLaOxykED3JQ3n5h6l7t7PREoMAvPHzsZxKF1lJOKCM3g X-Received: by 2002:a17:906:16cd:: with SMTP id t13mr28091969ejd.153.1570536428408; Tue, 08 Oct 2019 05:07:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570536428; cv=none; d=google.com; s=arc-20160816; b=zfy77t9dlc3FjRwA5EOLWHBoipwuE1/x1sVkUiHvGkiUZ3yWeSIO7AUbgpNokq0wb1 3a7kt3+lu8O8pmitejMAa3cD82sfzpg7eDdQhSqI01+sBEJ077ZbKCNj+6WPizT886mM giKZOMNljaumwk7yT0qmVTiNXuAfMOdgkQqajIDIGRvYl41YN+nGsblShB67yTpoCZoL dwL7p+LfdrNpm/gXMf2uyZc8XVamUuBwR//ygEb+D1jQ80XCwtF4KgJztxbn5rIXCqj6 DQGNQPjHrzhRcI8ORWD6aNZ6SktL4dAI4k0CF1/ycgRqA64+13NUuvqawHdkoo1WFUvI 1sQw== 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; bh=iNXCq0tdrGr+v7qLVsnpGqjHYmCeZ78z3PFZJHaeMP8=; b=XLLxttRLKtPAH/G4ozAcyMf1sDIRIBYXJWgPSaXE7MIjkhVonXt/y+mMAI9wR/PBJe u0cDjc2N9JF8RvaKLXfD3ErM4BQ/kpbvJKO1/jpFB48YJsR9OApXxQeDZwcVpO7HwO15 PnErFU6f57wna5ZGm5BCKLS56CMWoDkCuBHtiesHkoglx3nurWfZOSv6/I27gz+d735r GyFfeM5qoWady+L2ELw4hy0bKImq77oJq3QekUXu3WphhYFejyxX1dC6Xft4FH373n9W qmdKlf2tIlX67nsPvBecmH4ETX32WTnwPpnSBf1Q8eOqPL8OV5BzsU+7g8TUdD1PvCh1 Rtyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=WL1P9kiX; 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 z21si8638279ejw.229.2019.10.08.05.06.44; Tue, 08 Oct 2019 05:07:08 -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=WL1P9kiX; 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 S1730690AbfJHMGS (ORCPT + 99 others); Tue, 8 Oct 2019 08:06:18 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:58158 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730249AbfJHMGR (ORCPT ); Tue, 8 Oct 2019 08:06:17 -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=iNXCq0tdrGr+v7qLVsnpGqjHYmCeZ78z3PFZJHaeMP8=; b=WL1P9kiXgzGcYtmdIzPPUSwi2 e078UMBv6u0H4uP1gcANf0zyzq0lvQhR51bV3+nh60NbKPhmoAecyshaBuTQX3uYm+BE+q8IsHMQn 7D4Eb/yl0AzxicYvZRRBfuLR73k7qSPLzHG5B5F8ryNieZ0cskUt0siySP076tEecLF2I=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=ypsilon.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iHoFo-0008EX-8U; Tue, 08 Oct 2019 12:06:12 +0000 Received: by ypsilon.sirena.org.uk (Postfix, from userid 1000) id 6F8752742998; Tue, 8 Oct 2019 13:06:11 +0100 (BST) Date: Tue, 8 Oct 2019 13:06:11 +0100 From: Mark Brown To: Marek Szyprowski Cc: linux-kernel@vger.kernel.org, Dmitry Osipenko , Liam Girdwood , Lucas Stach , Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski , linux-samsung-soc@vger.kernel.org Subject: Re: [PATCH] regulator: core: Skip balancing of the enabled regulators in regulator_enable() Message-ID: <20191008120611.GG4382@sirena.co.uk> References: <20191008101709.13827-1-m.szyprowski@samsung.com> <20191008115025.GF4382@sirena.co.uk> <0e222fdd-4407-51ea-b75c-a62621cbe622@samsung.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+1TulI7fc0PCHNy3" Content-Disposition: inline In-Reply-To: <0e222fdd-4407-51ea-b75c-a62621cbe622@samsung.com> X-Cookie: Do not disturb. User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --+1TulI7fc0PCHNy3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 08, 2019 at 02:01:15PM +0200, Marek Szyprowski wrote: > On 08.10.2019 13:50, Mark Brown wrote: > > This then means that for users that might legitimately enable and > > disable regulators that need to be constrained are forced to change the > > voltage when they enable the regualtors in order to have their > > constraints take effect which seems bad. I'd rather change the the > > cpufreq consumers to either not do the enable (since there really should > > be an always-on constraint this should be redundant, we might need to > > fix the core to take account of their settings though I think we lost > > that) or to set the voltage to whatever they need prior to doing their > > first enable, that seems more robust. > Well, I'm open for other ways of fixing this issue. Calling enable on=20 > always-on regulator imho should not change its rate... Yes, although there is the whole "don't touch things until a consumer tells us to" thing going on. I had expected that this was kicking in because we weren't paying attention to the constraints of disabled regulators but I can't see the code implementing that any more so I guess we removed it at some point (it was always debatable). --+1TulI7fc0PCHNy3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl2ce7IACgkQJNaLcl1U h9AGmwf/UbimQ9sq/zEYWdR5N0U5nYyw0n1illJslo92MzhrHjeXkA+J75dNT9wo E1wtoPEndtrRtb0F+650lzfqvceJauFIaDwb2WvG3vxutwoSdFCJ9qjoPoXLFZOx T0gTrPtDX9HHTgMoFackql9B0xwjwHg+cEV6bcAfw3B4F6LnwYIZB27i4Rbf+DXt oxB70sgrULzP0QJAtJLMN3QZtNOg94vNdA8xH83V/FeXdtZiE1VLlJVSQ0hjAjc2 GJ+zjjSFfC5qRLw+DpKpF6CbBO9NwkcBEhFt5CVNiQlQCwL/tuXHBBGUAXvlk/GN zDivlP9XJXhyJRNSbxzDX7C4rEqn3w== =Qc9y -----END PGP SIGNATURE----- --+1TulI7fc0PCHNy3--