[PULL][Xenial]Fix multi-channel reads for IIO based STM accelerometer and pressure sensor drivers

Shrirang Bagul shrirang.bagul at canonical.com
Mon Mar 27 15:09:21 UTC 2017

BugLink: http://bugs.launchpad.net/bugs/1676356

Multi-channel reads from IIO based st_sensors (st_pressure and st_accel)
drivers fail to report correct results through the devfs (/dev/iio:deviceX)

Dell IoT gateways have sensors which use the IIO kernel drivers to read values
from STM accelerometer (lng2dm) and pressure sensor (lps22hb). Pressure,
temperature and acceleration channel values differ when read from devfs and
sysfs with the present drivers in Ubuntu Xenial kernel.

These patches have been tested in Dell IoT gateways and the impact
is limited to STM's st_accel and st_pressure sensors.

The following changes since commit 05022128a513a344d156de5bffd88e3dda4c8da6:

  UBUNTU: Ubuntu-4.4.0-66.87 (2017-03-03 13:13:10 +0100)

are available in the git repository at:

  git://kernel.ubuntu.com/snb/ubuntu-xenial.git x-master-sensors

for you to fetch changes up to 0a5f54316cf0fff107f4cadc4353f7a81501b081:

  iio: st_pressure: Fix data sign (2017-03-27 22:09:39 +0800)

Gregor Boirie (4):
      iio:st_sensors: emulate SMBus block read if needed
      iio:st_sensors: align on storagebits boundaries
      iio:st_pressure: temperature triggered buffering
      iio:st_pressure: clean useless static channel initializers

Linus Walleij (2):
      iio: st_sensors: simplify buffer address handling
      iio: st_sensors: read each channel individually

Marcin Niestroj (1):
      iio: st_pressure: Fix data sign

Sean Nyekjaer (1):
      iio: core: added support for IIO_VAL_INT

 drivers/iio/common/st_sensors/st_sensors_buffer.c | 86 +++++------------------
 drivers/iio/common/st_sensors/st_sensors_core.c   |  2 +-
 drivers/iio/common/st_sensors/st_sensors_i2c.c    |  4 +-
 drivers/iio/industrialio-core.c                   |  9 +++
 drivers/iio/pressure/st_pressure_core.c           | 42 +++++------
 5 files changed, 48 insertions(+), 95 deletions(-)

More information about the kernel-team mailing list