aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra/dsi.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-03-14 14:25:43 +0100
committerThierry Reding <treding@nvidia.com>2014-06-05 23:09:31 +0200
commitcb825d89f50c043839a9dbb0efd882ba96457c7d (patch)
tree0e4ba7ef8b87f4d0f36a9b64cf97f994f093b30c /drivers/gpu/drm/tegra/dsi.c
parentdrm/tegra: dsi - Fix typo when disabling controller (diff)
downloadlinux-dev-cb825d89f50c043839a9dbb0efd882ba96457c7d.tar.xz
linux-dev-cb825d89f50c043839a9dbb0efd882ba96457c7d.zip
drm/tegra: dsi - Reset controller on driver unload
Assert the DSI controller's reset when the driver is unloaded to reduce power consumption and to put the controller into a known state for subsequent driver reloads. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/dsi.c')
-rw-r--r--drivers/gpu/drm/tegra/dsi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/dsi.c b/drivers/gpu/drm/tegra/dsi.c
index 55ac86faec60..b6740c89f6f3 100644
--- a/drivers/gpu/drm/tegra/dsi.c
+++ b/drivers/gpu/drm/tegra/dsi.c
@@ -949,6 +949,7 @@ static int tegra_dsi_remove(struct platform_device *pdev)
clk_disable_unprepare(dsi->clk_parent);
clk_disable_unprepare(dsi->clk_lp);
clk_disable_unprepare(dsi->clk);
+ reset_control_assert(dsi->rst);
err = tegra_output_remove(&dsi->output);
if (err < 0) {