gfx: remove mutex protection in __dpi_panel_power_off
authorLi Peng <peng.li@intel.com>
Thu, 26 Jul 2012 06:04:04 +0000 (14:04 +0800)
committerLi Peng <peng.li@intel.com>
Thu, 26 Jul 2012 06:05:03 +0000 (14:05 +0800)
we already called mutex lock at higher level function, so no need to
do it again at __dpi_panel_power_off, otherwise it will cause mutex
lock twice at suspend path

Signed-off-by: Li Peng <peng.li@intel.com>
drivers/staging/mrst.mcg/drv/mdfld_dsi_dpi.c

index 1655b71..186958f 100644 (file)
@@ -1781,13 +1781,6 @@ static int __dpi_panel_power_off(struct mdfld_dsi_config *dsi_config,
        for (i = 0; i < 256; i++)
                ctx->palette[i] = REG_READ(regs->palette_reg + (i<<2));
 
-       /*
-        * Couldn't disable the pipe until DRM_WAIT_ON signaled by last
-        * vblank event when playing video, otherwise the last vblank event
-        * will lost when pipe disabled before vblank interrupt coming sometimes.
-        */
-       mutex_lock(&dev->mode_config.mutex);
-
        /*Disable panel*/
        val = ctx->dspcntr;
        val &= ~(PIPEACONF_COLOR_MATRIX_ENABLE | PIPEACONF_GAMMA);
@@ -1800,8 +1793,6 @@ static int __dpi_panel_power_off(struct mdfld_dsi_config *dsi_config,
        ctx->pipeconf = val;
        REG_WRITE(regs->pipeconf_reg, (val & ~BIT31));
 
-       mutex_unlock(&dev->mode_config.mutex);
-
        /*wait for pipe disabling,
        pipe synchronization plus , only avaiable when
        timer generator is working*/