video: tegra: dsi: need clear indication to track LP0 resuming latency
Li Li [Tue, 12 Mar 2013 23:51:15 +0000 (16:51 -0700)]
To better measure how long the device actually resumes back to a usable
state, we need to know when the display is turned on.

Bug 1252226

Change-Id: I85e1662eb1a169d22195c45e4e75198ba49caca5
Signed-off-by: Li Li <lli5@nvidia.com>
Reviewed-on: http://git-master/r/208600
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

drivers/video/tegra/dc/dc.c
drivers/video/tegra/dc/dsi.c

index 97ccab5..5b6749b 100644 (file)
@@ -1828,9 +1828,13 @@ static bool _tegra_dc_controller_enable(struct tegra_dc *dc)
 
        tegra_dc_unpowergate_locked(dc);
 
-       if (dc->out->enable)
+       if (dc->out->enable) {
                dc->out->enable(&dc->ndev->dev);
 
+               /* important to track dc init latency */
+               dev_info(&dc->ndev->dev, "dc out enabled\n");
+       }
+
        tegra_dc_setup_clk(dc, dc->clk);
        tegra_dc_clk_enable(dc);
        tegra_dc_io_start(dc);
index 28e5bf3..39224ae 100644 (file)
@@ -2114,6 +2114,9 @@ static int tegra_dsi_init_hw(struct tegra_dc *dc,
        dsi->status.dc_stream = DSI_DC_STREAM_DISABLE;
        dsi->status.lp_op = DSI_LP_OP_NOT_INIT;
 
+       /* important to track dsi init latency */
+       dev_info(&dc->ndev->dev, "DSI: HW init completed\n");
+
        return 0;
 }