forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/gpu/drm/msm/adreno/adreno_device.c
....@@ -301,8 +301,11 @@
301301 if (ret)
302302 return NULL;
303303
304
- /* Make sure pm runtime is active and reset any previous errors */
305
- pm_runtime_set_active(&pdev->dev);
304
+ /*
305
+ * Now that we have firmware loaded, and are ready to begin
306
+ * booting the gpu, go ahead and enable runpm:
307
+ */
308
+ pm_runtime_enable(&pdev->dev);
306309
307310 ret = pm_runtime_get_sync(&pdev->dev);
308311 if (ret < 0) {