Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp997990imm; Wed, 23 May 2018 08:42:37 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoiRH9GyjUSp/OGs8WOUzdHzyfVzAYrzM3qgx1OJdyWSmpjODkrWGhK6LKABTaL0VBx/vaN X-Received: by 2002:a17:902:708a:: with SMTP id z10-v6mr3334852plk.283.1527090157055; Wed, 23 May 2018 08:42:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527090157; cv=none; d=google.com; s=arc-20160816; b=u28c0xLAMSUdgNWsOIubHBdANT2KG2ANUaShZd0khKaZ+Bls3Kzczv2pjeiEySZJwe nITZaU5jEmj60OWy/Gwc+gAyntvOwGQ8hMsOKVjoU+AQDq5vzJI8PMoYsyRnzcIJu+Qs e4e/w9c/3lj5iDL46yJExYkwaE5iE7KuUFlxlG1ANX9VnwTpAUTXyAjp0RF+QkC+vdRk DJGkcv4DiZb1PALEkZ4W9h5RujrJMVYcktptgOWyQX8pR86wuTo3Tq/k9+v0Szi3exmC 0KBBtNWWef/t4O/qfAEzFsdzgXi6TkMiJsuzWs8tIjDeZ2+z3COSG4UV9HlIIut+JFl6 HkPw== 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=thDV2u2AcC9hMvlYFngKbcz6DoHJi+6gRdje68nnU7s=; b=O2XEoBPEr5WTTKqkv2r5FLP2EEUpx7L+EPnfV3UuTI4WVnT1fCW/sP45/m98CM+VFS KmmQpXpxpuvRR9AMrse9cSqO3pJuNj9Cq7Y0g6dfyW/d1N75WQ9Tp3woFTjCGt4RCtKj CDtoz8AWd/4ZXO7mh5KQu4Zmcew1MqbLTBMp0wWsu5xJ//yVP7LDP4jS6yHUMvn6qlXG BOHR3iUbiaudHYremp4jGw3IhoIPUAps3d3oJgHKragSQpbi0hZghUPQ/xhArEGu6kDr YbiJRZeANnDnHLh48bxiYxdngkgi1dxu34gfLFFR6Q7ZkcOapwWZuVoMWgWozdMoiGhr VpBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=RQJtXwkw; 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 x1-v6si17936741pln.437.2018.05.23.08.42.22; Wed, 23 May 2018 08:42:37 -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=RQJtXwkw; 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 S933569AbeEWPlF (ORCPT + 99 others); Wed, 23 May 2018 11:41:05 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:48576 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932578AbeEWPlC (ORCPT ); Wed, 23 May 2018 11:41:02 -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=thDV2u2AcC9hMvlYFngKbcz6DoHJi+6gRdje68nnU7s=; b=RQJtXwkw5K0NOHGY+pjnEJwJB vEVBIwpGjouY72K7vQyqW3cpwt1cn+kvbfK70saCrsv8ZmfqkMx65qNVJzhRgDnkqPJUxphIp546G ebarYXiA1+crmtH8p8/ruaqhJdh+nSMQDVMXqLH48q0a/hDev+weMslPqY6DhvjsZcOv0=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fLVso-0003Ob-I7; Wed, 23 May 2018 15:40:58 +0000 Received: from broonie by debutante with local (Exim 4.91) (envelope-from ) id 1fLVsn-0007Lg-Ig; Wed, 23 May 2018 16:40:57 +0100 Date: Wed, 23 May 2018 16:40:57 +0100 From: Mark Brown To: Doug Anderson Cc: David Collins , Liam Girdwood , Rob Herring , Mark Rutland , linux-arm-msm@vger.kernel.org, Linux ARM , devicetree@vger.kernel.org, LKML , Rajendra Nayak , Stephen Boyd Subject: Re: [PATCH v3 1/2] regulator: dt-bindings: add QCOM RPMh regulator bindings Message-ID: <20180523154057.GL4828@sirena.org.uk> References: <869aad59-1cc5-28ef-1fb5-4ef846696c40@codeaurora.org> <20180523082908.GB4828@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="UK1lfQXsnwKrySH9" Content-Disposition: inline In-Reply-To: X-Cookie: Excellent day to have a rotten day. User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --UK1lfQXsnwKrySH9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 23, 2018 at 08:23:22AM -0700, Doug Anderson wrote: > Hi, >=20 > On Wed, May 23, 2018 at 1:29 AM, Mark Brown wrote: >=20 > > It's arguable either way - you could say that the client gets to specify > > a safe range at all times or you could say that the machine constraints > > should cover all cases where the hardware is idling. Of course RPMh > > is missing anything like the machine constraints (as we can see from all > > the fixing up of undesirable hard coding we have to do) so it's kind of > > pushed towards the first case. > OK, fair enough. If others all agree that it's OK to make requests > about the voltage of a disabled regulator then I won't stand in the > way. I guess it does call into question the whole idea of caching / > not sending the voltage until the first enable because it means > there's no way for the client to use this feature until they've > enabled / disabled the regulator once. If you think of it as invalid > to adjust the voltage of a disabled regulator then the caching > argument is super clean, but once you say that you should normally be It's got to be valid to think about the voltage of a disabled regulator since drivers want to be able make sure that the regulator gets enabled with a sensible config. With most hardware this is really easy since you can just look at the status reported by the hardware but the RPM makes this hard since there's so much write only stuff in there. > able to do it it feels more like a hacky workaround. ...but I suppose > that's what we've got to live with... These RPM systems are always going to have problems of some kind unfortunately unless the interface changes. --UK1lfQXsnwKrySH9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlsFi4gACgkQJNaLcl1U h9AAPwf9HbEl7cITEB2ThBWHPHov7x75fnfLf+B+F1OiRHUSW9PmiFaCEv6L8y3v tYMre9zclDiBbeDBvhwZIb8wtxrV8vNG8EJ5IjaXcrxXI5Y8E8SRyIT2PMARafeq h1xIn73J55Z5WByvp1+0CKM7G88RhZKvCo55bgVOwSuD7C3LOX+zkktIIyu2G7A+ 8zTl8lfMk6Wj2LvMywE0OC3nlMm3jhsso4xLhTVLzHe6Nsi8TGIOl/bVokJUHnnR iVhbbqXVVOKqguyyObsi2hFIuwOrpk/I/54LksQOygcZzbsb6c7/wDeEvQRlTIzX 5Cyk63hdfSnbuWazYEFcpwMWZgsYIA== =nKyD -----END PGP SIGNATURE----- --UK1lfQXsnwKrySH9--