video: tegra: dc: fix the clock-gate for suspend.
Kevin Huang [Fri, 30 Nov 2012 19:45:06 +0000 (11:45 -0800)]
Bug 1174105

Change-Id: I2eb6bb5e75b1bf7a65956e69abff798ca95fe35f
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/167803
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

drivers/video/tegra/dc/dc.c

index 68f2fc9..91788d8 100644 (file)
@@ -1994,7 +1994,10 @@ static void _tegra_dc_controller_disable(struct tegra_dc *dc)
        disable_irq_nosync(dc->irq);
 
        tegra_dc_clear_bandwidth(dc);
-       if (dc->out_ops->release) /* ugly hack */
+
+       /* ugly hack */
+       if (dc->out_ops->release &&
+               (dc->out->flags & TEGRA_DC_OUT_ONE_SHOT_LP_MODE))
                tegra_dc_release_dc_out(dc);
        else
                tegra_dc_clk_disable(dc);