From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=185.203.200.13 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796144427; b=dwsSQc8Jkti7R1s/I2p25x27RbyI2qjfnDL6ovyV1Nc0J1uRjm8Db0kbA8yo5M18qUoY DVSSwVQt78OkjNVO/oKVSDWIpn2edNrTSJ5bY9V6Gx6OzdxIYlddENhU8+ysrrhjfpI2+ /RMSqqo5jT4XG3FG9vanpzahvo4KR7NJvW44p06M2EZQb+lZNStd9OvOUWQPISIqcBBpi CCubTivs1L2KK2ByNMVSLB6ODTwKrX9T6Q5ZWkUGojmitYPbiBZPD6HK7EmDLFSEaKxDe hFuAAkaJUubuJ/I38z3Fl+L8OSfx7cusKuX/a0EGAq3enByHTjcBLMXheizJKi1VIAA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796144427; h=DMARC-Filter:Received:DKIM-Signature:Message-ID:Subject:From:To:Cc: Date:In-Reply-To:References:Content-Type:Content-Transfer-Encoding: User-Agent:MIME-Version; bh=fN5BmEod71XFuFYu4GrtefdJ8v/bCcxRB4rqJjntTQY=; b=T+r++nfhdqI++cKf9THAGxQi+56x10/z1utWfTM3yg/2clvdoiZ8oXxWPZNXGoozmu7y G3nryc+ik2tm593qPFhfQZQdc6VQHKvjJwmr5iPIBvF2qAyJA6xUBTa04fOzw3NnGSxV8 vI0/uEm+SqYVyLF9miT6aRiOvid13I362bGhXRNG2ZjrjBhP17AjAYMh9ManBQuVbVhjp yEpMuYCV/Lm1tRXQ7HT2X2SBEVAq0dz/0WhSFep3HekBYoVkGGbk4KRUmFecfpuIPB+DI PArJDKUXr5tFbkk7/VRLHEDIihiabL/BwdTdLCXgdhjuSLXR1HJ8kvkXJQhMSiLmDkQ== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; dkim=pass header.d=pengutronix.de header.i=@pengutronix.de header.a=rsa-sha256 header.s=20260414 header.b=FZsgP4et; arc=pass header.oldest-pass=0 smtp.remote-ip=185.203.200.13 Received: from mx1.white.stw.pengutronix.de (mx1.white.stw.pengutronix.de [185.203.200.13]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5A16A606A327 for ; Tue, 1 Dec 2026 17:00:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5A16A606A327 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pengutronix.de header.i=@pengutronix.de header.a=rsa-sha256 header.s=20260414 header.b=FZsgP4et Received: from [IPv6:2a0a:edc0:0:900:1d::4e] (lupine.office.stw.pengutronix.de [IPv6:2a0a:edc0:0:900:1d::4e]) (Authenticated sender: pza@pengutronix.de) by mx1.white.stw.pengutronix.de (Postfix) with ESMTPSA id 6BF4620101E; Tue, 01 Dec 2026 18:00:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pengutronix.de; s=20260414; t=1796144420; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fN5BmEod71XFuFYu4GrtefdJ8v/bCcxRB4rqJjntTQY=; b=FZsgP4et4a+scS6bb3aN6PT4XMCgGGoKiLGI9ZqAO+mGpu2oeyfBY8DHRhSLXhSn82cTEn EyMWmIO5yGs/vhErLg8RuCI0bBIAyRGSAjl4rUU5LbHNhZIYxSEKidlrhLWDdzwXKIkVWn Hn4Ewvfv+yxVLpDjgy8kVZ6Jd8C8Kz8ITZe2pIbaAKmDSSHxma6I1zP7fiY7JWNbKS8Tav xAU6S6fUh13MUQ/TXl8zdO9OTE+NrZZd3P594V6r9Uze//+MVEBEW/7CeyZwc0416+FjAV 0u+KuGZJNea5FpxJBmB2lfwMb/BJXkjtRfGAk7lfDms+RQMNaINKhpuNLyuTcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=pengutronix.de; s=20260414; t=1796144420; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fN5BmEod71XFuFYu4GrtefdJ8v/bCcxRB4rqJjntTQY=; b=AQjOzQIlDIHDHI9HTRUKdNWzgpcK31bfrTE10Tk68sAV/V9f/2n1zTMCLrhliy3On4633U EIJi96AgW/adA9JVsokhuyBTbStTYrEJTq5fFAq+0QHkcY2vTu1i0l/avX1nLGVmC76QkG laPb+fgmRyiJlFttw8NOkswSORB/ZIvqWOfqox1iEt8kXFFpf1lfFLUNUmYoc2pnhfSpu2 RKusiIT/DlyWXhSzZ4vNPqy92T4IaanBAKWhIiTCBhCRN8s95kE1Ro3m2OvGwV7kWb1FB4 gX01eNGJE4MDnPtzOChZ39/Ceed92ntCmJGD3ZAQd8R72zaSx7xgQTpiDl90mA== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=pza@pengutronix.de smtp.mailfrom=p.zabel@pengutronix.de ARC-Seal: i=1; s=20260414; d=pengutronix.de; t=1796144420; a=rsa-sha256; cv=none; b=HadHqXlY+pswjpvGYCMDbERTrdAEQod0ElIgKOzXTRe8RtusrF3Y/iNiOxhjSSZAst3I35 fPddOy8dgDZ0kaiPfVAvmvpcen7Q2U8z1HYzO35pnJXlFSFGf6JxA3MqDMYLFKMhEfUaxh ymMJSJw8dJ79Qf38LC6iD1CbKcRJTmmxBMwlNu9K9cKa7llg9FWvpT2UQg6pKaQ8Bnblta uNET6akXLmjNUqCNrAVJJCylALmyVAp7CO9j00liVvot3sE/l3AeIsu6ZhxriBgaxBR+Dz m81+e4DhG22YmuA8nKeln76FDTPUjpXmcJqNCiEArmITAQhDuXjfBEHc2Xl2tw== Message-ID: <38c0035e32bc6bccf5e04b929a7873270e30d969.camel@pengutronix.de> Subject: Re: [PATCH] reset: gpio: Parent the reset-gpio device to the GPIO controller From: Philipp Zabel To: Bartosz Golaszewski , Abel Vesa Cc: linux-kernel@vger.kernel.org Date: Tue, 01 Dec 2026 18:00:20 +0100 In-Reply-To: References: <20261026-b4-reset-gpio-parent-to-gpio-controller-v1-1-11549e6ea930@oss.qualcomm.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2-0+deb13u1 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 On Fr, 2026-11-06 at 11:02 +0100, Bartosz Golaszewski wrote: > On Mon, Oct 26, 2026 at 02:21:55PM +0200, Abel Vesa wrote: > > The reset-gpio auxiliary device is a child of the GPIO device providing > > the reset line. That GPIO device is unregistered when its controller is > > unbound, which removes the sysfs directory of the reset-gpio device wit= h > > it, while the reset-gpio device itself stays registered. When the > > controller is bound again, probing the reset-gpio device fails: > >=20 > > reset_gpio reset.gpio.0: really_probe: driver_sysfs_add failed > >=20 > > and so do the consumers of its reset line. This happens for example wit= h > > the LPASS LPI pin controller, which goes away together with the ADSP. > >=20 > > Make the controller the parent instead, which stays registered while it > > is unbound and gets a new GPIO device when it is bound again. Keep usin= g > > the GPIO device if it has no parent. > >=20 >=20 > I believe the commit message is a bit imprecise and mixes up the naming > of actors. >=20 > We have the "GPIO parent" - the optional[1] device that's bound to a driv= er > and calls gpiochip_add_data() - and the "GPIO controller" device which is= the > device we register (and optionally bind to the GPIO stub driver) which is= the > one exposing the lines. >=20 > I'd reword it to: >=20 > "The reset-gpio auxiliary device is the child of the GPIO controller devi= ce > providing the reset line. That device is unregistered when its parent if > unbound, which removes (...). When the parent is bound again, probing > reset-gpio device fails: (...). >=20 > (...) >=20 > Make the parent of the GPIO controller, the parent of the reset-gpio > auxiliary device too (...)." >=20 > I still need to test it and Tyler's fix with my reset-gpio + > gpio-shared-proxy setup. Acked-by: Philipp Zabel for this to go in via the GPIO tree. I'm also fine with the rewording. regards Philipp