gfx: display: don't touch port control twice in a row
authorJani Nikula <jani.nikula@intel.com>
Fri, 9 Dec 2011 13:14:33 +0000 (15:14 +0200)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 3 Jul 2012 09:28:53 +0000 (12:28 +0300)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
drivers/staging/mrst/drv/mdfld_dsi_dpi.c

index 9a36d71..36e0a23 100644 (file)
@@ -972,10 +972,10 @@ void mdfld_dsi_dpi_mode_set(struct drm_encoder * encoder,
                REG_WRITE(DEVICE_READY_REG, 0x00000001);
 
                REG_WRITE(MIPI_PORT_CONTROL(pipe), 0x80810000);
+       } else {
+               /*set up mipi port FIXME: do at init time */
+               REG_WRITE(MIPI_PORT_CONTROL(pipe), mipi);
        }
-
-       /*set up mipi port FIXME: do at init time */
-       REG_WRITE(MIPI_PORT_CONTROL(pipe), mipi);
        REG_READ(MIPI_PORT_CONTROL(pipe));
 
        if (get_panel_type(dev, pipe) == TMD_VID) {