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