From 8daf5c0051a9966d310ca2bd2e0396771771e94e Mon Sep 17 00:00:00 2001 From: Seokju Yoon Date: Fri, 27 Nov 2015 17:17:06 +0900 Subject: [PATCH] DMA: fixed time loop code Change-Id: I53e9216c0e015709219fb91f1b0cc36a716f13f3 Signed-off-by: Seokju Yoon --- drivers/dma/pl330.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index 287ee47546e6..e5539f902bd0 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -252,7 +252,7 @@ enum pl330_byteswap { /* Use this _only_ to wait on transient states */ #define UNTIL(t, s) do { \ - unsigned long timeout = msecs_to_jiffies(5); \ + unsigned long timeout = jiffies + msecs_to_jiffies(5); \ bool timeout_flag = true; \ do { \ if (_state(t) & (s)) { \ -- 2.20.1