From: Thierry Reding Date: Fri, 14 Mar 2014 13:25:43 +0000 (+0100) Subject: drm/tegra: dsi - Reset controller on driver unload X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cb825d89f50c043839a9dbb0efd882ba96457c7d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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) {