aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikko Perttunen <[email protected]>2021-08-11 13:59:54 +0300
committerThierry Reding <[email protected]>2021-12-16 14:07:07 +0100
commitb03d6403072edae18a7eb5359eaf8e7efd3d2bb9 (patch)
treeb188d1a192aa16d685a12393a0e320391abd5893
parent271fca025a6d43f1c18a48543c5aaf31a31e4694 (diff)
drm/tegra: vic: Use autosuspend
When going idle, it's not unlikely that more work will follow. As such, use autosuspend with a 500ms suspend delay. Signed-off-by: Mikko Perttunen <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
-rw-r--r--drivers/gpu/drm/tegra/vic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/vic.c b/drivers/gpu/drm/tegra/vic.c
index dec5e56f6780..b58e2b99f81a 100644
--- a/drivers/gpu/drm/tegra/vic.c
+++ b/drivers/gpu/drm/tegra/vic.c
@@ -488,6 +488,8 @@ static int vic_probe(struct platform_device *pdev)
if (err < 0)
goto unregister_client;
}
+ pm_runtime_set_autosuspend_delay(&pdev->dev, 500);
+ pm_runtime_use_autosuspend(&pdev->dev);
return 0;