Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp946252imm; Fri, 12 Oct 2018 09:11:02 -0700 (PDT) X-Google-Smtp-Source: ACcGV61ZsfvWrsqARMlwIwvnDLlRwCfCzpeFL/1/AwYr9HcOmJhPf/koEghzAQ2j1VkuH0yJQYqH X-Received: by 2002:a62:d713:: with SMTP id b19-v6mr6709284pfh.238.1539360662074; Fri, 12 Oct 2018 09:11:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539360662; cv=none; d=google.com; s=arc-20160816; b=tku7BrtlJFv8xKRMi5W/KEb8gkQJuR96PGAg0JyhPT+oH1G/xq38CkfUnOH93BElKK Ppat/TQenHfdzLKP3HLMqt45QTGpJixXEDx7wVMBIHyy67yXj17sOh/PbX7BoPftqbHI y6Kx8TzwryTqPB7mmgwYM/q18oszvUZbCdBZ5cN92AiBCtjCNNKdaYi/3t7rL5Gq70+K D1si3HEtMVdqqtURo8Jvb0hz04cNzpCGapb0a1FjwKclEgRhd+guodgVKVFU6Dp0oFn0 WdZ8qGHp6/KTpxKluSqqsFjaiBytofs45aSSHV55rdizhAgtJUcSx7CmLE0dwxaHuqSk Suag== 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=hg+zQeevhld+ER9boH3Z5OaJsDE/RzK/izUHG/1oeSM=; b=B+jYSqfCNWPWqecRqUVQsqrr9KGfd8mpsKAdN+LblVdxovWKt0SZ42/UQ6bsJ0B/oE 1U+477DrXhM7t8q/h+8xABobeljyl8rNgvUobg99YCB3Xx5l4qCDw1N7A2d3o0jLyWxX xRjACFUMSh1mEHlse2xCZ3SZvaRy7TobUpnz5xEwPf2WcZC3Jgzh+GA7VM8njcaB2eUk 9FsNjupnrpFXhhief9vG8wvgYTNIQlytBoYnA09Hrmxi+bZ0/koh9GT/KzhPnQkQxMx/ QZJa186d/0JMAqmqAtVw7Wl/G46Yz5VZ89JqcWbprl3B4RMHaq9vaF4+qUh5nMAi+rs6 q+wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=KF7smIwT; 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 z2-v6si1616644pgb.247.2018.10.12.09.10.46; Fri, 12 Oct 2018 09:11:02 -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=KF7smIwT; 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 S1728882AbeJLXna (ORCPT + 99 others); Fri, 12 Oct 2018 19:43:30 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:46970 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728707AbeJLXna (ORCPT ); Fri, 12 Oct 2018 19:43: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=hg+zQeevhld+ER9boH3Z5OaJsDE/RzK/izUHG/1oeSM=; b=KF7smIwTQDZgEdgJYO/7ySS37 cRT/ajfOTQ6WyH4Y355Iwv3PGrY8hp4gUzw8+hsJFQUcuf47gYWng8+rG/ZAdcYA8oggEhurkt4i7 Pp2k2s1hSg8u4kgtxPRX2gZUY/knYHteMX1CsW1VXz9nd23+rvvCDdoEGe9TuOxSSo8FQ=; 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 1gB012-0006ZY-CW; Fri, 12 Oct 2018 16:10:16 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id CB76E440078; Fri, 12 Oct 2018 18:10:15 +0200 (CEST) Date: Fri, 12 Oct 2018 18:10:15 +0200 From: Mark Brown To: Linus Walleij Cc: Liam Girdwood , "linux-kernel@vger.kernel.org" , Marek Szyprowski Subject: Re: [PATCH] gpio/regulator: Allow nonexclusive GPIO access Message-ID: <20181012161015.GB2340@sirena.org.uk> References: <20181011143531.7195-1-linus.walleij@linaro.org> <20181011144330.GF25351@sirena.org.uk> <20181011175406.GH25351@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="MfFXiAuoTsnnDAfZ" Content-Disposition: inline In-Reply-To: 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 --MfFXiAuoTsnnDAfZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Oct 11, 2018 at 08:41:16PM +0200, Linus Walleij wrote: > On Thu, Oct 11, 2018 at 7:54 PM Mark Brown wrote: > > Other regulators that have GPIO control for their enables do their own > > requests (as does the core) so don't they all need to set the flag > > GPIOD_FLAGS_BIT_NONEXCLUSIVE when they request otherwise it'll only work > > in systems where the regulators after the first that request the GPIO > > are fixed regulators? > Yeah ... I guess I assumed that the same enable line is not used > for a fixed regulator and then some other regulator (which is not > fixed). > If this is common practice we need to account for it. Obviously > I have no idea what is common practice :/ > Do we know some way to identify the affected systems or > should we just tag on GPIOD_FLAGS_BIT_NONEXCLUSIVE > on all the stuff we converted to descs to play it safe? > (I can cook a patch.) I think we need to set the flag everywhere, previously we'd essentially been doing it by asking the GPIO framework if we resolved the same regulator as one we already had. --MfFXiAuoTsnnDAfZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlvAx2cACgkQJNaLcl1U h9DvIAf9GAoKZfFM7/tYx9y34exCWfCjeOYL8EM1B0GPQKbvX6oyvnRRac+ZT2Gc eXxg3FizrYEwcTGpZvZkQPsw70R1UwFNEvIxNCvrSWgBuS3MeCvY9vRZBcdeopod VSKsiaDdIkwOFxOv6pLNVDm2BegL8Fy0mV+FCqsbuwihTHG807mIo3XphiBPacU9 T7tQiht4DdRifP9YBZtvglMNEfj+BraoDGaVXMNHpqGKeAo/BOjO+6+QSBxnj2tK OpbhJhSdNmWlFwcymy9jtPHyWRr+1EV848wccgsuBCxxhhM2idCTfHCROzncegxE HUWv63F9js2jiSjAestCXW84nii6fA== =pQSS -----END PGP SIGNATURE----- --MfFXiAuoTsnnDAfZ--