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=1796428228; b=KQvAAwBch8O1mTvTKychFl2keQCTYAO00VIwth03eKXRkT38YoBky0C+f8UC+3hqulTM JFHWe1c6Pgq8yxUpK0fncoWLcGi7iPIMBsjCkMuiKIS9cKttwEW4UcHf+98d9JlEnUc10 6AOncQj9nSLSJCDUCXv5TzKRy6AVQgDyk92PlZifQRTBsspaQqD1S2D2Td6bWL9AcHowr CKOcQRTYZI0YQxS/k1bcwqy8XLIR0XSFK8/3VHOnNI88QuP4AL6YrmnX8SPGQeBqB+WcY o56m66ChXEbJK32IdHTLMKCYUAZwtUUbGVYRAGsHd56XjalI8jihwHO//Z1ugvQ5Tvg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796428228; 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=VKkvQux2TkUI6c5OBNcx9pzcJ+jdlP4PK2TdWy3eNGo=; b=1snFv+2ORlA7FARyvC4b+Rs6P2wQfn4Vej6igXU4J0NCWok5qnwiShcb9X3go92kphZl IaUYJla63lqAzzJIIjsAUVaq0qwpMs4kCLNWCBiE4T8Obu08PYAZKSDfel3MUbQ1q6+SI usy2vHcYUa3O5lU/0sejKr3HJhVJ5nSsfTdLyGXtEd6+wAtYLfyeq6imuaK/yWWJlSasX N423Nu5FV7Wowz3rHz0LYPWpXbkLzBsbryJZWsCzwi5BIF+JlfeJA1/eCGLzyK3GSluDb I5vqx58YqDJPBTpi+JuVoAbA3M7eB9wLz1dBG3mrd2mE47hZ4lw2RbpAFoj3sDs85AQ== 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=CE1cE0cT; 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 64C64606A322 for ; Fri, 4 Dec 2026 23:50:28 +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=CE1cE0cT Received: by smtp.kernel.org (Postfix) with ESMTPSA id 083B81F00936; Fri, 4 Dec 2026 23:50:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796428228; bh=VKkvQux2TkUI6c5OBNcx9pzcJ+jdlP4PK2TdWy3eNGo=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=CE1cE0cTLZyAmuVsoHCcbIGQyZjgY+FCd30ED7PY1ixT2PE8TKLAKzq0igZOa0Y0p LzRZOe7ENYiir+v2yu9Jp8xBj28Uh1xcZPwclu3MDLj9rQ2QY03/+wlBUN+aMWlh9i WpzhVFJXBZBePiD0iwbkoyyu8v0W+Pz+XzEbEPDOLazkNvHuva5/RG2Fh/2XPUiZt9 RGfJf6g9JnIKqgQS52VFTmB7ttkJ+jNeVOYdwr8Xq2zpVIkptxT9UTupuB3fmuguNu ir3QDdt/27M6/ob803wjHnM1A0Gpop/8jcngL4p3LKKMOTlVrMW4P19HzwrNOT7PLI O76ptZj+9ZQ+w== Date: Fri, 4 Dec 2026 23:50:20 +0000 From: Jonathan Cameron To: Andy Shevchenko Cc: Rupesh Majhi , Andy Shevchenko , Antoniu Miclaus , David Lechner , Eddie James , Lucas Stankus , Marcelo Schmitt , Michael Hennerich , Nuno =?UTF-8?B?U8Oh?= , Petre Rodan , linux@analog.com, linux-iio@vger.kernel.org, crofts@kernel.org Subject: Re: [PATCH v3 0/6] iio: debugfs register access through regmap in the core Message-ID: <20261204235020.0630b88b@jic23-hlaptop> In-Reply-To: References: <20261204181105.150419-1-zoone.rupert@gmail.com> X-Mailer: Claws Mail 4.4.0 (GTK 3.24.52; x86_64-pc-linux-gnu) X-Mailing-List: linux-iio@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 20:36:14 +0200 Andy Shevchenko wrote: > On Fri, Dec 04, 2026 at 08:10:59PM +0200, Rupesh Majhi wrote: > > More than 25 IIO drivers implement .debugfs_reg_access() with only a > > regmap_read() or regmap_write() on the regmap of the parent device. > > Patch 1 adds a core helper for that, patches 2 to 5 use it in four > > drivers and patch 6 adds register access to dps310 with it. The other > > drivers can follow in batches. Callbacks that take a lock or claim > > direct mode around the access are left alone. > > > > Patch 6 is tested on a DPS310 on a BeagleBone Black. I don't have the > > other parts, so adxl313, adxl372, bma220 and ina226 were run on > > i2c-stub under QEMU: direct_reg_access gives the same results before > > and after. > > ... > > > - 1: kernel-doc of iio_get_debugfs_dentry() moves inside the #if (Andy) > > This part should be done in a separate patch. Also see a comment I gave against > patch 1. As Andy suggests, it should really be in the c file anyway. Better to take this opportunity to add an extra patch that just moves it there. Thanks Jonathan