Skip to content

st_lsm6dsx: do not access active-low/open-drain if not supported

Lorenzo Bianconi linux-iio 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3iio: imu: st_lsm6dsx: move irq related definitions in irq_configdrivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c+130 -801 reply
2/3iio: imu: st_lsm6dsx: do not access active-low/open-drain regs if not supporteddrivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c+67 -122 replies
3/3iio: imu: st_lsm6dsx: add sanity check for read_fifo pointerdrivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c+6 -01 reply

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchMartin Kepplinger
1/3T-b
2/3T-b
3/3T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] st_lsm6dsx: do not access active-low/open-drain if not supported

Move active low and open drain register definitions in hw_settings register map in order to avoid to access them if the sensor does not support them.
Group irq related definition in irq_config structure in st_lsm6dsx_settings.

@Jonathan: I post this series now since in this way Bobby can test it and maybe you want to apply it on top of togreg branch. If you prefer to add it on testing branch I can rebase it ontop of Sean's series.

Lorenzo Bianconi (3):
iio: imu: st_lsm6dsx: move irq related definitions in irq_config
iio: imu: st_lsm6dsx: do not access active-low/open-drain regs if not
supported
iio: imu: st_lsm6dsx: add sanity check for read_fifo pointer

 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h       |  17 +-
 .../iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c    |  35 ++-
 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c  | 243 ++++++++++++------
 3 files changed, 203 insertions(+), 92 deletions(-)
Signature · 1 line
2.21.0