From 8ffc4e72131eb0103abf2be382b56f4fac0123c8 Mon Sep 17 00:00:00 2001 From: Michael Hennerich Date: Fri, 29 Apr 2011 14:17:02 +0200 Subject: [PATCH] IIO: GYRO: ADXRS450: enforce sequential transfer delay of at least 0.1ms Signed-off-by: Michael Hennerich Acked-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- drivers/staging/iio/gyro/adxrs450_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/iio/gyro/adxrs450_core.c b/drivers/staging/iio/gyro/adxrs450_core.c index 5671276580f0..d73acff43846 100644 --- a/drivers/staging/iio/gyro/adxrs450_core.c +++ b/drivers/staging/iio/gyro/adxrs450_core.c @@ -116,6 +116,7 @@ static int adxrs450_spi_write_reg_16(struct device *dev, if (ret) dev_err(&st->us->dev, "problem while writing 16 bit register 0x%02x\n", reg_address); + msleep(1); /* enforce sequential transfer delay 0.1ms */ mutex_unlock(&st->buf_lock); return ret; } -- 2.39.5