Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp524375imm; Fri, 13 Jul 2018 01:31:48 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd3u5DQsMVpjtFwdCF4jS+fIos7ZFKQWRoobqaGJ1weNfknK8laKVx5TU4YE5lCiJxC0FK7 X-Received: by 2002:a65:4c02:: with SMTP id u2-v6mr5324554pgq.364.1531470707953; Fri, 13 Jul 2018 01:31:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531470707; cv=none; d=google.com; s=arc-20160816; b=LuCGjXBbWpeIfZuFg9FxZuij1kSvCLWB6pFpXgu8QW9A4LWHSlMKT1126o2DZLvE+o CyzvXsp0JVorGdaIloo7AqBc4mJDXD7fFIL79t+kntJ4mNRasrIA+HXHC38jMV8PQJXj T6tFhqrIdl+jyz51dTGgGD+Wmobuxc058zFykuX5XCfRAjyy+BdoyiNIEjN6MHdDI6cl 9KO1nNVT+WHIt9fBRWVXwtCYHccxhg5xGKUzrnuC9dGn28TxnRu4B03ligz+6dVlU24g 7SabN3qmIF4BoqBymxJHWIOnFnRfpB7LR7G4RrR7Fgigelx4t+nV7OkMxqs2SJEUf5ZA f06Q== 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:arc-authentication-results; bh=AMEBTKtgC8VufMcwpA5YcOxz/58zIhZma/H2s3n1VTA=; b=wsbJSxoKGMor12H7Hdir//KVCFr080njRfJFOccysgFvdphEaM+20UuvBrZiAL0XAK pf2fkQ0YM5khr1F6zVlKvSWcI1Q/4l1qHF8ve9YdtNb2sAGeXNHlQQNgx/KoI/Y2cFbO deyWrsBQp2oFXr/XB2te1yKhlNtr1xeWgaY1Z5roE8h4+zEqHvjCUhuJFD+7x5j+Qvzj Ivbwiz8kSAN+UPCfdo2aO28Us9a3LvmAqHBNMo2YAAk6alqD6eYCctIL9o3XX1A1K4Js bceFzn+Cglju593xmJHg21Pd197iCnCRzAxBDImqSQ70eOHd5wQmJIoc3l128hGZqYQi IxsQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a140-v6si25767188pfd.35.2018.07.13.01.31.32; Fri, 13 Jul 2018 01:31:47 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727132AbeGMIoW (ORCPT + 99 others); Fri, 13 Jul 2018 04:44:22 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:51957 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726202AbeGMIoW (ORCPT ); Fri, 13 Jul 2018 04:44:22 -0400 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fdtTM-0000aG-Tl; Fri, 13 Jul 2018 10:30:40 +0200 Received: from mfe by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1fdtTL-0003LM-SU; Fri, 13 Jul 2018 10:30:39 +0200 Date: Fri, 13 Jul 2018 10:30:39 +0200 From: Marco Felsch To: Mark Brown 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: <20180713083039.4z3ulwtg2ekx5n23@pengutronix.de> References: <20180712110240.3006-1-m.felsch@pengutronix.de> <20180712110240.3006-2-m.felsch@pengutronix.de> <20180712153121.GF10369@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180712153121.GF10369@sirena.org.uk> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 10:01:31 up 203 days, 20:39, 58 users, load average: 0.05, 0.06, 0.02 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mark, On 18-07-12 16:31, Mark Brown wrote: > 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 can't find the double negative. Anyway your binding sounds better. So I will use yours. Should we add a vendor prefix too to be clear? I will also add some more informations to mark it as workaround. > 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. Okay I will change that too. I didn't know that there are drivers with optimized resume paths. Thanks for your feedback. Regards, Marco