staging: IIO: IMU: ADIS16400: Add delay after self test
authorMichael Hennerich <michael.hennerich@analog.com>
Mon, 21 Mar 2011 15:44:36 +0000 (16:44 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 5 Apr 2011 19:37:10 +0000 (12:37 -0700)
Add delay after self test to satisfy timing requirements.
Increase start-up delay.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
CC: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/imu/adis16400.h
drivers/staging/iio/imu/adis16400_core.c

index 6ff33e1ad8c19b871dd2897851ee5d3aa22c49f5..90e90f0e65e885b26665ba1e5b06d38deb2d5144 100644 (file)
@@ -17,7 +17,8 @@
 #ifndef SPI_ADIS16400_H_
 #define SPI_ADIS16400_H_
 
-#define ADIS16400_STARTUP_DELAY        220 /* ms */
+#define ADIS16400_STARTUP_DELAY        290 /* ms */
+#define ADIS16400_MTEST_DELAY 90 /* ms */
 
 #define ADIS16400_READ_REG(a)    a
 #define ADIS16400_WRITE_REG(a) ((a) | 0x80)
index 1007e3ded92fe08b17e1fed6857ee30fafc87814..633b3a4e42891e8c04dc170bf0162ba5b7c3b822 100644 (file)
@@ -373,7 +373,7 @@ static int adis16400_self_test(struct device *dev)
                dev_err(dev, "problem starting self test");
                goto err_ret;
        }
-
+       msleep(ADIS16400_MTEST_DELAY);
        adis16400_check_status(dev);
 
 err_ret: