Skip to content
Commit 0a0fb0e6 authored by Petre Rodan's avatar Petre Rodan Committed by Jonathan Cameron
Browse files

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: default avatarAndreas Klinger <ak@it-klinger.de>
Signed-off-by: default avatarAndreas Klinger <ak@it-klinger.de>
Signed-off-by: default avatarPetre Rodan <petre.rodan@subdimension.ro>
Link: https://lore.kernel.org/r/20231229092445.30180-6-petre.rodan@subdimension.ro


Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 9e65506c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment