]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
gma500: mdfld_dsi_dpi_mode_set() do not corrupt DSPSTRIDE
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Thu, 3 May 2012 15:27:45 +0000 (16:27 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 3 May 2012 15:26:49 +0000 (16:26 +0100)
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 <kirill.shutemov@linux.intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/gma500/mdfld_dsi_dpi.c

index d52358b744a0d1c295731699314141949b1923a0..b34ff097b97936a0017b348517e25466f609c270 100644 (file)
@@ -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));