Re: [PATCH] drm/exynos/decon: fix disable clocks order

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Picked it up.

Thanks,
Inki Dae

2016년 02월 11일 20:25에 Andrzej Hajda 이(가) 쓴 글:
> Decon requires that clocks should be disabled in reverse order. Otherwise
> system hangs.
> 
> Signed-off-by: Andrzej Hajda <a.hajda@xxxxxxxxxxx>
> ---
>  drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c
> index 1bf6a21..98615e2 100644
> --- a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c
> +++ b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c
> @@ -582,9 +582,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;
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SoC Development]     [Linux Rockchip Development]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Linux SCSI]     [Yosemite News]

  Powered by Linux