Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1833093imm; Thu, 12 Jul 2018 08:32:16 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc3Tjdozb37Oy3wtRXcyfxPs09FCjq093+xLMamd7FRgZOO0X4zScKIlHty+TyHd9nM5nNM X-Received: by 2002:a62:d34a:: with SMTP id q71-v6mr2912703pfg.17.1531409536638; Thu, 12 Jul 2018 08:32:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531409536; cv=none; d=google.com; s=arc-20160816; b=zQox3cM7umZEgqKUHOVQoCfsfZdR7agSz8L4lLEkyxUN54HclSft82PK8i3/G3Use7 yGqiCVPCJdGfE/SXDemFG403a8NEnIOM/2uFdWJtGX8I+HJNzcgUtUwvUNVwRJdzjaLF SjKtNB6R7Os4/qdwIU8xF90chZ0YX6YGooRslOziZi0+eh8U1ZfZLKkzVWEcFNf7GM1q D7XQLTsSFj56imM+gju7fOzelzvTMeWttYfCme4b8nro3N4bknPb54r8sVk7K3skAhOA BqtkaPHX0KCE9GcJXIe2dvVXnlDzVBtLaAaoO/iFt5CgBa+KhNOXyMxXto5yqhGsFZa8 av/g== 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=Rbfai1TL8gYTh2J/bhDypnUhnLjvHpJJmemItE7Et44=; b=SAvOLVB21FOIWsLpdXJ2dUCANa2EcLRRfez5CznHD6tHYU81M/Kg+nYE+QMJFqreHs cZIUtcFtRVIY7OiQxoyK0wWUK6/UPf4RVelJDIJzbpwfJAkrSphJ4N5R5a/jLXI1+irZ 3XFgUBKzpM4UqwFyf/r7u+cUClzP3+ZIGUvWylC2OrNGZGS+wqhGwkOrYwKC0ttfMi/5 JlVk4nRFKf76X0fPFqXxRjlPcD/EdtSWPUfyqcs7pnIXTDzV70Z33CEQPXfwDwAic4iD vt98vEavY3fjXGKKpdZ/Yw8QSqgK/4+EEbeha0C7Q5vJ3BAGFFsc3xRC9u14aS7EnYeo oAuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=YfZ5Ffz0; 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 x18-v6si20755186pln.147.2018.07.12.08.32.01; Thu, 12 Jul 2018 08:32:16 -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=YfZ5Ffz0; 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 S1732375AbeGLPlb (ORCPT + 99 others); Thu, 12 Jul 2018 11:41:31 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:33980 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727094AbeGLPla (ORCPT ); Thu, 12 Jul 2018 11:41:30 -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=Rbfai1TL8gYTh2J/bhDypnUhnLjvHpJJmemItE7Et44=; b=YfZ5Ffz0Fbo3gMaCcV9rrT7ua o9CyHggVZpGKNp0H8jSOA9pl2ZQWMrzhP3LWNQYUtTMbFsyc7yrDRNAwkUPYH/JQzK0My7appnNqx XVdPQINspukvY6lX4ZK/4njexa2LKkwe9fSoowI1QnxOU+vUn7CFgNLhgUzgnqBgUMyX8=; 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 1fddYw-0003nG-5s; Thu, 12 Jul 2018 15:31:22 +0000 Received: from broonie by debutante with local (Exim 4.91) (envelope-from ) id 1fddYv-0006DP-De; Thu, 12 Jul 2018 16:31:21 +0100 Date: Thu, 12 Jul 2018 16:31:21 +0100 From: Mark Brown To: Marco Felsch Cc: lgirdwood@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, fabio.estevam@nxp.com, Anson.Huang@nxp.com, kernel@pengutronix.de, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] dt-bindings: pfuze100: add optional pfuze-disable-sw binding Message-ID: <20180712153121.GF10369@sirena.org.uk> References: <20180712110240.3006-1-m.felsch@pengutronix.de> <20180712110240.3006-2-m.felsch@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="m1UC1K4AOz1Ywdkx" Content-Disposition: inline In-Reply-To: <20180712110240.3006-2-m.felsch@pengutronix.de> X-Cookie: Kleeneness is next to Godelness. 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 --m1UC1K4AOz1Ywdkx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jul 12, 2018 at 01:02:39PM +0200, Marco Felsch wrote: > +Optional properties: > +- pfuze-disable-sw: Disable all unused switch regulators to save power > + consumption. Attention, some platforms are using the switch regulators as DDR > + ref or supply voltage. Mark these regulators as "regulator-always-on" to skip > + disabling these regulators. If not specified, the driver simualtes the > + disabling. This means the state of the regulator is set to 'disabled' but the > + driver don't disable the regulator. This is a bit of a confused way of specifying things that depends on the Linux implementation, and the property sounds like a double negative too. I'd say something like "pfuze-support-disable" and then explicitly say that this is a workaround for backwards compatibility. I'd also recommend changing the implementation patch to just register a different version of the desc and ops that just doesn't have the disable operation so that the framework knows what's going on. While the current implementation works now there's the possibility that at some point in the future we might start relying on the disable actually having taken effect somehow and will get confused. There's some existing drivers that optimize their resume paths if they know power wasn't removed. --m1UC1K4AOz1Ywdkx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAltHdEgACgkQJNaLcl1U h9CaAAf/UU9njCozGSkAnCo5ZtAkrPB4iKYggp6MKxZsOBJgAXqMRBdJrWlI58As aWTfq7UaLaaqOsumRWDt/NeX3Q39bRimIJaN0KXBWdFwUz/+/4x2NDpGAe9FQFPW S7l4SwVATYbdqQdeJi5QRDgyTJwrjrlTixK4P9LLB8gS49UwIDG/PbKfHIxBrNRG NPrZfavFaEEy8HZ4E0vmnNEJkrpTnzndsEBOi/mWT3CkaGpVUJRvUjDQgU+8bj1p VHv1AD0pX+eJdClr7oMdGJhcbUScZrXRD1cKs7zG8gSAAgvTG3muhoWvB1pLYLrt H7Fmx6YMLkVQ/L9KCPAsErpDhplZgw== =fT4z -----END PGP SIGNATURE----- --m1UC1K4AOz1Ywdkx--