diff options
author | Li Li <lli5@nvidia.com> | 2013-03-12 16:51:15 -0700 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2013-03-19 19:29:51 -0700 |
commit | 4a5b464edf8f835b92f2bc33f92083cd0cf0c2e3 (patch) | |
tree | 742a08653c7e34aa679e91c17e648099eccb309b /drivers/video/tegra/dc | |
parent | 27fc479064e673b250bc707be073a28bad0e8ad9 (diff) |
video: tegra: dsi: need clear indication to track LP0 resuming latency
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/209808
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/dc')
-rw-r--r-- | drivers/video/tegra/dc/dc.c | 6 | ||||
-rw-r--r-- | drivers/video/tegra/dc/dsi.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/drivers/video/tegra/dc/dc.c b/drivers/video/tegra/dc/dc.c index e9bda5e5aa00..cce51f7c4196 100644 --- a/drivers/video/tegra/dc/dc.c +++ b/drivers/video/tegra/dc/dc.c @@ -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); diff --git a/drivers/video/tegra/dc/dsi.c b/drivers/video/tegra/dc/dsi.c index 9ae3491820cd..7dc66ec07685 100644 --- a/drivers/video/tegra/dc/dsi.c +++ b/drivers/video/tegra/dc/dsi.c @@ -2099,6 +2099,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; } |