aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorPaul Cercueil <[email protected]>2015-05-15 17:18:37 +0200
committerJonathan Cameron <[email protected]>2015-05-16 11:00:50 +0100
commit9df560350c90f3d3909fe653399b3584c9a17b61 (patch)
tree1cbb294399294c3ef35dbd44a4059c6dde2e7165 /tools/perf/scripts/python/export-to-postgresql.py
parentc2a8b623a089d52c199e305e7905829907db8ec8 (diff)
iio: adis16400: Fix burst mode
There are a few issues with the burst mode support. For one we don't setup the rx buffer, so the buffer will never be filled and all samples will read as the zero. Furthermore the tx buffer has the wrong type, which means the driver sends the wrong command and not the right data is returned. The final issue is that in burst mode all channels are transferred. Hence the length of the transfer length should be the number of hardware channels * 2 bytes. Currently the driver uses indio_dev->scan_bytes for this. But if the timestamp channel is enabled the scan_bytes will be larger than the burst length. Fix this by just calculating the burst length based on the number of hardware channels. Signed-off-by: Paul Cercueil <[email protected]> Signed-off-by: Lars-Peter Clausen <[email protected]> Fixes: 5eda3550a3cc ("staging:iio:adis16400: Preallocate transfer message") Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions