aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVipin Kumar <vipin.kumar@st.com>2012-10-09 06:44:48 -0400
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-11-15 08:37:47 -0500
commit928aa2aeb7269292ca1e3d0e5e2e5d08af13da3d (patch)
tree7ae91cd3713b39ea4361243bf1b83a37c67c78c9
parent605add7db6e84ff78f7ca96541c0880f0166e387 (diff)
mtd: fsmc_nand: modify the wait to uninterruptible
Interruptible wait caused trouble in fsmc hardware state machine if the application was killed abruptly. To make fsmc operation safe turn wait in to un-interruptible. Signed-off-by: Vipin Kumar <vipin.kumar@st.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
-rw-r--r--drivers/mtd/nand/fsmc_nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/fsmc_nand.c b/drivers/mtd/nand/fsmc_nand.c
index a5bc3d5511e3..82c0371f71e8 100644
--- a/drivers/mtd/nand/fsmc_nand.c
+++ b/drivers/mtd/nand/fsmc_nand.c
@@ -601,7 +601,7 @@ static int dma_xfer(struct fsmc_nand_data *host, void *buffer, int len,
601 dma_async_issue_pending(chan); 601 dma_async_issue_pending(chan);
602 602
603 ret = 603 ret =
604 wait_for_completion_interruptible_timeout(&host->dma_access_complete, 604 wait_for_completion_timeout(&host->dma_access_complete,
605 msecs_to_jiffies(3000)); 605 msecs_to_jiffies(3000));
606 if (ret <= 0) { 606 if (ret <= 0) {
607 chan->device->device_control(chan, DMA_TERMINATE_ALL, 0); 607 chan->device->device_control(chan, DMA_TERMINATE_ALL, 0);