linux-stable/drivers/iio/imu
Paul Cercueil 9df560350c 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 <paul.cercueil@analog.com>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Fixes: 5eda3550a3 ("staging:iio:adis16400: Preallocate transfer message")
Cc: <stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2015-05-16 11:00:50 +01:00
..
inv_mpu6050 Merge 4.0-rc7 into staging-next 2015-04-07 11:03:02 +02:00
adis.c
adis16400.h iio: adis16400: Compute the scan mask from channel indices 2015-05-16 10:58:36 +01:00
adis16400_buffer.c iio: adis16400: Fix burst mode 2015-05-16 11:00:50 +01:00
adis16400_core.c iio: adis16400: Compute the scan mask from channel indices 2015-05-16 10:58:36 +01:00
adis16480.c iio: imu: adis16480 switch sampling frequency attr to core support 2014-07-07 10:00:59 +01:00
adis_buffer.c
adis_trigger.c iio: imu: Use iio_trigger_get for indio_dev->trig assignment 2015-03-28 13:51:40 +00:00
Kconfig iio: imu: kmx61: Add support for data ready triggers 2014-12-12 13:49:30 +00:00
kmx61.c Merge 4.0-rc7 into staging-next 2015-04-07 11:03:02 +02:00
Makefile iio: imu: Add support for Kionix KMX61 sensor 2014-12-12 13:43:54 +00:00