From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 ACAD41F2BAE for ; Mon, 23 Jun 2025 07:11:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750662710; cv=none; b=PGFoHHRMZL+OmuOCfhUN8IzNApNXzzaTxNsLbtXz+iiUXei7w0z8vZoiwNgDVDyrXQAcGYAcOGcTnEdV7IcPluK2EV8qZ15Tf1EpRTiDc6uKCQBXq9GJ0jzYjbx19WzFOLYLfJzVgNxq4F2GRzE6RhklmLIh2N70T/Zkfeh1Sf0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750662710; c=relaxed/simple; bh=8E9pKEeqU9K5+berDfkrRQez1dGqpjpeYbjpaAzRN7U=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=C1TUBA+wziIhWykS9MdxdP5QPA6I8BkCtCeJx+N6Y1HcMKX5/MLjMD2xSvh/UwO02gI6DHbux0ObkvsOGd2lthgog72lqMmj6SaONYcAMp6QGHBiwZgK3lg0wTQrs469RUjF3doq3XyTVCNfj7lL5EbCqPo8W0YG9dpFTvVNLr4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1uTbL3-0003AE-8Z; Mon, 23 Jun 2025 09:11:33 +0200 Received: from lupine.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::4e] helo=lupine) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uTbL2-004uJr-0o; Mon, 23 Jun 2025 09:11:32 +0200 Received: from pza by lupine with local (Exim 4.96) (envelope-from ) id 1uTbL2-0005Oi-0T; Mon, 23 Jun 2025 09:11:32 +0200 Message-ID: Subject: Re: [PATCH v1 2/2] ASoC: codecs: wsa883x: Handle shared reset GPIO for WSA883x speakers From: Philipp Zabel To: Dmitry Baryshkov , Mohammad Rafi Shaik , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai , Linus Walleij , Bartosz Golaszewski Cc: linux-arm-msm@vger.kernel.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, quic_pkumpatl@quicinc.com, kernel@oss.qualcomm.com Date: Mon, 23 Jun 2025 09:11:32 +0200 In-Reply-To: References: <20250620103012.360794-1-mohammad.rafi.shaik@oss.qualcomm.com> <20250620103012.360794-3-mohammad.rafi.shaik@oss.qualcomm.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org On Fr, 2025-06-20 at 21:35 +0300, Dmitry Baryshkov wrote: > On 20/06/2025 13:30, Mohammad Rafi Shaik wrote: > > On some Qualcomm platforms, such as QCS6490-RB3Gen2 and QCM6490-IDP, > > multiple WSA8830/WSA8835 speakers share a common reset (shutdown) GPIO. > > To handle such cases, use the reset controller framework along with the > > "reset-gpio" driver. >=20 > How does this handle the fact that resetting one codec will also=20 > silently reset another one? It's the other way around. Since shared reset controls have a common deassertion refcount, actual reset assertion only happens once reset_control_assert() has been called on all shared reset controls [1]. The speakers would only be put back into reset once the last one is unbound. [1] https://docs.kernel.org/driver-api/reset.html#shared-and-exclusive-rese= ts regards Philipp