Skip to content

Commit

Permalink
drm/exynos/decon: fix disable clocks order
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrzej Hajda authored and Inki Dae committed Feb 15, 2016
1 parent d380a16 commit 00780f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/exynos/exynos5433_drm_decon.c
Original file line number Diff line number Diff line change
Expand Up @@ -580,9 +580,9 @@ static irqreturn_t decon_irq_handler(int irq, void *dev_id)
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;
Expand Down

0 comments on commit 00780f3

Please sign in to comment.