video: tegra: dc: Call display client disable before dc irq disable
Animesh Kishore [Fri, 27 Jan 2012 14:25:48 +0000 (19:25 +0530)]
dc irqs are required in display client disable to flag
stopping of dc stream.

Bug 930453
Reviewed-on: http://git-master/r/77808

Change-Id: I0e057ca14078d9e608cb32380123fade813c4041
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78898
Reviewed-by: Automatic_Commit_Validation_User

drivers/video/tegra/dc/dc.c

index bdd0a02..9548427 100644 (file)
@@ -2481,13 +2481,13 @@ static void _tegra_dc_controller_disable(struct tegra_dc *dc)
 {
        unsigned i;
 
+       if (dc->out_ops && dc->out_ops->disable)
+               dc->out_ops->disable(dc);
+
        tegra_dc_writel(dc, 0, DC_CMD_INT_MASK);
        tegra_dc_writel(dc, 0, DC_CMD_INT_ENABLE);
        disable_irq(dc->irq);
 
-       if (dc->out_ops && dc->out_ops->disable)
-               dc->out_ops->disable(dc);
-
        tegra_dc_clear_bandwidth(dc);
        clk_disable(dc->clk);
        tegra_dvfs_set_rate(dc->clk, 0);