Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5856763ybp; Tue, 8 Oct 2019 09:17:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqxflckBflc6X7bJzMzobWOq7X9B5R/Ot73C6g5nkLBe2etVFNDEGIzDOp6g4doGaWklARTA X-Received: by 2002:aa7:c759:: with SMTP id c25mr34414657eds.15.1570551434301; Tue, 08 Oct 2019 09:17:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570551434; cv=none; d=google.com; s=arc-20160816; b=ra7rIagkOqArmDxNhaNFEzRK4VUnKa8WCnUc3dOkEEdw9LqZo7Pgn9FoGyAbpd6ZMH iuplq4tIOBQb6Xv3fcxBz3VxJ5K3YASOZAZuqP1O1gSYi8t/odgbfcWpcchrOSSq7wp1 7nzsZN/v2uot26G1AWz0ScMZkJhWL3OtCWMrSRn1//saEITAe5GBaA9MOppHQZ2coUVo vU+h5QHE0NDq4Qo/ZZJDmXgad+izCGXUH6Zc+H7ZWRZEFgpwZfhfA3u1aeq3oFF+V3bV 13M8nFKuieXqUsB/04T8BTUDSdtUZTI7J6zOIbrE7AWCd3p4prFz+Ba/2qvLQHuAoFAp wepg== 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=ULxhBBb+r6Kisy5eDznxTDIfjDQk8A+fbcoaqjcTGdg=; b=CFhi8iKe8FNbbZOOtDWONAEwV2zjoPcv+zW/XRg7TdPSrOLr+AsyRgvqzh6x5Q7ZFy EQ9CZgDYwvC4FGzQmFtCFaUEm/ZDqYr63OZGFx2zj5dNTEIYsEQ3AbHeFiOkTfXEKISb LdJbdd75j4JjemhbZNIK6M73i7bnhX2PBw8WuUflUaEgaQ+nDt/DNTgldzBiZuEO42QP YJyr4xdAWR1FtUOf2oC0P2nksszBO35vVjFEP9M5TJMHGeUkGvQ9OlJA8e311eewiEt5 1dz7geFAO+8p4QY9B1oZeSOnc3FehbBJalAYsAYZZH8BHNu8XWcIP6dAgK61Ka6aVqTu +NKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=HyI5XG9M; 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 sb7si9355548ejb.321.2019.10.08.09.16.50; Tue, 08 Oct 2019 09:17:14 -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=HyI5XG9M; 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 S1728862AbfJHQPm (ORCPT + 99 others); Tue, 8 Oct 2019 12:15:42 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:53952 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725966AbfJHQPm (ORCPT ); Tue, 8 Oct 2019 12:15:42 -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=ULxhBBb+r6Kisy5eDznxTDIfjDQk8A+fbcoaqjcTGdg=; b=HyI5XG9Me/eOoE0kfLkbLWBc7 fKx6/rnbYjoPJIyi/apYwEKUW7aelzFyaNl2QCUf5KV4PCFnhsamY6qUgZ6UiUFGablYB63i/Pdyj uP41rOBivP2c62YWRdYq/e2eSLMz0YksN+MuNqaC6p6qgMnVrW//eMvlmBaA1dk4VY93o=; 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 1iHs9A-0000RH-Eq; Tue, 08 Oct 2019 16:15:36 +0000 Received: by ypsilon.sirena.org.uk (Postfix, from userid 1000) id 735652740D4A; Tue, 8 Oct 2019 17:15:35 +0100 (BST) Date: Tue, 8 Oct 2019 17:15:35 +0100 From: Mark Brown To: Dmitry Osipenko Cc: Bartlomiej Zolnierkiewicz , Marek Szyprowski , linux-kernel@vger.kernel.org, Liam Girdwood , Lucas Stach , Krzysztof Kozlowski , linux-samsung-soc@vger.kernel.org, Viresh Kumar , Kamil Konieczny Subject: Re: [PATCH] regulator: core: Skip balancing of the enabled regulators in regulator_enable() Message-ID: <20191008161535.GN4382@sirena.co.uk> References: <20191008101709.13827-1-m.szyprowski@samsung.com> <20191008115025.GF4382@sirena.co.uk> <0e222fdd-4407-51ea-b75c-a62621cbe622@samsung.com> <20191008120611.GG4382@sirena.co.uk> <9268b455-ec66-97e1-909d-f964ac31c0ef@samsung.com> <20191008124736.GJ4382@sirena.co.uk> <86b9b4b5-cca5-9052-7c87-c5679dfffff4@samsung.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="IoFIGPN1N3g1Ryqz" Content-Disposition: inline In-Reply-To: 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 --IoFIGPN1N3g1Ryqz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Oct 08, 2019 at 06:02:36PM +0300, Dmitry Osipenko wrote: Please fix your mail client to word wrap within paragraphs at something substantially less than 80 columns. Doing this makes your messages much easier to read and reply to. > That OPP patch caused the same problem for the NVIDIA Tegra20 CPUFreq > driver (in-progress) and I resolved it in the coupler's code [0]. > Perhaps the generic coupler could do the same thing by assuming that > min_uV=current_uV until any consumer sets the voltage, i.e. if > regulator_check_consumers(min_uV=0) returns min_uV=0. That sounds like it might just postpone the inevitable - if you set the wrong voltage first it might decide to drop down some voltage that wasn't expected. There's a bit of a bootstrapping issue. I think it would be safer to just say that anything that is within spec won't get changed any time we balance, we'd only change things if needed to bring them back into spec. --IoFIGPN1N3g1Ryqz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl2ctiYACgkQJNaLcl1U h9B9Dwf9H4iGhCAWwJNTDbatBXn8dqoVVD/+nsb3TOY+jEfTdPWisLQO+V2VORVu OYB0ber9TDqFC0U1r0Jegg/DKOBgZPDMlZexQoqP/DVQ23K0mJei3vzSV4QxILN1 d5xALvgn1Z7Y1UiLVwWjy3UIBYqnkiEVTjiynL26zCEd7Edu4WJ/TpWs5ZYgxNKm Tz/q38O9KTrYl+g+kfvJGzR/Neqm50DtBGB7yY5KiAH1bMOINxcwy6to3gPmanDw KbhxnVq/gY0Ihu6jouU0NpBTDp9tVSY+f3PqglkRTBUMHfbFjNT/YQIZ/gY+0b+c KGdYiGW0xgUBMRghlERJPD7U9hNCEg== =FYvm -----END PGP SIGNATURE----- --IoFIGPN1N3g1Ryqz--