Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5859632imu; Mon, 26 Nov 2018 06:11:39 -0800 (PST) X-Google-Smtp-Source: AFSGD/VvLbcjesttBtSz90/uPztG9bah4haeCW+ZHMI3nWsDOqd71KuclS5uIIsD52O+NJSP4YIC X-Received: by 2002:a17:902:aa8c:: with SMTP id d12mr5896635plr.25.1543241498993; Mon, 26 Nov 2018 06:11:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543241498; cv=none; d=google.com; s=arc-20160816; b=j813nIFOQO6YFM7j9htsCCux46jTJtJhWQyQZlKkgfJaERosxF9SERhOOpPk3JbU8O XEz/p46sH478CLdSJIjFnKrpagOwFvaR7+nvyKATPgKfQfDEIxY2kko4E4n5DHuvGJCj LIwdNJOSOaQn3NuGDBBZEagOb5Zvf/6/7iewxZbnCFxGKoGmLIt7x1tbkTRtYbRbqelV MEYToTiU1mTJLhyOkfbnqg2/5dQkHkfkTpOmxGUfc255StVCdVaL1B1CGeEm3VK86+XN bxefqyxY1GZ8FOanCXbOZXeALBOSlqHFoYZOutPQPg7GbIK1bktj8RFP0s/IJQMSCvxm xTEQ== 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=FgtY55CCMeQHnOaKqoq3GQOLNAr29qdycxemvHzwQC8=; b=PJ3I2jBOj9LLeJDbuMJk/pxnxfKq4+go4ZsT8p98cBJUcl5gjiJ+x2jdlBMdYsaEzZ 33OdYowtu6I0h1qVK1O7E6KPLU3G73oGww4RnfoCwjOCy72W8mC0dwSbnDWHYmstKgu5 YaZXBWhokO/hD/S1r8veq/rZ/c2osVWa+43HqWO4WcH0uYiNJfl0olF4+1YOT2/+v1tG 2C1m2J/djc15uIsDHkfe70n6H1PxllSmwm31BznMjdLYarpbFXlSsu86k47uDmyqsjDl q6ggCrs5MQpf7nHdW7mRj11GbUs8wl5Hn7Bgmj0w3qT1+p7LnRHkIP/ZhHi2uLJ8RbWj +nFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=DOSTd590; 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 o7si469163pgl.42.2018.11.26.06.11.13; Mon, 26 Nov 2018 06:11:38 -0800 (PST) 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=DOSTd590; 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 S1726511AbeK0BDs (ORCPT + 99 others); Mon, 26 Nov 2018 20:03:48 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:37236 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726346AbeK0BDr (ORCPT ); Mon, 26 Nov 2018 20:03:47 -0500 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=FgtY55CCMeQHnOaKqoq3GQOLNAr29qdycxemvHzwQC8=; b=DOSTd590UshdCIqonSuPNOYoq +FqM1PfC6kqVcuoGZvjVNJ1z/n6rZvJHx4qbbKF9pwM5MyHetQh2WNW/IbAkyctWAVLiCZU04vInl 0DsTjXiQHaIEyFDIbmDwBspO/r9pkLS4hiGapPODIWWvnGhU4ssswT5Y3U/9tylpaMT78=; 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 1gRHZn-00043j-Lo; Mon, 26 Nov 2018 14:09:27 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id 45529112519F; Mon, 26 Nov 2018 14:09:27 +0000 (GMT) Date: Mon, 26 Nov 2018 14:09:27 +0000 From: Mark Brown To: Charles Keepax Cc: Linus Walleij , Liam Girdwood , Marek Szyprowski , "linux-kernel@vger.kernel.org" , patches@opensource.cirrus.com Subject: Re: [PATCH 3/3] gpio: Add reference counting for non-exclusive GPIOs Message-ID: <20181126140927.GD9715@sirena.org.uk> References: <20181122173015.23905-1-ckeepax@opensource.cirrus.com> <20181122173015.23905-3-ckeepax@opensource.cirrus.com> <20181123105729.GM16508@imbe.wolfsonmicro.main> <20181123132522.GE2089@sirena.org.uk> <20181126130001.GN16508@imbe.wolfsonmicro.main> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="zbGR4y+acU1DwHSi" Content-Disposition: inline In-Reply-To: <20181126130001.GN16508@imbe.wolfsonmicro.main> X-Cookie: Gloffing is a state of mine. 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 --zbGR4y+acU1DwHSi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Nov 26, 2018 at 01:00:01PM +0000, Charles Keepax wrote: > On Fri, Nov 23, 2018 at 01:25:22PM +0000, Mark Brown wrote: > > help the multiple users find each other somehow. I think what we want > > to do here is either push the gpiod requests into the regulator core or > > change things so that once the regulator is registered with the > > regulator core the regulator core owns and is responsible for freeing > > the regulator. > On the co-ordinating do we expect that the behaviour will > be that the GPIO should in the "enabled" state whenever any > regulator is requesting it? IE. the GPIO state is an OR of > the regulator states. Or are we expecting to handle more > complex interaction? For the regulators that's what we do, yes - it's like they're all sharing a single regulator. That probably won't be true in general for all GPIO users. --zbGR4y+acU1DwHSi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlv7/pYACgkQJNaLcl1U h9A61wf/YTf3c1nEcIzq+uJrrPEBzxQm3qE8rBupKwbQHkqzIq/atKhxtPrQwUGT zTLu81kIHPwquclbSVHKDJepB6abpbGpSQ3Tlwx/TDV2nUsplGvJMknnX8cRuA4I I69mRub7Pjt6cXxKcJyynDEbGZLQjaEHBmSiUe/j0yz2UFy4SLacu5Ox0yxwL/HQ 2SL9X/iMz7GPRyTxZaVNhheL4mzTOoTshgHjiFoJ/Z2hxblhgxC1s9E4WogAYsrV 3ynQ/SHWVeJRkdvBpl9dh+2yZ7sLb+iXZDRRgeZg4ISznDpQQz1pHkXE2ifu3+Zj yQ05v+i1ww3xAxPkvfjtyPke+DI5Lw== =fwXX -----END PGP SIGNATURE----- --zbGR4y+acU1DwHSi--