From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796518942; b=LHoSncPsD4mViUhg7wPKyAESGrfx1p/kEcCxwfeJCkWvpqgpLVLVKQynvWsrIL6yAlYf KG6W2qgdC1Rn68r1Ugp0uz+3+Hb51Yrar4MsXkvCua+j/UVKbb/PF+D4Zatu9xE+aza7k QXQ8Go02oX4J5xhBetbeDQnJ60E9v+rImNOwQFLO6BFLK3d1qaQNig29YfB8585WmG8UJ zEHxhHYxeuR891RgPsmvYSumUH+suvzSXHyCX8pll+xkY6kAcQUjm+GNDDkcWELB876B5 eZJPoA18LljTc1g8PWE2lQOdm/h617ikA9QkJZY6OM6wE2fidyup3MMqGci+GKUNMgg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796518942; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: In-Reply-To:References:X-Mailer:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=80a53sE0HVa2e/U0TkP4jBJMnCRqf/Yr2u+IwpVS3hk=; b=GAW2lXAu9Y32ULxzwH8vgOimr0TqGva9zStoByaNGrFdIKpUEmMi6wTf7TA4Hb9mxx9u QU9iSjG/cLoSGAnMG7o9tx9iIBtCueiLz+7tY7Ny2MBLxpYn/X2oEZtT69doe+RXf9m+R ElyZ+A0yg0+GjVMrAHC8lhTG1x47Hs6QwoatNYfrbcedwqCnqbr1Rmek2h1+PYc9R/AAr y8THR86pjERI22xdv2+PXQ21C1ck0gxkFStuBzBstegAgIw3wNWD8fWRzrqYTc0BUAoM7 mzldj0ccuFO5WwzdYsih/MDCrYfAf0sCU3FM91YaMwCa0/Aw9Flc9UhOnun3ArDltlA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=lhiEstMI; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (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 A48B9606A31F; Sun, 6 Dec 2026 01:02:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=lhiEstMI Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE6351F0093B; Sun, 6 Dec 2026 01:02:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796518942; bh=80a53sE0HVa2e/U0TkP4jBJMnCRqf/Yr2u+IwpVS3hk=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=lhiEstMI2reU5IhdF587eTD90zTaUyt5zG52pK/zmG4zHMlc0D6oB4Silz0crnSzj MCNHl6Az/NPiYYrzMu1HfNqiSDKz+7phAzdJlf2Up9hahHOB2iVFeI87fAVefpLQ/N ho85BEUvsoWjOEiVqXThzGk8n+TlTvvL5i+Zd+ua7Jvay4pH3IQYjYnGrp8qGKgqT+ 5jKBZZVrNfJQKmR9pfsaNM0uAqAW5GCXkFdbB5x1rJCYMmFwwaX7L+yQFDHJ0x15TH wUR0neaK19RPox9tdsGPh3eCO/xM5DJ5iqlFMngS8nOKHA7fiffqcVBczK9mOBXFxj N6LtbgksJiECw== Date: Sun, 6 Dec 2026 01:02:17 +0000 From: Jonathan Cameron To: Andy Shevchenko Cc: Rickard Andersson , hvilleneuve@dimonoff.com, dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@axis.com Subject: Re: [PATCH v2 3/3] iio: adc: ti-ads7924: Use reset controller for hardware reset Message-ID: <20261206010217.3d395987@jic23-hlaptop> In-Reply-To: References: <20261204121458.744588-1-rickard.andersson@axis.com> <20261204121458.744588-4-rickard.andersson@axis.com> X-Mailer: Claws Mail 4.4.0 (GTK 3.24.52; x86_64-pc-linux-gnu) 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 4 Dec 2026 19:02:03 +0200 Andy Shevchenko wrote: > On Fri, Dec 04, 2026 at 01:14:58PM +0100, Rickard Andersson wrote: > > > > The reset GPIO may be provided by a controller that can sleep, such > > as an I2C GPIO expander. ads7924_reset() toggles it with > > gpiod_set_value(), which triggers WARN_ON(can_sleep) in gpiolib on > > such systems. > > > > Use the reset controller API instead because it can sleep. > > > > Note that the hardware reset now requires CONFIG_RESET_GPIO. Without > > it, the reset GPIO will be unused. > > Yeah, this rises the question about configuration and dependencies. > We need to work out the common approach in IIO for this type of conversions. Where we have a fallback to a software reset (like here) I'm not that bothered. We tend to prefer hardware pin if available as it can for some devices work when comms are lost, but in general hardware and software triggered resets are near equivalents. In other cases where it is the only way to reset then we probably have to have the driver depend on it being available. Jonathan >