projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9aa3821
)
drm/exynos/decon: fix disable clocks order
author
Andrzej Hajda
<a.hajda@samsung.com>
Thu, 11 Feb 2016 11:25:04 +0000
(12:25 +0100)
committer
Inki Dae
<daeinki@gmail.com>
Tue, 1 Mar 2016 14:37:15 +0000
(23:37 +0900)
Decon requires that clocks should be disabled in reverse order. Otherwise
system hangs.
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos5433_drm_decon.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c
b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c
index
107224a
..
162ab93
100644
(file)
--- a/
drivers/gpu/drm/exynos/exynos5433_drm_decon.c
+++ b/
drivers/gpu/drm/exynos/exynos5433_drm_decon.c
@@
-580,9
+580,9
@@
out:
static int exynos5433_decon_suspend(struct device *dev)
{
struct decon_context *ctx = dev_get_drvdata(dev);
- int i;
+ int i
= ARRAY_SIZE(decon_clks_name)
;
-
for (i = 0; i < ARRAY_SIZE(decon_clks_name); i++
)
+
while (--i >= 0
)
clk_disable_unprepare(ctx->clks[i]);
return 0;