summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPetre Rodan <petre.rodan@subdimension.ro>2026-01-14 18:55:39 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2026-01-16 17:40:41 +0000
commit4edab7b08783f06679de0d24318d92ffc1dfd537 (patch)
treea3e2d2e7bb3e018f87632b8a20a4707be56f01fb /tools/perf/scripts/python
parentcf322f806d83b3e221b2b72550c4132b87fa15d9 (diff)
downloadlinux-4edab7b08783f06679de0d24318d92ffc1dfd537.tar.gz
linux-4edab7b08783f06679de0d24318d92ffc1dfd537.zip
iio: pressure: mprls0025pa: move memset to core
Move memset() from the bus specific code into core. Zeroing out the buffer is performed because the sensor has noticeable latch-up sensitivity and in some cases it clamps the MISO signal to GND in sync with SCLK [1]. A raw conversion of zero is out of bounds since valid values have to be between output_min and output_max (and the smallest output_min is 2.5% of 2^24 = 419430). The user is expected to discard out of bounds pressure values. Given the fact that we can't follow the behaviour of all SPI controllers when faced to this clamping of an output signal, a raw conversion of zero is used as an early warning in case the low level SPI API reacts unexpectedly. Link: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1588325/am3358-spi-tx-data-corruption [1] Signed-off-by: Petre Rodan <petre.rodan@subdimension.ro> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions