From: Kirill A. Shutemov Date: Thu, 3 May 2012 15:27:45 +0000 (+0100) Subject: gma500: mdfld_dsi_dpi_mode_set() do not corrupt DSPSTRIDE X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0c95e52365f141ff6bfdb172c97d1d2bb2a53f39;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git gma500: mdfld_dsi_dpi_mode_set() do not corrupt DSPSTRIDE The proper stride value set in mdfld__intel_pipe_set_base(). TODO: move tc35876x support to separate driver and get rid of all if (mdfld_get_panel_type(dev, pipe) == TC35876X) { ... } Signed-off-by: Kirill A. Shutemov Signed-off-by: Alan Cox Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/gma500/mdfld_dsi_dpi.c b/drivers/gpu/drm/gma500/mdfld_dsi_dpi.c index d52358b744a0..b34ff097b979 100644 --- a/drivers/gpu/drm/gma500/mdfld_dsi_dpi.c +++ b/drivers/gpu/drm/gma500/mdfld_dsi_dpi.c @@ -869,7 +869,6 @@ void mdfld_dsi_dpi_mode_set(struct drm_encoder *encoder, mdfld_set_pipe_timing(dsi_config, pipe); REG_WRITE(DSPABASE, 0x00); - REG_WRITE(DSPASTRIDE, (mode->hdisplay * 4)); REG_WRITE(DSPASIZE, ((mode->vdisplay - 1) << 16) | (mode->hdisplay - 1));