video: dsi: tegra: Stop dc stream before configuring dsi
Animesh Kishore [Thu, 2 Jun 2011 16:25:37 +0000 (21:25 +0530)]
Advantage is that it avoids glitches on panel arising while dsi
registers are being configured.

Bug 833685

Original-Change-Id: I6c36749ae964aa4669c4e3cccd551405d3542a4e
Reviewed-on: http://git-master/r/34926
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Tested-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>

Rebase-Id: R423ce1bc27a1cf99c441ee4d56aba2dd53dcf696

drivers/video/tegra/dc/dsi.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 58076a3..1ec0fba
@@ -1573,6 +1573,12 @@ static void tegra_dc_dsi_enable(struct tegra_dc *dc)
        tegra_dc_io_start(dc);
        mutex_lock(&dsi->lock);
 
+       /* Stop DC stream before configuring DSI registers
+        * to avoid visible glitches on panel during transition
+        * from bootloader to kernel driver
+        */
+       tegra_dsi_stop_dc_stream_at_frame_end(dc, dsi);
+
        if (dsi->ulpm) {
                tegra_dsi_exit_ulpm(dsi);
                if (dsi->info.panel_reset) {