aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2010-09-07 11:37:52 -0400
committerGrant Likely <grant.likely@secretlab.ca>2010-09-08 12:00:15 -0400
commit9d8f86b56093d7b06d81d4063d5b9a4cbf887e75 (patch)
treecb08f02760fb6cc5c34f7b1bdbb54aad0e001a70 /drivers/spi
parentd2a787fc57142ba8757142f1569603b4d0b714a4 (diff)
spi/spi_s3c64xx: Increase dead reckoning time in wait_for_xfer()
For small transfers at high speeds the expected transfer time can easily be well under 1ms, causing the delay in wait_for_xfer() to be only the dead reckoning fudge factor of 5ms currently included. Experiments on some of my systems shows that this is marginal for some transfers so double it to 10ms. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Jassi Brar <jassi.brar@samsung.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi_s3c64xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi_s3c64xx.c b/drivers/spi/spi_s3c64xx.c
index a4c480551e5f..8130f02dc466 100644
--- a/drivers/spi/spi_s3c64xx.c
+++ b/drivers/spi/spi_s3c64xx.c
@@ -320,7 +320,7 @@ static int wait_for_xfer(struct s3c64xx_spi_driver_data *sdd,
320 320
321 /* millisecs to xfer 'len' bytes @ 'cur_speed' */ 321 /* millisecs to xfer 'len' bytes @ 'cur_speed' */
322 ms = xfer->len * 8 * 1000 / sdd->cur_speed; 322 ms = xfer->len * 8 * 1000 / sdd->cur_speed;
323 ms += 5; /* some tolerance */ 323 ms += 10; /* some tolerance */
324 324
325 if (dma_mode) { 325 if (dma_mode) {
326 val = msecs_to_jiffies(ms) + 10; 326 val = msecs_to_jiffies(ms) + 10;