drm/exynos: decon5433: Fix WINCONx reset value

Message ID 20180607110749.507-1-m.szyprowski@samsung.com
State New
Headers show
  • drm/exynos: decon5433: Fix WINCONx reset value
Related show

Commit Message

Marek Szyprowski June 7, 2018, 11:07 a.m.
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>

 drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


diff --git a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c
index 92d28b5b1077..e868773ea509 100644
--- a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c
+++ b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c
@@ -265,7 +265,7 @@  static void decon_win_set_pixfmt(struct decon_context *ctx, unsigned int win,
 	unsigned long val;
 	val = readl(ctx->addr + DECON_WINCONx(win));
+	val &= WINCONx_ENWIN_F;
 	switch (fb->format->format) {
 	case DRM_FORMAT_XRGB1555: