Skip to contentSkip to conversation

drm/tegra: vic: Use autosuspend

PATCH New Mikko Perttunen 1 participant 1 message Aug 11, 2021

Subsystems (3)
lore
Share & tools
lore

Mikko Perttunen

author maintainer
#0 lore raw

PATCH 1/1 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.

---
 drivers/gpu/drm/tegra/vic.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/tegra/vic.c +2 -0
index c02010ff2b7f..0204cfbe6694 100644
@@ -482,6 +482,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;
 
Signature · 1 line
2.32.0