From: Mikko Perttunen Date: Wed, 11 Aug 2021 10:59:54 +0000 (+0300) Subject: drm/tegra: vic: Use autosuspend X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b03d6403072edae18a7eb5359eaf8e7efd3d2bb9;p=linux.git 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 Signed-off-by: Thierry Reding --- diff --git a/drivers/gpu/drm/tegra/vic.c b/drivers/gpu/drm/tegra/vic.c index dec5e56f67804..b58e2b99f81a6 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;