gpu: host1x: Enable system suspend callbacks
authorMikko Perttunen <mperttunen@nvidia.com>
Fri, 1 Sep 2023 11:15:09 +0000 (14:15 +0300)
committerThierry Reding <treding@nvidia.com>
Wed, 11 Oct 2023 20:52:44 +0000 (22:52 +0200)
With the previous CDMA stop fix, executing runtime PM ops around
system suspend now makes channel submissions work after system
suspend, so do that.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230901111510.663401-3-cyndis@kapsi.fi
drivers/gpu/host1x/dev.c

index 6501bee9e8c1a3e4e2a61af4f3b7bbbe8693d998..b8ac44e7d11adb85f4aeeec487f80d7531ad91d3 100644 (file)
@@ -720,7 +720,7 @@ release_reset:
 static const struct dev_pm_ops host1x_pm_ops = {
        SET_RUNTIME_PM_OPS(host1x_runtime_suspend, host1x_runtime_resume,
                           NULL)
-       /* TODO: add system suspend-resume once driver will be ready for that */
+       SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, pm_runtime_force_resume)
 };
 
 static struct platform_driver tegra_host1x_driver = {