Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796409381; b=0YQTEKSjn9VUokttLFQSn9lwE8p4Vszbqvks8gv17HITDMjiRfuLuUVsz0SWsOuOm6hT poCdJS3ZaKLTInSTwcw4CbattEFbGiuqANrL0m1Hg3p1OX9fiU76uVbnNW9xocgnpIe3W hscdK4ze7nj6Iw2CRiiHYkY6KE9Qa9Pyr7E5Oj48YjFD4aBSq8T2bBNZTl1G4BKn9T+7n YEoT/8V6tGWCsmuwKuhIRy8cXYqosVxbze98OSXTLjG338C3f5hVI9TF7ZZNWK7GGLZ7d i8G8lcy3W9DjM0/iHV9bCtQdVLzKHBC/Zk+3h57wR7kGfB8mY/eYICoKVmYnTV3UjcA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796409381; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To:Organization; bh=VHLLDnlWT38WFfgoQLoeoVW++ESOZKM2noR7f13G0NU=; b=PlpqHHVpmYOCzB4HaQ8O48UxG2cUIkh8JabIDZMk5yy89bNfFUgaBc3IetL13es1Rxh+ vtER95BjLj/03MGpVeh+3foC5YauzFKdwp7EAQPfhMSBLm3OeMruXo6hb2EZCtXINNEkd pQHyc/UMgJ1rTdGxX89Rn8VQtPAXi1+oX+Bbb/s8793zQ25LiioMYtVQSQVRFwxvk3zb3 qIbHLGn+FqvANKDGLgaf81+sk5nM1xf/w50gQhWvQNhoz/1CGxBBZ3k1X3fNCn+c4yE7w u2CGyEcwjqErRn8mhGHl531Qyy9D4KLIVvBtzCKzT5I44XPdjNt0dhzuoX9ezmgHTfA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=ndrQOGJE; arc=none smtp.remote-ip=192.198.163.18 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8E5CD606A322 for ; Fri, 4 Dec 2026 18:36:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8E5CD606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=ndrQOGJE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796409381; x=1827945381; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=VHLLDnlWT38WFfgoQLoeoVW++ESOZKM2noR7f13G0NU=; b=ndrQOGJErTVCg1bawo3yuOnALqIkoCC1Wfpu1yTyOG9892LjAAru6Od8 RoD8BIjB0yR/bIi9+f6SvOwOFAgSF9HSM+RN7lm4/X95sa66T3q3MQZOg V1PhzbVSpfrl6WYwHKYWjhRCyj5H4FQONpF1tT3B6jUg0KYo2UBVIS5yw mii58piSiz+Uahyi+TsK8MPKCV8BArmWS62de0E6NnCQLu//85jrIHIv1 cF/dGNTIaxtmafiF1WUn3cbJ3U0ijncDLjHswoyJhF2COsF3Ulgnb8Rb5 DxbH0G+h9WSGzV6RglLDsYHQh0XYs++5MIbSYF9FFDnY1PGHVcA8PRHOR A==; X-CSE-ConnectionGUID: s8pYfcSPSziY9bzRKRCWIQ== X-CSE-MsgGUID: UNJErN/4TTukdntAGOjwpQ== X-IronPort-AV: E=McAfee;i="6800,10657,11986"; a="5406972" X-IronPort-AV: E=Sophos;i="6.29,78,1794902400"; d="scan'208";a="5406972" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2026 10:36:20 -0800 X-CSE-ConnectionGUID: EWp8CwshR/iw8JZIpW0DVw== X-CSE-MsgGUID: JxwF1JCpTmmQ/MvjWoVPFg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,78,1794902400"; d="scan'208";a="14435480" Received: from alekseim-mobl.ger.corp.intel.com (HELO localhost) ([10.245.245.10]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2026 10:36:16 -0800 Date: Fri, 4 Dec 2026 20:36:14 +0200 From: Andy Shevchenko To: Rupesh Majhi Cc: Andy Shevchenko , Antoniu Miclaus , David Lechner , Eddie James , Jonathan Cameron , Lucas Stankus , Marcelo Schmitt , Michael Hennerich , Nuno =?iso-8859-1?Q?S=E1?= , 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: References: <20261204181105.150419-1-zoone.rupert@gmail.com> 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-Disposition: inline In-Reply-To: <20261204181105.150419-1-zoone.rupert@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo 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. -- With Best Regards, Andy Shevchenko