drm/exynos: decon5433: Fix WINCONx reset value 32/180532/2 accepted/tizen/unified/20180619.141833 submit/tizen/20180615.023254
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 30 May 2018 10:48:10 +0000 (12:48 +0200)
committerInki Dae <inki.dae@samsung.com>
Thu, 31 May 2018 00:57:24 +0000 (00:57 +0000)
The only bits that should be preserved in decon_win_set_fmt() is
WINCONx_ENWIN_F. All other bits depends on the selected pixel formats and
are set by the mentioned function.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I523af914c847a81be0d295e90f5053fd3e8ad14b

drivers/gpu/drm/exynos/exynos5433_drm_decon.c

index b3fccb04689a48963d93887af52a6bc6ef65a0e1..9b78bcc03a7dcfa7bafba637350d3583c898f5ef 100644 (file)
@@ -279,7 +279,7 @@ static void decon_win_set_pixfmt(struct decon_context *ctx, unsigned int win)
        int padding;
 
        val = readl(ctx->addr + DECON_WINCONx(win));
-       val &= ~WINCONx_BPPMODE_MASK;
+       val &= WINCONx_ENWIN_F;
 
        switch (plane->pixel_format) {
        case DRM_FORMAT_XRGB1555: