summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
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
parent79eb7e5dabaaf7d4f5856cced00cc78a5f1e9e9c (diff)
downloadop-kernel-dev-cb825d89f50c043839a9dbb0efd882ba96457c7d.zip
op-kernel-dev-cb825d89f50c043839a9dbb0efd882ba96457c7d.tar.gz
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')
-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 55ac86f..b6740c8 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) {
OpenPOWER on IntegriCloud