diff options
author | Vipin Kumar <vipin.kumar@st.com> | 2012-10-09 16:14:48 +0530 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-11-15 15:37:47 +0200 |
commit | 928aa2aeb7269292ca1e3d0e5e2e5d08af13da3d (patch) | |
tree | 7ae91cd3713b39ea4361243bf1b83a37c67c78c9 /drivers/mtd/nand | |
parent | 605add7db6e84ff78f7ca96541c0880f0166e387 (diff) | |
download | blackbird-obmc-linux-928aa2aeb7269292ca1e3d0e5e2e5d08af13da3d.tar.gz blackbird-obmc-linux-928aa2aeb7269292ca1e3d0e5e2e5d08af13da3d.zip |
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>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r-- | drivers/mtd/nand/fsmc_nand.c | 2 |
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, dma_async_issue_pending(chan); ret = - wait_for_completion_interruptible_timeout(&host->dma_access_complete, + wait_for_completion_timeout(&host->dma_access_complete, msecs_to_jiffies(3000)); if (ret <= 0) { chan->device->device_control(chan, DMA_TERMINATE_ALL, 0); |