Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1671913rdb; Wed, 31 Jan 2024 06:00:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IH1XhzS/LIDqG33YSRq9ix3pKjZLXGjoaVXWycsTt9TYwGoz5GUnXUpowUtjU2m5LGBNCaM X-Received: by 2002:a2e:b285:0:b0:2d0:643c:c2aa with SMTP id 5-20020a2eb285000000b002d0643cc2aamr1347077ljx.20.1706709607477; Wed, 31 Jan 2024 06:00:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706709607; cv=pass; d=google.com; s=arc-20160816; b=eGLe9ooIjp01b9TGZEf6ajR0ggITLSk/i20Ssig2JaI8sqx7r9nRClJtFtT5L+D/+6 LtNX5cIfYBvhmAWOEphvFgYLDSzDhNmgZu/dKddRwGP2IGYYzoFqfXiYPDdcSWoNp4Zb Ax4X0B5WsSNVXCvR/qyFCUpIm537ZP6IUj7/xjtp8363zLicdj7WUeq0a4BJv5eymelU 7Y4ib7OSX9Qh6ibdDN9CxB1Pg95/ZWl13wqkOVdfnEDacyfOTNfP3PrDx/qkIgHRb286 F/vd6+tjnEh6KTGXw4Pi7IqzV6+E2oHnlrjn1x5lUIw2zSg501GgXxgYizg635DjKaCE ciIg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=bEJwJEOTxr7IfFC16mxLKqsUVniFna55DBsPh0Ex/eI=; fh=IDcu1bh6IJQGcQDx5gj+ZBna0XmbucSAUNYNcrdAZI8=; b=Q6uw/7HDx9iVUKwzuXMhdoMaHvEP/YpQ/cVCYMOYMFd3Pgf+Ald+s7/au/qMeTyeej oRzU5gDDYqp5j4cKF0Jvcm8rBdxPwq4fqrzC4BJUow1JSzbQmH6+erofAHsVVQiiJOoH R6H343C2SPhXfBKTCIprYuJTgu6fEkApdRPgIgxpl045AASNRAX1QEr3NG/aOD3v6ewa dEPWNWCPubKfdO7ZQdAfOSex2mp0JdPJeCDtE0CdmtG7sK8mOD4lRUIr9mzH0yMixIKK wBDmoxBfC6LJNai/yI8jVhwxDy/kEOkhOQlD+3bemr20JpkToI/XC1o2nqv+BizGm6C9 lQ/g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q6039tBd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-46548-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46548-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCUepNbDZ6kHSIXrUoyKZ++/E9xVRVVmsGl4BSr9zf6dGbdHR00/vZLqk2poCEgnFlHb8M/pQLA79oqTmOXBwSa0YaPcybY7n48VoMD/kQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f11-20020a056402194b00b0055e9d9e5c98si4843235edz.220.2024.01.31.06.00.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 06:00:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46548-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q6039tBd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-46548-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46548-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 3B5D61F26AC8 for ; Wed, 31 Jan 2024 14:00:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3477981AAF; Wed, 31 Jan 2024 13:59:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="q6039tBd" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4827380BFC; Wed, 31 Jan 2024 13:59:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706709594; cv=none; b=RsG3n0mqIMp/dTtwW2PHkLLi5rBKlJgdsfk3k2BaIWmFjRshSBYrpzMHME8UygUdpc1o2AgORwfDjBNFBnWfflYr9rO6i2SxLurnZQltSD01g+/+dcOTzy2elu63gecUarR8NXfOJQceyhPXYNy/6jEFReliEyar8fZKhx5yprI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706709594; c=relaxed/simple; bh=kx7++Nl+g8gUP4P8BUkEMWIMMN6PTKxchtxN+CPVmLk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fY6zbtKWwmAnDHqUDojE5iIt/zaL8BkYYB+Rb7h7p9n/dZTGpnCkw3lk+1G0ZSccy8UXx7Rui/am3bJ5J632kAo8G4vMOmU/Z80YY1QubL5t1XWrR1UlFnV/7Hniui2qf2y6b/0qkpYyEuoPsWAzhTrDgf0Gh3TB0NWU/mlSdbE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=q6039tBd; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D7AE4C433F1; Wed, 31 Jan 2024 13:59:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706709593; bh=kx7++Nl+g8gUP4P8BUkEMWIMMN6PTKxchtxN+CPVmLk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=q6039tBd6g6aaJ08HMT328HRmGQ9/vDdtmfqgRCXxQae1xNri1Php+xPYYolOYXO2 jQ4rYZ626C0Eie0xX/22fJCSp75S7+YumvXSITEt2RXClBqXjVqGbPTas2PiIg4cr6 dhYqZP3xXnKjvnC+oSdKuzDFhvBEXZxQejtNbN36vChso2CXRwSqEBa9d8xn22ngjo jbgR6foNn4IeIdsd0qqCXgf1X3AwGl3Otrpk2/3ofgUQKye7lym1S66RUqkGx4ZxtM BAndsyZ1MsY12LGTmckU1x67wBdBjxp9YSwuQStPGxEXudQG5P+1UgvkyMU9VP6wR3 zEs1DYzSNuIag== Date: Wed, 31 Jan 2024 13:59:45 +0000 From: Mark Brown To: Linus Walleij Cc: Krzysztof Kozlowski , Bartosz Golaszewski , Geert Uytterhoeven , Srinivas Kandagatla , Banajit Goswami , Bjorn Andersson , Konrad Dybcio , Liam Girdwood , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , "Rafael J. Wysocki" , Viresh Kumar , Frank Rowand , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Chris Packham , Sean Anderson Subject: Re: [PATCH v6 4/6] reset: Instantiate reset GPIO controller for shared reset-gpios Message-ID: References: <20240129115216.96479-1-krzysztof.kozlowski@linaro.org> <20240129115216.96479-5-krzysztof.kozlowski@linaro.org> <5ef64082-0b44-4bb2-bd4c-654c96f4a9bb@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="aUBo2xsR6S0y35Fl" Content-Disposition: inline In-Reply-To: X-Cookie: I will never lie to you. --aUBo2xsR6S0y35Fl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Jan 31, 2024 at 02:42:17PM +0100, Linus Walleij wrote: > I guess it may be an issue that regulators are not using Device Tree > exclusively, but also has to deal with a slew of platform_devices:s :/ > IIRC that was one of the reasons why it looks as it does. Also ACPI, and this is a long standing binding so we can't change the ABI for DT. We could potentially use a refcounting mechanism provided by the GPIO core but we'd need to know when the refcount changes from 0 to 1 and back, we need to take other actions (inserting delays and generating notifications) when it does so I'm not sure how exciting it is to factor out the refcount. I think part of the decision making with the current design was that there was likely going to need to be some higher level stuff like that in the users so it wasn't clear that trying to abstract the reference count away in gpiolib was buying us much. --aUBo2xsR6S0y35Fl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmW6UlEACgkQJNaLcl1U h9A+fwf/Uk2jUjqxQFPM7xcqmHsrA9v2ugLGTMHO8Maq0EYtg3qC8iqG/GpGJUfs fFgiBMZMuFYRWuVZrFqaDVfH2SjrzVuTwRnzdcc248yp4VxcIw+/6zv7MN5I7+Mz drrk+SOW8LQ1/zFdYFCZJ6nTpNpz3gbw6dfYHSsOsXwKXw1uXrjVpsr883NKtWhR T7booZIhNa/o4N0KWRG6F3uJtDXp6adazB05Ub4s1FU3bNdajYiU/bXbG2hp01Me YNMz64ezvnOBwrVEtGF/CzVUjFy3AesEUbq/RASerWiFsB0OatwnMeNG3/Fn/mLU Qna+Cm3/fdqDG1oWpox48rOY47Hy0A== =3gvm -----END PGP SIGNATURE----- --aUBo2xsR6S0y35Fl--