video: dsi: tegra: Fix init sequence for burst mode
Animesh Kishore [Mon, 1 Aug 2011 18:01:13 +0000 (23:01 +0530)]
Correct initialisation sequence

Bug 832439

Original-Change-Id: I0acc386a6cf366b4abf43a946deb982b69c1f171
Reviewed-on: http://git-master/r/44355
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Tested-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

Rebase-Id: Rd7809a5eebfff8ed0753f380fb02583bdbc05509

drivers/video/tegra/dc/dsi.c

index 2af4a54..77f1ad1 100644 (file)
@@ -2005,10 +2005,6 @@ static int tegra_dc_dsi_init(struct tegra_dc *dc)
                goto err_clk_put;
        }
 
-       err = tegra_dc_dsi_cp_info(dsi, dsi_pdata);
-       if (err < 0)
-               goto err_dsi_data;
-
        mutex_init(&dsi->lock);
        dsi->dc = dc;
        dsi->base = base;
@@ -2016,6 +2012,10 @@ static int tegra_dc_dsi_init(struct tegra_dc *dc)
        dsi->dc_clk = dc_clk;
        dsi->dsi_clk = dsi_clk;
 
+       err = tegra_dc_dsi_cp_info(dsi, dsi_pdata);
+       if (err < 0)
+               goto err_dsi_data;
+
        tegra_dc_set_outdata(dc, dsi);
        _tegra_dc_dsi_init(dc);