Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp784196imm; Thu, 4 Oct 2018 03:20:56 -0700 (PDT) X-Google-Smtp-Source: ACcGV63p37guXVkoG4xIcm+b2zf14gB8v3E6kZA1aIKmH/u1Th3KlPZvpif2kexy/cvdy6f70Wpc X-Received: by 2002:a63:d917:: with SMTP id r23-v6mr5239588pgg.0.1538648456228; Thu, 04 Oct 2018 03:20:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538648456; cv=none; d=google.com; s=arc-20160816; b=dF0fQ6iJ/PJzetbxycKvMKWrLmDXrBQnzdhdmvt/XjYeeLgjy6VTTSYzTFz1XjtL+L houA2RVd9t1HLUfkSYpf8rx8jRHSwiJErK8cbptrL6mYTMNpvpZQ3gfCxpEJhQA9iza7 +fpWZiBVgQfzSyaHwl4Y7uoILS8Ci/A45n+M/v/3tMxoIKlMZwSUyh6ygFDPOxlguiO6 bnlc8e593RrAHKouisFwSAPuJTh6Ks5G6UeZr7O1RRC1lY/Ke4yElijXyDkM09/ZAOKz 4ZLmabRa3ESNGIt7XUDQU7CkEQ3dJ+h45YsU4d2zKslHgckXfM7PxixQyCwtxPlTrb5U Q41A== 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=igoCYCRQTg0FafoeboqLmgsaNIPF0NwtxFPgJJqm6lw=; b=nV4IudM1J0SVIgaq/9jmW4lJ1DkQfp6M1jXLJMEghTQbvnYGUl5M9VWraU85YjbWBG fFpYw/t38GiTf4pS0MxruG3+gM6tMj+i1+wmYKyvgCoObONiYcw2YSSkIlk7V4lrDD6w DkcgbUwi1nQ/xKKOfD3tiI3PYcKqqNOBe3tXvgCwqlFJ/kcDN2iNrWopK5qfO/cURFkC T//ghINSDMVQfXe9sHlTIaZDJ1cfADAEeXfVeIUVqfo+FpjG6KYZSoSH75gmbyOSDjAS QmyMKJDF3JElyht4JBWYJ0I0NrEricwaDbqD3PzryeyiLqmrdf3ze3CEXM0LpUch8iw8 4CUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=FfzQM3Yl; 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 u1-v6si4521524pgq.1.2018.10.04.03.20.40; Thu, 04 Oct 2018 03:20:56 -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=FfzQM3Yl; 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 S1727336AbeJDRMw (ORCPT + 99 others); Thu, 4 Oct 2018 13:12:52 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:58868 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727183AbeJDRMw (ORCPT ); Thu, 4 Oct 2018 13:12:52 -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=igoCYCRQTg0FafoeboqLmgsaNIPF0NwtxFPgJJqm6lw=; b=FfzQM3YlryuAhvYeop12Pz7sY WKAY0bCkuHOh8GEtCDUCHHD6v7MyGboRnkcAvh2Vh6OICKYlHNa39DsoOfwn0Z0xJUygEyGbeB9Ek rdK+pZxEEnhtaKhHznFHe49L9rOdQhJgr48UJ0EYGASv7Xmd7dko31+bS/qFOi4EP4bQY=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1g80jt-0008Gx-E2; Thu, 04 Oct 2018 10:20:13 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id E675D1122286; Thu, 4 Oct 2018 11:20:12 +0100 (BST) Date: Thu, 4 Oct 2018 11:20:12 +0100 From: Mark Brown To: Leonard Crestez Cc: "linus.walleij@linaro.org" , dl-linux-imx , "linux-kernel@vger.kernel.org" , Andy Duan , "festevam@gmail.com" , "lgirdwood@gmail.com" , "shawnguo@kernel.org" , "anders.roxell@linaro.org" , "john.stultz@linaro.org" Subject: Re: [PATCH] regulator: fixed: Default enable high on DT regulators Message-ID: <20181004102012.GB6412@sirena.org.uk> References: <20181001204346.4655-1-linus.walleij@linaro.org> <28e88d54f6503cf1be577eb1872cdf2c50d7dfa3.camel@nxp.com> <20181003121002.GA7132@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="CUfgB8w4ZwR/yMy5" Content-Disposition: inline In-Reply-To: X-Cookie: Safety Third. 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 --CUfgB8w4ZwR/yMy5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Oct 03, 2018 at 06:08:09PM +0000, Leonard Crestez wrote: > On Wed, 2018-10-03 at 13:10 +0100, Mark Brown wrote: > > No, that's definitely not desired. We don't want to change the state of > > the regulator at all if we can avoid it unless the user explicitly asked > > for it. > That also makes sense, for a top level perspective. But > reg_fixed_voltage_probe contains the following snippet: ... > In theory it might be possible to request the GPIO while asking to keep > the value from the bootloader? Maybe I'm confused but I don't see an > easy way to do this through the GPIO api; functions for requesting in > output mode all seem to also ask for the initial value. There isn't one. You're not supposed to read back an output GPIO at all unfortunately, it makes this sort of handover stuff a problem. > GPIOD_ASIS looks close but it doesn't even adjust the direction. That's new - it's probably closest to what we want but we need to be able to read back the state as well and will want to make it output if it isn't already. --CUfgB8w4ZwR/yMy5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlu16VwACgkQJNaLcl1U h9AXtgf8CLj4MoHaShDENVRVrMhiytEHU9qh+BpvA7Na96mpdqGkNwtCWlSKwLpm nqf51ObRrpGYJco0RafiocXvtwS3aVHoXPOf3S/3aRRegxWh6ileRp7vqTifFrcc 214fwVuok5HEgz3RGduj3hsG2WrhmxELYNufn5FOQNfxWRZf0ElLkq/rPwhmpXGP yaUl72jQV+K17vzOBuLXm+jT+wmQA/H0XUT31gEtfSRhBskaJLn73TPBxusMXNup QBJo/REEzovmUiE43nVPXvo9GOtPCpM+cpH6P90d8hD4+lKr+iEsu5EF97v0Di7X q9eOWS+t5novPSdqVN6Y87iItHFIcQ== =F6cU -----END PGP SIGNATURE----- --CUfgB8w4ZwR/yMy5--