mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] Solve data access delay of ST sensors
@ 2022-02-04 19:25 Massimo Toscanelli
  2022-02-04 19:25 ` [PATCH 1/2] iio: st_sensors: add always_on flag Massimo Toscanelli
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Massimo Toscanelli @ 2022-02-04 19:25 UTC (permalink / raw)
  To: linux-kernel; +Cc: bsp-development.geo

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.

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-02-11 15:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-04 19:25 [PATCH 0/2] Solve data access delay of ST sensors Massimo Toscanelli
2022-02-04 19:25 ` [PATCH 1/2] iio: st_sensors: add always_on flag Massimo Toscanelli
2022-02-04 19:25 ` [PATCH 2/2] iio: st_magn_core.c: activate always_on attribute Massimo Toscanelli
2022-02-07  9:04 ` [PATCH RESEND 0/2] Solve data access delay of ST sensors Massimo Toscanelli
2022-02-07  9:04   ` [PATCH 1/2] iio: st_sensors: add always_on flag Massimo Toscanelli
2022-02-11  1:10     ` Linus Walleij
2022-02-07  9:04   ` [PATCH 2/2] iio: st_magn_core.c: activate always_on attribute Massimo Toscanelli
2022-02-07 13:58   ` [PATCH RESEND 0/2] Solve data access delay of ST sensors Jonathan Cameron
2022-02-11  1:12     ` Linus Walleij
2022-02-11 15:14       ` TOSCANELLI Massimo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®