diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2011-03-21 11:44:36 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-04-05 15:37:10 -0400 |
commit | c59c95ce6ace6d256401fc3a3648a95375ef4e63 (patch) | |
tree | 6ffcb7a0636b3bff8ac22f4fa52a88751bbf6aa0 /drivers/staging | |
parent | fc5b85b0ad1f9da948e4d683710081a9bda357cb (diff) |
staging: IIO: IMU: ADIS16400: Add delay after self test
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/iio/imu/adis16400.h | 3 | ||||
-rw-r--r-- | drivers/staging/iio/imu/adis16400_core.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/iio/imu/adis16400.h b/drivers/staging/iio/imu/adis16400.h index 6ff33e1ad8c..90e90f0e65e 100644 --- a/drivers/staging/iio/imu/adis16400.h +++ b/drivers/staging/iio/imu/adis16400.h | |||
@@ -17,7 +17,8 @@ | |||
17 | #ifndef SPI_ADIS16400_H_ | 17 | #ifndef SPI_ADIS16400_H_ |
18 | #define SPI_ADIS16400_H_ | 18 | #define SPI_ADIS16400_H_ |
19 | 19 | ||
20 | #define ADIS16400_STARTUP_DELAY 220 /* ms */ | 20 | #define ADIS16400_STARTUP_DELAY 290 /* ms */ |
21 | #define ADIS16400_MTEST_DELAY 90 /* ms */ | ||
21 | 22 | ||
22 | #define ADIS16400_READ_REG(a) a | 23 | #define ADIS16400_READ_REG(a) a |
23 | #define ADIS16400_WRITE_REG(a) ((a) | 0x80) | 24 | #define ADIS16400_WRITE_REG(a) ((a) | 0x80) |
diff --git a/drivers/staging/iio/imu/adis16400_core.c b/drivers/staging/iio/imu/adis16400_core.c index 1007e3ded92..633b3a4e428 100644 --- a/drivers/staging/iio/imu/adis16400_core.c +++ b/drivers/staging/iio/imu/adis16400_core.c | |||
@@ -373,7 +373,7 @@ static int adis16400_self_test(struct device *dev) | |||
373 | dev_err(dev, "problem starting self test"); | 373 | dev_err(dev, "problem starting self test"); |
374 | goto err_ret; | 374 | goto err_ret; |
375 | } | 375 | } |
376 | 376 | msleep(ADIS16400_MTEST_DELAY); | |
377 | adis16400_check_status(dev); | 377 | adis16400_check_status(dev); |
378 | 378 | ||
379 | err_ret: | 379 | err_ret: |