diff options
author | 2010-06-04 17:19:54 +0800 | |
---|---|---|
committer | 2010-06-18 15:16:20 -0700 | |
commit | 00ae79463e026b8bc45c93a87aadf118f04069e0 (patch) | |
tree | 7f6c1a892e732606834dac4b83fbaaaee0b7b24a /drivers/staging/iio/accel/adis16209_core.c | |
parent | Staging: iio: adis16400: fix some minor issues and clean-up (diff) | |
download | linux-00ae79463e026b8bc45c93a87aadf118f04069e0.tar.gz linux-00ae79463e026b8bc45c93a87aadf118f04069e0.tar.bz2 linux-00ae79463e026b8bc45c93a87aadf118f04069e0.zip |
Staging: iio: adis16209/220/240/350: tuning spi delay to make hardware more stable
Signed-off-by: Barry Song <21cnbao@gmail.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio/accel/adis16209_core.c')
-rw-r--r-- | drivers/staging/iio/accel/adis16209_core.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/staging/iio/accel/adis16209_core.c b/drivers/staging/iio/accel/adis16209_core.c index b3acdc37e354..c696160fc2a0 100644 --- a/drivers/staging/iio/accel/adis16209_core.c +++ b/drivers/staging/iio/accel/adis16209_core.c @@ -76,11 +76,13 @@ static int adis16209_spi_write_reg_16(struct device *dev, .bits_per_word = 8, .len = 2, .cs_change = 1, + .delay_usecs = 30, }, { .tx_buf = st->tx + 2, .bits_per_word = 8, .len = 2, .cs_change = 1, + .delay_usecs = 30, }, }; @@ -120,13 +122,13 @@ static int adis16209_spi_read_reg_16(struct device *dev, .bits_per_word = 8, .len = 2, .cs_change = 1, - .delay_usecs = 20, + .delay_usecs = 30, }, { .rx_buf = st->rx, .bits_per_word = 8, .len = 2, .cs_change = 1, - .delay_usecs = 20, + .delay_usecs = 30, }, }; |