drm/exynos/decon5433: do not stop DECON before reset 57/103757/2
authorAndrzej Hajda <a.hajda@samsung.com>
Fri, 9 Dec 2016 09:52:15 +0000 (10:52 +0100)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 14 Dec 2016 04:18:24 +0000 (20:18 -0800)
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 <a.hajda@samsung.com>
drivers/gpu/drm/exynos/exynos5433_drm_decon.c

index c8593bbd0e3a37df1e93ade2d3467eaf28e3e6bc..6842c1c970b646e0830e8f1b46c0205857859d67 100644 (file)
@@ -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)