From: Seokju Yoon Date: Fri, 27 Nov 2015 08:17:06 +0000 (+0900) Subject: DMA: fixed time loop code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8daf5c0051a9966d310ca2bd2e0396771771e94e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git DMA: fixed time loop code Change-Id: I53e9216c0e015709219fb91f1b0cc36a716f13f3 Signed-off-by: Seokju Yoon --- 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)) { \