lkml.org 
[lkml]   [2011]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[057/105] staging: IIO: IMU: ADIS16400: Add delay after self test
    2.6.38-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: Michael Hennerich <michael.hennerich@analog.com>

    commit c59c95ce6ace6d256401fc3a3648a95375ef4e63 upstream.

    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>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    drivers/staging/iio/imu/adis16400.h | 3 ++-
    drivers/staging/iio/imu/adis16400_core.c | 2 +-
    2 files changed, 3 insertions(+), 2 deletions(-)

    --- a/drivers/staging/iio/imu/adis16400.h
    +++ b/drivers/staging/iio/imu/adis16400.h
    @@ -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)
    --- 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 de
    dev_err(dev, "problem starting self test");
    goto err_ret;
    }
    -
    + msleep(ADIS16400_MTEST_DELAY);
    adis16400_check_status(dev);

    err_ret:



    \
     
     \ /
      Last update: 2011-04-12 16:53    [W:0.019 / U:63.556 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site