From: Rupesh Majhi <zoone.rupert@gmail.com>
To: "Andy Shevchenko" <andy@kernel.org>,
"Antoniu Miclaus" <antoniu.miclaus@analog.com>,
"David Lechner" <dlechner@baylibre.com>,
"Eddie James" <eajames@linux.ibm.com>,
"Jonathan Cameron" <jic23@kernel.org>,
"Jonathan Corbet" <corbet@lwn.net>,
"Lucas Stankus" <lucas.p.stankus@gmail.com>,
"Marcelo Schmitt" <marcelo.schmitt@analog.com>,
"Michael Hennerich" <Michael.Hennerich@analog.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Petre Rodan" <petre.rodan@subdimension.ro>,
"Randy Dunlap" <rdunlap@infradead.org>,
"Shuah Khan" <skhan@linuxfoundation.org>
Cc: linux@analog.com, linux-doc@vger.kernel.org,
linux-iio@vger.kernel.org, Rupesh Majhi <zoone.rupert@gmail.com>,
Andy Shevchenko <andriy.shevchenko@intel.com>
Subject: [PATCH v4 7/7] iio: pressure: dps310: add debugfs register access
Date: Sun, 6 Dec 2026 12:03:26 +0200 [thread overview]
Message-ID: <20261206100326.45569-8-zoone.rupert@gmail.com> (raw)
In-Reply-To: <20261206100326.45569-1-zoone.rupert@gmail.com>
Expose the registers through direct_reg_access with the core regmap
helper, so the configuration and status registers can be looked at
through the driver's regmap instead of around it on the bus.
The access is not serialised with the driver beyond the regmap lock.
Reading INT_STS or a result register clears what the driver waits for,
as it would on the bus.
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Rupesh Majhi <zoone.rupert@gmail.com>
---
drivers/iio/pressure/dps310.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/iio/pressure/dps310.c b/drivers/iio/pressure/dps310.c
index 74d4111b5e29..ae132c188c9c 100644
--- a/drivers/iio/pressure/dps310.c
+++ b/drivers/iio/pressure/dps310.c
@@ -1557,6 +1557,7 @@ static const struct iio_info dps310_info = {
.write_raw = dps310_write_raw,
.hwfifo_set_watermark = dps310_hwfifo_set_watermark,
.hwfifo_flush_to_buffer = dps310_hwfifo_flush,
+ .debugfs_reg_access = iio_access_debugfs_regmap_reg,
};
static int dps310_probe(struct i2c_client *client)
--
2.43.0
prev parent reply other threads:[~2026-12-06 10:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-06 10:03 [PATCH v4 0/7] iio: debugfs register access through regmap in the core Rupesh Majhi
2026-12-06 10:03 ` [PATCH v4 1/7] iio: core: move iio_get_debugfs_dentry() kernel-doc to the C file Rupesh Majhi
2026-12-06 10:03 ` [PATCH v4 2/7] iio: core: add iio_access_debugfs_regmap_reg() Rupesh Majhi
2026-12-06 10:03 ` [PATCH v4 3/7] iio: accel: adxl313: use iio_access_debugfs_regmap_reg() Rupesh Majhi
2026-12-06 10:03 ` [PATCH v4 4/7] iio: accel: adxl372: " Rupesh Majhi
2026-12-06 10:03 ` [PATCH v4 5/7] iio: accel: bma220: " Rupesh Majhi
2026-12-06 10:03 ` [PATCH v4 6/7] iio: adc: ina2xx-adc: " Rupesh Majhi
2026-12-06 10:03 ` Rupesh Majhi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261206100326.45569-8-zoone.rupert@gmail.com \
--to=zoone.rupert@gmail.com \
--cc=Michael.Hennerich@analog.com \
--cc=andriy.shevchenko@intel.com \
--cc=andy@kernel.org \
--cc=antoniu.miclaus@analog.com \
--cc=corbet@lwn.net \
--cc=dlechner@baylibre.com \
--cc=eajames@linux.ibm.com \
--cc=jic23@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux@analog.com \
--cc=lucas.p.stankus@gmail.com \
--cc=marcelo.schmitt@analog.com \
--cc=nuno.sa@analog.com \
--cc=petre.rodan@subdimension.ro \
--cc=rdunlap@infradead.org \
--cc=skhan@linuxfoundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox