Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1300900ybn; Wed, 25 Sep 2019 15:58:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwh9jgklDiZB4B6Rlliian7o8Kid1V0HpC3BsWakGQtK38Ji5mWPLyiJ2IPerUkTG/LxOJA X-Received: by 2002:a17:906:cec3:: with SMTP id si3mr500225ejb.145.1569452312106; Wed, 25 Sep 2019 15:58:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569452312; cv=none; d=google.com; s=arc-20160816; b=OEuHHxtUpWebce/wJtSyvOo438/2UVGxaAmNoh9jfWK8BpKVj7cOg1TrPkbltEHUZc m7Sbn8gf7E8ZjFftko3Hz/eW9x95/2U/h77yC7YZWXWPfHJ3nu6wlmDYTHSuX5XqcHFr kMK2BiyUHp2LyIoOEwg1c62DaERtpb6NNfDpqJEnvdw8iBQj4NPpVmkhdmKUkFBU4KwH vP6YZcl+K2/7NcU7RByvxAShs6St16Bz07jGa8WSTW6pj+XmhMhuN2NLEHE7IwoUOLep TUj/0YyGn2GPxcAULv5+zuv1OEN3n8UXPNgjeAYA4H0+mZfz/NeIgoVu//kj3ViKRxZV zdyA== 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=HCO9H13hsLGlf0IU4gFCSB/WykjOxYi/O/UOB7GTiPU=; b=hI5lVQ909sjKPIYSxqwY1B0s7JCVK/6H4yUYtDGjTQmJFjFwC8JQeyPZ5Xhqg7OEmv yONU16T2RhcEOIPPrvgvdFukQIlpJdoa7X3hEWNOzXYvR862VWDqSPxotu3GnhRhdUTI d3pDCZo8l3y0InxLXPkznDnA7/Owug1bcEhntV1SAWKCD29LKz7aK3T7TQW60YL1uXk9 kuDc29923V1n08l2rzWr7VKM/PuRWkvHORhJiB+WKiLl5pUUhMRsEjoO/M1YFNl222KL ax9cfvlMLfWq5UILF+v37g/hkPHca06UEuiOpjLILCf5UEUfR4PSkkkWj/9//Uxp0Pls 75rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=qUf6Le+p; 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 s14si320251edc.83.2019.09.25.15.58.08; Wed, 25 Sep 2019 15:58:32 -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=qUf6Le+p; 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 S2440356AbfIWSOi (ORCPT + 99 others); Mon, 23 Sep 2019 14:14:38 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:56794 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437960AbfIWSOi (ORCPT ); Mon, 23 Sep 2019 14:14:38 -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=HCO9H13hsLGlf0IU4gFCSB/WykjOxYi/O/UOB7GTiPU=; b=qUf6Le+pnZyKScoYdTpB1aoFq AyeXuA1UmnNF+LErbecWhBfua3o2ufC5IHbKBRgWrqZzeY3npKa2bANyDYCf2DETARTLeZGOEBUwu hiA6aH6pI1Td2GVPv1GTasB9Nvy46v1Wg5nUH4MxtSnfXLOYAVTdzrumkjwJYlxL4qxpU=; Received: from [12.157.10.114] (helo=fitzroy.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 1iCSr3-0004To-Ht; Mon, 23 Sep 2019 18:14:33 +0000 Received: by fitzroy.sirena.org.uk (Postfix, from userid 1000) id BB79CD01FE8; Mon, 23 Sep 2019 19:14:31 +0100 (BST) Date: Mon, 23 Sep 2019 11:14:31 -0700 From: Mark Brown To: Doug Anderson Cc: Marco Felsch , zhang.chunyan@linaro.org, Liam Girdwood , ckeepax@opensource.cirrus.com, LKML , Sascha Hauer Subject: Re: [PATCH 1/3] regulator: core: fix boot-on regulators use_count usage Message-ID: <20190923181431.GU2036@sirena.org.uk> References: <20190917154021.14693-1-m.felsch@pengutronix.de> <20190917154021.14693-2-m.felsch@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="J19t2I20ndwispKK" Content-Disposition: inline In-Reply-To: X-Cookie: Be careful! UGLY strikes 9 out of 10! 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 --J19t2I20ndwispKK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Sep 23, 2019 at 11:02:26AM -0700, Doug Anderson wrote: > I will freely admit my ignorance here, but I've always been slightly > confused by the "always-on" vs. "boot-on" distinction... > The bindings say: > regulator-always-on: > description: boolean, regulator should never be disabled > regulator-boot-on: > description: bootloader/firmware enabled regulator > For 'boot-on' that's a bit ambiguous about what it means. The > constraints have a bit more details: Boot on means that it's powered on when the kernel starts, it's for regulators that we can't read back the status of. > ...but then that begs the question of why we have two attributes? > Maybe this has already been discussed before and someone can point me > to a previous discussion? We should probably make it more clear in > the bindings and/or the constraints. boot-on just refers to the status at boot, we can still turn those regulators off later on if we want to. --J19t2I20ndwispKK Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl2JC4YACgkQJNaLcl1U h9Cw9Qf/ZIeAGiJh/nkJJEspZ/933nlFfSOVQp075WtLBEPxwZcMwK+l3ub1FKtA Fgi6KR3Ig/Sh5MSIJKJsqbhtv7bhOuYwPtsFrDoBdfMU6hCfHLrZBb0WxFJMzGfh Ta9yCbXOiviw0GaVDSmK7io7Uwle+lxkr3pIU37BfVlyL8HmZ6OlbNJW95SvYFwo gIhUdadCTDHOagRMqlA/iDYl1pBX0XexRGT6qcRobrzhYmIJnvRHNnjm1W3V0k6M 6OJvmtnTUE/s2DnQaNM7MOnuvhHfI39qEAVB9/UefwBLVigLgAvqH4QKj7fk960W hvwhs8dPtTgi8o1O9WFNRXQh4uYL+w== =aqxZ -----END PGP SIGNATURE----- --J19t2I20ndwispKK--