From: Vipin Kumar Date: Tue, 9 Oct 2012 10:44:48 +0000 (+0530) Subject: mtd: fsmc_nand: modify the wait to uninterruptible X-Git-Tag: next-20121112~69^2~14 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9ad6f7bf270912cd617b12fbcd30374a3754d0ed;p=karo-tx-linux.git 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 Reviewed-by: Linus Walleij Signed-off-by: Artem Bityutskiy --- 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);