Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp924826ybx; Wed, 30 Oct 2019 07:18:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBXaGNFQE5CRM66JmPPPxVxz4Y4Fgoe3VU97j8ovmWfS+qxvnOztPVKxjwyAxaVZ1RInAp X-Received: by 2002:a17:906:79cf:: with SMTP id m15mr9002085ejo.79.1572445130178; Wed, 30 Oct 2019 07:18:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572445130; cv=none; d=google.com; s=arc-20160816; b=BxOETlamnpCId2k44xFMPU8Nt+KUniqFd92tDO2CqvcEjyd/5Wacc2GNeni5oEe8wM 6iNIgk0Kb6l8/kLBFKgJP6I+fyrUJK5i3L/sKGIPDiMkwriDFpBiDFilLVPoCLYwGfMy xDv8RKFIB68l2wLMJNr41ge1nlsDObTYB+2lsFaAIW2gmiqBjju/fC0yJh0YxdqOSVPx 6DAaef1hWu+Lm9zRaOzccNGNtqB3rR8zaS3B5vPs289JnNLT2cgQBOa0jtDhfhCR/peK p5bXCVndWDPf58PJJZXAjXUrNutbG1/+lnDtquo39LXribAZkhRrvB7FNzphiXENnB9P M8nQ== 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=5mkGcP2WEwjWYjEFxVfk1OeHzCHQXe8iz/K+tKvtbEE=; b=i/0m/QJ5UGriRQC7YfN7uzsY8ZqAtqWh0Uj0Q3gIoqyW4XKc8Xmh3PWYSo9KEiZlUI iBvBbv7qKme85cYDfKKOihG2AdkQvwUchTr8wqLzJFnsuYjffV/Q5+eutG4vaSYL0ad9 yFLGVoLM2iVUl9m5Ic6yJ6XK45TXhQGzr78a9G2qkmO8PRD+iJ7CrYGcBvTTz0eu1E5q Jyh0WCm9aUneqJaYw0ZNxFnLx2RHDPa6QxyVCZolZ8zGub4ANXmSD1XmHxWJp83rrfna 6OwDBU0w9RiEPReSgChg4LBxtdBHrofDHQkQ0u2rq3FDx9wqS+/PkhO+EvMwkaJP9j5z LgSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=Wlr5WeIM; 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 m9si1261644ejo.46.2019.10.30.07.18.25; Wed, 30 Oct 2019 07:18:50 -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=Wlr5WeIM; 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 S1726506AbfJ3ORn (ORCPT + 99 others); Wed, 30 Oct 2019 10:17:43 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:42550 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726096AbfJ3ORn (ORCPT ); Wed, 30 Oct 2019 10:17:43 -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=5mkGcP2WEwjWYjEFxVfk1OeHzCHQXe8iz/K+tKvtbEE=; b=Wlr5WeIMFCk8/pi7ka8smGkye mE4m6j9f6OBbLCh8aBdQD32ul7wZF8oGzSa2ehLosTFnwBmqp9Ik3ELdSF9VdXDMnBeFh22poJebF QTyeTEZIdT0p4b2L47NrdRyRPOdsqy9KiuokalQv/X9t1Rke161XIcB+u1SnP20GVFS90=; Received: from [195.11.164.221] (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 1iPon2-0005Ek-Vv; Wed, 30 Oct 2019 14:17:37 +0000 Received: by fitzroy.sirena.org.uk (Postfix, from userid 1000) id 9C399D020A6; Wed, 30 Oct 2019 14:17:36 +0000 (GMT) Date: Wed, 30 Oct 2019 14:17:36 +0000 From: Mark Brown To: Peter Ujfalusi Cc: Rob Herring , Linus Walleij , Bartosz Golaszewski , "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" , Marek Szyprowski , Tero Kristo , Maxime Ripard , Philipp Zabel , devicetree@vger.kernel.org Subject: Re: [RFC v2 0/2] gpio: Support for shared GPIO lines on boards Message-ID: <20191030141736.GN4568@sirena.org.uk> References: <20191030120440.3699-1-peter.ujfalusi@ti.com> <5bca4eb6-6379-394f-c95e-5bbbba5308f1@ti.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dp9QYJgVRVEW2bsm" Content-Disposition: inline In-Reply-To: <5bca4eb6-6379-394f-c95e-5bbbba5308f1@ti.com> X-Cookie: Keep out of the sunlight. 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 --dp9QYJgVRVEW2bsm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Oct 30, 2019 at 03:32:09PM +0200, Peter Ujfalusi wrote: > On 30/10/2019 15.12, Rob Herring wrote: > > Why can't we just add a shared flag like we have for interrupts? > > Effectively, we have that for resets too, it's just hardcoded in the > > the drivers. > This would be kind of the same thing what the > GPIOD_FLAGS_BIT_NONEXCLUSIVE does, which was a quick workaround for > fixed-regulators afaik. The theory with that was that any usage of this would need the higher level code using the GPIO to cooperate so they didn't step on each other's toes so the GPIO code should just punt to it. > But let's say that a board design will pick two components (C1 and C2) > and use the same GPIO line to enable them. We already have the drivers > for them and they are used in boards already. This is basically an attempt to make a generic implementation of that cooperation for simple cases. --dp9QYJgVRVEW2bsm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl25m38ACgkQJNaLcl1U h9DOmwf+JLW+Mnv1zxmPd4I5WIvRwdka4+X5vKvVEQGfkcbkvBPGj0jBL3B4GEKz vjCpNmVnfgc6KlvwsGqEsyKo5Hxo5ZmXJlbVpKw0zFjCGuj4hVQsMrvu7zz8dCRn LZOP/iKwPUHrpQ5F5vBURBc6gjj97WqAg3w0RdqCe0gJehqYrV9ulo28wB5pv8Cz 2IHQ21/bOkpu3caVGJO0+LevtN+s2qVY4gYo0tRTQI9XbDGcarivPJr0AVvle9qi 5QX0Jdfj84F5cu0f8I29G9Zk0i887OqJ0iKA5k2mUojkho+57hZY87TJ0KZZTh9o SIS+L6vhF2qKKYb54Unpp4jMS83pvw== =BRXS -----END PGP SIGNATURE----- --dp9QYJgVRVEW2bsm--