diff options
author | Petre Rodan <petre.rodan@subdimension.ro> | 2023-12-29 11:24:33 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-01-23 22:06:53 +0000 |
commit | 0a0fb0e63e5178905e9fdba8195686b4e2de26c4 (patch) | |
tree | 2d3266c0cf7b77e167fd171111034d2da7026383 /io_uring/kbuf.h | |
parent | 9e65506ca9c7ff716c8441a33417820ad61d3a16 (diff) |
iio: pressure: mprls0025pa improve driver error resilience
Improve driver error resilience by ignoring the measurement if any of
the 3 error flags gets set while interacting with the sensor.
Based on the datasheet, in table 14 on page 14, the status byte
contains:
bit 5 busy flag - 1 if device is busy
bit 2 memory integrity/error flag - 1 if integrity test failed
bit 0 math saturation - 1 if internal math saturation has occurred
Co-developed-by: Andreas Klinger <ak@it-klinger.de>
Signed-off-by: Andreas Klinger <ak@it-klinger.de>
Signed-off-by: Petre Rodan <petre.rodan@subdimension.ro>
Link: https://lore.kernel.org/r/20231229092445.30180-6-petre.rodan@subdimension.ro
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'io_uring/kbuf.h')
0 files changed, 0 insertions, 0 deletions