summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorFrancesco Lavra <flavra@baylibre.com>2026-01-19 11:23:16 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2026-01-22 20:53:18 +0000
commitc1b14015224cfcccd5356333763f2f4f401bd810 (patch)
tree4eb70c08c952ad1e333007d253791d2209763944 /tools/perf/scripts/python/stackcollapse.py
parentb0913a44a9ae02f498682e6010b57f773e44f845 (diff)
downloadlinux-c1b14015224cfcccd5356333763f2f4f401bd810.tar.gz
linux-c1b14015224cfcccd5356333763f2f4f401bd810.zip
iio: accel: adxl380: Avoid reading more entries than present in FIFO
The interrupt handler reads FIFO entries in batches of N samples, where N is the number of scan elements that have been enabled. However, the sensor fills the FIFO one sample at a time, even when more than one channel is enabled. Therefore,the number of entries reported by the FIFO status registers may not be a multiple of N; if this number is not a multiple, the number of entries read from the FIFO may exceed the number of entries actually present. To fix the above issue, round down the number of FIFO entries read from the status registers so that it is always a multiple of N. Fixes: df36de13677a ("iio: accel: add ADXL380 driver") Signed-off-by: Francesco Lavra <flavra@baylibre.com> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions