diff options
author | Lars-Peter Clausen | 2015-05-15 17:18:38 +0200 |
---|---|---|
committer | Jonathan Cameron | 2015-05-16 12:01:20 +0200 |
commit | d046ba268adb87c7780494ecf897cbafbf100d57 (patch) | |
tree | 5da67104077407d418a7d921b96c34767b8fb724 /drivers/iio/imu/adis16400_core.c | |
parent | iio: adis16400: Fix burst mode (diff) | |
download | kernel-qcow2-linux-d046ba268adb87c7780494ecf897cbafbf100d57.tar.gz kernel-qcow2-linux-d046ba268adb87c7780494ecf897cbafbf100d57.tar.xz kernel-qcow2-linux-d046ba268adb87c7780494ecf897cbafbf100d57.zip |
iio: adis16400: Fix burst transfer for adis16448
The adis16448, unlike the other chips in this family, in addition to the
hardware channels also sends out the DIAG_STAT register in burst mode
before them. Handle that case by skipping over the first 2 bytes before we
pass the received data to the buffer.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Fixes: 76ada52f7f5d ("iio:adis16400: Add support for the adis16448")
Cc: <stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/imu/adis16400_core.c')
-rw-r--r-- | drivers/iio/imu/adis16400_core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/iio/imu/adis16400_core.c b/drivers/iio/imu/adis16400_core.c index 7b06e058b000..2fd68f2219a7 100644 --- a/drivers/iio/imu/adis16400_core.c +++ b/drivers/iio/imu/adis16400_core.c @@ -778,7 +778,8 @@ static struct adis16400_chip_info adis16400_chips[] = { .channels = adis16448_channels, .num_channels = ARRAY_SIZE(adis16448_channels), .flags = ADIS16400_HAS_PROD_ID | - ADIS16400_HAS_SERIAL_NUMBER, + ADIS16400_HAS_SERIAL_NUMBER | + ADIS16400_BURST_DIAG_STAT, .gyro_scale_micro = IIO_DEGREE_TO_RAD(10000), /* 0.01 deg/s */ .accel_scale_micro = IIO_G_TO_M_S_2(833), /* 1/1200 g */ .temp_scale_nano = 73860000, /* 0.07386 C */ |