]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
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>
Wed, 23 Apr 2014 10:35:35 +0000 (12:35 +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 55ac86faec606d700dee4767e0e17d6f7af1b3ce..b6740c89f6f3ca4aa35f1e8d3eb96ee86d080cc8 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) {