From: Andrzej Hajda Date: Fri, 9 Dec 2016 09:52:15 +0000 (+0100) Subject: drm/exynos/decon5433: do not stop DECON before reset X-Git-Tag: submit/tizen/20161215.014354~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2f0938dccf40a4f6cc1b821b81e7b9a1c6be75b0;p=platform%2Fkernel%2Flinux-exynos.git drm/exynos/decon5433: do not stop DECON before reset DECON fails to stop in reasonable time in case of interlaced mode. But since device is reset anyway this step can be safely omitted. Change-Id: I15a78685c9573b9799ac63b7810ff3655763e461 Signed-off-by: Andrzej Hajda --- diff --git a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c index c8593bbd0e3a..6842c1c970b6 100644 --- a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c +++ b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c @@ -555,15 +555,6 @@ static void decon_swreset(struct decon_context *ctx) { unsigned int tries; - writel(0, ctx->addr + DECON_VIDCON0); - for (tries = 2000; tries; --tries) { - if (~readl(ctx->addr + DECON_VIDCON0) & VIDCON0_STOP_STATUS) - break; - udelay(10); - } - - WARN(tries == 0, "failed to disable DECON\n"); - writel(VIDCON0_SWRESET, ctx->addr + DECON_VIDCON0); for (tries = 2000; tries; --tries) { if (~readl(ctx->addr + DECON_VIDCON0) & VIDCON0_SWRESET)