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=1795902752; b=R82WJN1po4IQFyj+BPHJI2ko4xp+Let6P7vge4q4iWgYIuMrZ/1K2Takg0gMsYQ47uiw jQPkRRUhXdJr0iDLAjAe5bag3jL1UvxLVG44qQRoxhLbzr5fVOdk6Zsz6LUoTe/jxiM5m mcrgt6u4xDz46xK5QElB+qDKPc+sYSJMLQWy0ONTtfmxxHYfnab2E8zte+TGSnDUA2I+7 ZCbvisrBzPDX0PHMXXOeomCQEtNjAGCmt8urq59RC73B9fSYm5SrzDKv9a/DwT3DjbDTk Pvq9RTLFnwVIZdx1y2Bz4fyYr/7+DaMgqwICOJep6LxDEftoTp1LN7+O4afU7RVApJA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795902752; 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=MPw6D12HBL/fQ188wOvffDJFZq2/INDSoNV9ttFnlmc=; b=uUA+oSgKRJEkIGEKV6HSPoRdzozVJxW1gTdO1kQZuE98tmkmHPLnNZqdzFKSVvYxNpZM MBscwE6/IPBRwTmB0sgrE6xp3aPqMcLDK4lKX+Fy2JAjXoLqpoykEhI0M4iHu0pSWKHv9 pXguP+gp3kOdaX/s9rgd+HkSATjSy8q0ppRQyGy9I27bJ41hxpbqQTgPTqXJdgY2nGZxy xbSVdcBoWBLotYXohv10M0XI2qVbrzdwGO9hMGWDyYc+2EXHmrhhTqN0kAbjFLjUt52Gn v57P46kvkl21KwpfzfpDZnIyTHZtwpYqU4/n8NzOpDcRpvyPwJlM3gq6q+puB9HOI/A== 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=BiidY3rm; 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 B53ED606A31C; Sat, 28 Nov 2026 21:52:32 +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=BiidY3rm Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA4FA1F00893; Sat, 28 Nov 2026 21:52:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795902751; bh=MPw6D12HBL/fQ188wOvffDJFZq2/INDSoNV9ttFnlmc=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=BiidY3rm1s1R0n3jjgHDxMZKnCoRELg99sDbWiwDwuTLZG2Mnodlf2Ucny8itw6Oz TvNhouar4ALZ1AJezLe5NxQV1YM+jon1pqkhcJsNH7bupmYtA2iyVl0saQVA9PrURc MiH7SCNtMMSD+oaEfwofKyY8nR3IRIRIDDrjh6QqFbm0ByBP4sFSlQflbyj0aTLi0j aL/ggUSJVIXspao9M+lbnUuvfx1vcUQwWRGg5ljVgBBbwTJTWO4R9EdMOs7+lac7Dj +PdIDDH2DXRr5cza6upuxCE/2cL6L0J8my6giAmRHwIUtgSRo+7ghJ4dkFw4kvymi9 U8kRiHCv0rumQ== Date: Sat, 28 Nov 2026 21:52:26 +0000 From: Jonathan Cameron To: Radu Sabau via B4 Relay Cc: radu.sabau@analog.com, Nuno =?UTF-8?B?U8Oh?= , Michael Hennerich , David Lechner , Andy Shevchenko , Ramona Gradinariu , linux-iio@vger.kernel.org, linux@analog.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/7] iio: imu: adis16475: Use a kfifo buffer for the devices with a FIFO Message-ID: <20261128215226.335b6174@jic23-hlaptop> In-Reply-To: <20261123-adis-fifo-v1-4-f6ad9e493e19@analog.com> References: <20261123-adis-fifo-v1-0-f6ad9e493e19@analog.com> <20261123-adis-fifo-v1-4-f6ad9e493e19@analog.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 Mon, 23 Nov 2026 15:25:28 +0200 Radu Sabau via B4 Relay wrote: > From: Radu Sabau > > The ADIS1657x variants read their FIFO from a trigger handler, which runs > from iio_trigger_poll() called in the FIFO interrupt thread, and the > capture depends on the selected trigger. > > Switch them to devm_adis_setup_kfifo_buffer(): the FIFO interrupt thread > now reads the FIFO and pushes the samples to a kfifo buffer. The interrupt > is requested disabled and is enabled once the device FIFO is running, and > disabled before it is stopped, from the buffer setup functions. This > replaces the trigger's set_trigger_state(), which did the same through > adis_enable_irq(). > > The trigger is still registered and trigger/current_trigger is unchanged > for users: the buffer simply does not use it any more, so writing it has > no effect and a buffer can now also be enabled without selecting one. Same thing about wanting more explanation of why we need to use host side masking for the fifo interrupt. Can we not disable it on the device side? Otherwise LGTM