[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220207090443.3710425-1-massimo.toscanelli@leica-geosystems.com>
Date: Mon, 7 Feb 2022 09:04:41 +0000
From: Massimo Toscanelli <massimo.toscanelli@...ca-geosystems.com>
To: linux-kernel@...r.kernel.org
Cc: jic23@...nel.org, lars@...afoo.de, linus.walleij@...aro.org,
caihuoqing@...du.com, aardelean@...iqon.com,
andy.shevchenko@...il.com, hdegoede@...hat.com,
Qing-wu.Li@...ca-geosystems.com.cn, stephan@...hold.net,
linux-iio@...r.kernel.org,
bsp-development.geo@...ca-geosystems.com,
Massimo Toscanelli <massimo.toscanelli@...ca-geosystems.com>
Subject: [PATCH RESEND 0/2] Solve data access delay of ST sensors
Reading raw data from ST sensors implies enabling the device and
waiting for its activation.
This leads to significant delays every time the data is fetched,
especially if the operation has to be repeated.
The introduction of the 'always_on' flag as sysfs attribute can
solve this issue, by allowing the user to keep the device enabled
during the entire read session and therefore, to perform a much
faster data access.
This implementation has been already tested on a ST magnetometer.
I forgot to add maintainers as recepients, so I resend the patches.
Massimo Toscanelli (2):
iio: st_sensors: add always_on flag
iio: st_magn_core.c: activate always_on attribute
.../iio/common/st_sensors/st_sensors_core.c | 85 +++++++++++++++++--
drivers/iio/magnetometer/st_magn_core.c | 2 +
include/linux/iio/common/st_sensors.h | 14 +++
3 files changed, 96 insertions(+), 5 deletions(-)
base-commit: dcb85f85fa6f142aae1fe86f399d4503d49f2b60
--
2.25.1
Powered by blists - more mailing lists