drm/tegra: dsi - Reset controller on driver unload
authorThierry Reding <treding@nvidia.com>
Fri, 14 Mar 2014 13:25:43 +0000 (14:25 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 5 Jun 2014 21:09:31 +0000 (23:09 +0200)
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>
drivers/gpu/drm/tegra/dsi.c

index 55ac86f..b6740c8 100644 (file)
@@ -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) {