Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3773320rdg; Wed, 18 Oct 2023 05:56:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF3amvLEHbnBgzMdmmvtd8MBx+RJSmua1VVLVPxDi74VY3u/8/HPnKbeNDwlJMY2Cbmizo8 X-Received: by 2002:a05:6a20:daa5:b0:16b:9b5d:155d with SMTP id iy37-20020a056a20daa500b0016b9b5d155dmr6041386pzb.30.1697633788465; Wed, 18 Oct 2023 05:56:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697633788; cv=none; d=google.com; s=arc-20160816; b=S5lPG3kHDcg3xINLMZ9QUlSXJqN7xeD29hCumQk7ma72D2IYNcTTCEHsrsuNx9ts7E mC+yu4FmbTgEbt7KPGQJLVLFTjFEueQN0JNuxfILcIkjuUAOmP0p6Q6/k8a7queLP4Ek rR9waMpU11a6BmBgbQ+2Zdg+k5mDd0P2BwG6xNLDifAP4fYoPfFKrBphLoXJ75oPXI0V drLmh3msdL41+vyLJo72Au6lTCRTMSuqZ0YM24QqAXLDkPUkHAP6KYVDPx5asHmbS5D9 lzCopT7D+6vAgBeMP/MON9hwFZ1NXur6VhXwWy2Z+obk954PLfAOynHZAEez2TJyJbnu 6iPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=D/A/eCI2Z0/Zlpm1UlW28Cqb9qaAymH1naAN5Ud9JVk=; fh=1t2MVv3+BINYQs6DttGd9enRITjmoxz5PTStse3iDxA=; b=d70OQQiqyincZA5n9frNGmXJuIJ8nTMK0k0t0Ebs6GEMae/DfYD0FIVN9OfDPjmHEU 9NRqFiVJiE+AG4kUayH/s8lfaNOL18U7H0JU8j0qoxw63Zi3LXMPvzVmN38woLhFz6gf 1Yiiw725gX/3O+hNeHvalUo2oJeg/MiqvLz8Cm8LFfTpZufF0aTuntqPgnWlLmO2n70H U7hBWR7mPPGaTfeMpMmLj6mZRZKZlE+ZedJU7crZ41sAMp4xNpvZUzNCVIb7ZHxxknML sm7UE3n1wSlbjYVryDfVAEUeSduF+eLJXtsb4dkNWNtTRWxdnwlD+SnneIMpzIRMrst1 D78Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MJVkvpwr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id u3-20020a17090341c300b001bb3316f71dsi4276758ple.481.2023.10.18.05.56.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 05:56:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MJVkvpwr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 51FAD8183ED2; Wed, 18 Oct 2023 05:56:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229510AbjJRM4V (ORCPT + 99 others); Wed, 18 Oct 2023 08:56:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229798AbjJRM4U (ORCPT ); Wed, 18 Oct 2023 08:56:20 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73E30109 for ; Wed, 18 Oct 2023 05:56:18 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA518C433C8; Wed, 18 Oct 2023 12:56:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697633778; bh=RfajBlwcuXvS+TumbX+H26qssz1sCsAhi7MdYhWbndc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MJVkvpwrSgXAy6qscSeVWxmppjv3m8n4+kX+4AHQ14KMDidYa9FDRWG1HZLJYOetF bjmQdZUNaS7DMv9iAYakN7DzObetRdzpsgVz5TlhdcmTvAoHhpRsO4VgW7zJRrTjvH JyX88p2CZz9M1iJQAcQ22FXKBwOOtTXdd4j1hBSY49tVOlX9COd0jkM+7WByoOpBCB WKnprgmC/NsbLe4ii21o2elYvR+OHBKVGJNMKKBHA8QMD15FVqPqP9RbuyNRizwID+ 1ESgcoh9BLGO68YjQlkoxeJRXAErVYY/mC5Wj1qGcqKlGqgI7+kFdvu8Yvs5p0bB7G qYnqMZ5nYBpkA== Date: Wed, 18 Oct 2023 13:56:11 +0100 From: Mark Brown To: Krzysztof Kozlowski Cc: Srinivas Kandagatla , Banajit Goswami , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ASoC: codecs: wsa884x: allow sharing reset GPIO Message-ID: References: <20231018100055.140847-1-krzysztof.kozlowski@linaro.org> <3aa9e3a7-9417-44b4-87d8-fcf1a8b46daf@sirena.org.uk> <84f9f1c4-0627-4986-8160-b4ab99469b81@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="SeEMerEnyAsMxP6P" Content-Disposition: inline In-Reply-To: <84f9f1c4-0627-4986-8160-b4ab99469b81@linaro.org> X-Cookie: Santa Claus is watching! X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 18 Oct 2023 05:56:26 -0700 (PDT) --SeEMerEnyAsMxP6P Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Oct 18, 2023 at 02:38:00PM +0200, Krzysztof Kozlowski wrote: > On 18/10/2023 14:35, Mark Brown wrote: > > How do the speakers coordinate? > They don't and that's the generic problem of many Linux drivers. Not > only this one, but others as well. > Device unbind (remove()) or runtime suspend of one speaker will affect > other speaker. I don't think any other drivers solved this, because this > is rather core's GPIO issue, thus I am not solving it here either. :( I'd expect that the GPIO users should coordiante directly rather than rely on the GPIO API to do the coordination for them - there aren't enough semantics in the GPIO itself to do much more except possibly provide discovery services (which would be nice). Look at how the regulator API manages multiple regulators sharing an enable GPIO for example, it adds an additional layer of reference counting when it identifies a shared GPIO. --SeEMerEnyAsMxP6P Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmUv1eoACgkQJNaLcl1U h9Arjwf+MY/q21wh5tBoMbw8vn1r4Ag4O1t2M+4gxxtLbqzpaWKPc99mHcw04BMC 1ddMktsfr9bnWH0PBXYhrKahMdfDlXrotllyDtWS0i9hQUOhrgFKj0r4192NDc4q do9drmxc8ikNhIP4AWqQTj0uLXEwRuHqj4gXnak6M0ScAi9cLYo0BvIBi/g8f+jY U609DqfVDLVbntcAVB+b6j087AwW1drZ4cj2XV7TppJtUE1IWku3rlb95zm2jC0B SwQI49ZkObNk2YiErX33Q9qmIitZbtgLvBR3DHsZHlBaswBT/IApJRnu1VOJsHX4 /56/6Ela2XeuYcFE3rPB0ExOstsO+g== =lF0c -----END PGP SIGNATURE----- --SeEMerEnyAsMxP6P--