Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp996235imm; Fri, 12 Oct 2018 09:59:04 -0700 (PDT) X-Google-Smtp-Source: ACcGV61BMk6mEvxspOQFHp7uXFRTSTOOLuJieCH8/EpK3RRlZDZIclBo88Y2OiOCTelhapvvgDEP X-Received: by 2002:a17:902:bf0a:: with SMTP id bi10-v6mr6605342plb.72.1539363544184; Fri, 12 Oct 2018 09:59:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539363543; cv=none; d=google.com; s=arc-20160816; b=UdrOkNHaXDSBcefJkFT6aVpIpy3CobtlSmySrBJqtA6Q7No7Whwc0VQNrx/NljWewU z5Ng1EhvMDwYnAP1y6QDUnVKgQchDzCDyFQsEVmcLrroxPusP61FCj4TSHZnV/3xKZnE v6IV/czMbGxEiIo2sv+CVSCo2UPP+8g8a8pNHoHVKGs6Mx+nPwFsHlObXigWjcGxs5Bz HU/dH7441B+xrecZsJruUXzcqjaGnw4Js90bXHSuw4JkwIJbsFqTsdthmw6G9yxpKsWT 9zigJwVAnOqxw0MgANFmHyd2cbcrJYU3N1NfTROAt2kZa8cT3SxKgBf0RAHs1kP/PilL BbNg== 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=OHWTPopatYi34Hs7pu+opMboTJ2doM5AHnaVAk2BxhY=; b=b2NsMou6NUiuzVJiJNCVeYoXQMIKUNUV6Ug9895TL5u2gKQu4mbxDiJuxIXfVp+mtA OxJIchXYqOVWTdb4WM7PcHfuKDffM9VcScU+5BVCYs/mhPcy/vYLTjSMXcudyA5NTCvb sIH6y69NJH0oUytDZxNe8T4zmRl+DBqE+5bYmAuJqYrJV9+zLmmTkOdB7GmEp/yjt4dE siwMR/vutSbIyKlYZGOHNShdt1E1hLEy3kbepW73u4jn6UV6DcAQJr5dPHf5/TH7YSLo e3k39e43dBsFnNloZ6jVS6pDo4EG9CvHd2SAIkJMbF0sbRc2qJ/V6tgTRR56n9dbv82X JDwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=qRk5umjF; 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 v191-v6si1592014pgd.157.2018.10.12.09.58.49; Fri, 12 Oct 2018 09:59:03 -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=qRk5umjF; 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 S1727416AbeJMAbo (ORCPT + 99 others); Fri, 12 Oct 2018 20:31:44 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:42894 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726608AbeJMAbo (ORCPT ); Fri, 12 Oct 2018 20:31:44 -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=OHWTPopatYi34Hs7pu+opMboTJ2doM5AHnaVAk2BxhY=; b=qRk5umjFqzPJKAzmWJd+fFmC1 0WAwVhLhoFING2p92rhHcJUMaNuinXqw/hgR7/JJXOeq+EcFeBCEGcf38tuNuy0DylSvqzuOYx1QB FNqqV/ZYRwmx9rw/qyOkUbcN7B8FWSQm4d4KImyEcrL4zH3fK570g9uXPT/QIFxkHMv3Q=; Received: from [91.126.136.150] (helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gB0l6-0006d4-Nd; Fri, 12 Oct 2018 16:57:52 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id D0A76440078; Fri, 12 Oct 2018 18:57:51 +0200 (CEST) Date: Fri, 12 Oct 2018 18:57:51 +0200 From: Mark Brown To: Marcel Ziswiler Cc: "linux@armlinux.org.uk" , "jonathanh@nvidia.com" , "linux-kernel@vger.kernel.org" , "robert.jarzmik@free.fr" , "aaro.koskinen@iki.fi" , "jacopo@jmondi.org" , "linus.walleij@linaro.org" , "m.szyprowski@samsung.com" , "shc_work@mail.ru" , "haojian.zhuang@gmail.com" , "lgirdwood@gmail.com" , "rppt@linux.vnet.ibm.com" , "zonque@gmail.com" , "marc.zyngier@arm.com" , "philipp.zabel@gmail.com" , "linux-tegra@vger.kernel.org" , "jmkrzyszt@gmail.com" , "geert+renesas@glider.be" Subject: Re: [PATCH v7] regulator: fixed: Convert to use GPIO descriptor only Message-ID: <20181012165751.GI2340@sirena.org.uk> References: <20180906122436.25610-1-linus.walleij@linaro.org> <20181011090112eucas1p286d8c1edfc1a2a207d8a11c5ad7eb20e~cglSx9qcr2394623946eucas1p2y@eucas1p2.samsung.com> <1539272073.18645.12.camel@toradex.com> <1539337415.30485.21.camel@toradex.com> <20181012104338.GS30658@n2100.armlinux.org.uk> <1539344591.30485.28.camel@toradex.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ijf6z65S790CMqo8" Content-Disposition: inline In-Reply-To: <1539344591.30485.28.camel@toradex.com> X-Cookie: He's dead, Jim. 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 --ijf6z65S790CMqo8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Oct 12, 2018 at 11:43:13AM +0000, Marcel Ziswiler wrote: > On Fri, 2018-10-12 at 11:43 +0100, Russell King - ARM Linux wrote: > > The existing DT description is reasonable, and introducing ficticious > > regulators in DT to work around the implementation is not reasonable. > I don't think it is that fictitious as it makes it crystal clear that > there is something shared with all its pros and cons. E.g. what happens > if one of them regulators wants to turn off while the other one still > needs power? The regular regulator dependency tree would nicely make > this all clear. We already have code to handle that via refcounting on the GPIO once we identify that it's the same GPIO. If we make a shared virtual parent regulator that'll break other things where we're tracking what the actual physical parent for voltage reasons like adjusting parent voltages up and down to improve efficiency or handling things that are just dumb power switches rather than actual regulators. --ijf6z65S790CMqo8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlvA0o8ACgkQJNaLcl1U h9CyGgf/fTeudX6kIfqmUFuZBMh3F6KuHTcd+G1ns+loJwMPBYjbPLCRYYizA4HK mm2cNaF2xXV+/HAck9SXH/4X6D46hIJtbdecYPiMUfU8Crm6GhsWR2fg0JCDxvWF gTpbE367Yn34YqxIC9zDltWMj4r1+/NkbyGHFkrUtz7P69ImGRf/2l9YIJUsoBUT kEW3YkOHfMERDQeaXcp7NU8mHMtHFlJdQjnfX5yH3ZLkfrf0dRnJl6SJyFyyTwrc eNM9FHJij8CuR82MX+lENcWHU+Rswez0aezN7edWvL1y+Ajmw64qYlRmWBJZAMp/ UYcKfCcYR8+qXxFF7kj97/ZLYKhWYQ== =2TbA -----END PGP SIGNATURE----- --ijf6z65S790CMqo8--