video: tegra: dsi: Update dvfs during OSidle
Animesh Kishore [Tue, 24 Sep 2013 07:13:09 +0000 (12:13 +0530)]
Bug 1372849

Change-Id: I783730ae6ec6cf565ad1655dfd885299b5501ea1
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/278272
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
(cherry picked from commit 8804ab60c8aee8c7b00943337c29f8212a65ff0e)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

drivers/video/tegra/dc/dsi.c

index 0ab39cd..653a47f 100644 (file)
@@ -4505,6 +4505,8 @@ static int _tegra_dsi_host_suspend(struct tegra_dc *dc,
                                                "is not supported.\n");
        }
 
+       tegra_dvfs_set_rate(dc->clk, 0);
+
        return 0;
 fail:
        return err;
@@ -4573,6 +4575,8 @@ static int _tegra_dsi_host_resume(struct tegra_dc *dc,
                                                "is not supported.\n");
        }
 
+       tegra_dvfs_set_rate(dc->clk, dc->mode.pclk);
+
        return 0;
 fail:
        return err;