diff options
| author | Lorenzo Bianconi <[email protected]> | 2017-08-29 11:45:11 +0000 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2017-09-03 16:39:39 +0000 |
| commit | c65e3d6ef4bfdc4c8460509f08507cf7dc026974 (patch) | |
| tree | dc3f17d3e73e265983a2a31d8f138d90852de95d /tools/lib/api/fs/tracing_path.c | |
| parent | iio: adc: ti-ads1015: fix comparator polarity setting (diff) | |
| download | kernel-c65e3d6ef4bfdc4c8460509f08507cf7dc026974.tar.gz kernel-c65e3d6ef4bfdc4c8460509f08507cf7dc026974.zip | |
iio: magnetometer: st_magn: fix drdy line configuration for LIS3MDL
Data-ready line in LIS3MDL is routed to drdy pin and it is not possible
to select a different INT pin. st_sensors_set_dataready_irq() assumes
that if drdy int address is not exported in register map, irq trigger
is not supported by the sensor and hw_irq_trigger is always false.
Based on this configuration st_sensors_irq_thread does not consume
generated interrupt causing an unhandled irq.
Fix this taking into account status register address in
st_sensors_set_dataready_irq()
Fixes: 90efe0556292 (iio: st_sensors: harden interrupt handling)
Signed-off-by: Lorenzo Bianconi <[email protected]>
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/lib/api/fs/tracing_path.c')
0 files changed, 0 insertions, 0 deletions
