aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi_tegra.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/spi_tegra.c')
-rw-r--r--drivers/spi/spi_tegra.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/spi/spi_tegra.c b/drivers/spi/spi_tegra.c
index 0385fde202a6..bb7df02a5472 100644
--- a/drivers/spi/spi_tegra.c
+++ b/drivers/spi/spi_tegra.c
@@ -338,15 +338,15 @@ static void tegra_spi_rx_dma_complete(struct tegra_dma_req *req)
338 338
339 spin_lock_irqsave(&tspi->lock, flags); 339 spin_lock_irqsave(&tspi->lock, flags);
340 340
341 if (timeout >= 1000)
342 m->status = -EIO;
343
344 val = spi_tegra_readl(tspi, SLINK_STATUS); 341 val = spi_tegra_readl(tspi, SLINK_STATUS);
345 val |= SLINK_RDY; 342 val |= SLINK_RDY;
346 spi_tegra_writel(tspi, val, SLINK_STATUS); 343 spi_tegra_writel(tspi, val, SLINK_STATUS);
347 344
348
349 m = list_first_entry(&tspi->queue, struct spi_message, queue); 345 m = list_first_entry(&tspi->queue, struct spi_message, queue);
346
347 if (timeout >= 1000)
348 m->status = -EIO;
349
350 spi = m->state; 350 spi = m->state;
351 351
352 tspi->cur_pos += spi_tegra_drain_rx_fifo(tspi, tspi->cur); 352 tspi->cur_pos += spi_tegra_drain_rx_fifo(tspi, tspi->cur);