Skip to content

Commit 2c2a291

Browse files
digetxthierryreding
authored andcommitted
drm/tegra: gr3d: Assert reset before power-gating
Tegra TRM documentation states that hardware should be in a default state when power partition is turned off, i.e. reset should be asserted. This patch adds the missing reset assertions. Signed-off-by: Dmitry Osipenko <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 5fba01a commit 2c2a291

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/tegra/gr3d.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,10 +381,12 @@ static int gr3d_remove(struct platform_device *pdev)
381381
}
382382

383383
if (gr3d->clk_secondary) {
384+
reset_control_assert(gr3d->rst_secondary);
384385
tegra_powergate_power_off(TEGRA_POWERGATE_3D1);
385386
clk_disable_unprepare(gr3d->clk_secondary);
386387
}
387388

389+
reset_control_assert(gr3d->rst);
388390
tegra_powergate_power_off(TEGRA_POWERGATE_3D);
389391
clk_disable_unprepare(gr3d->clk);
390392

0 commit comments

Comments
 (0)