summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index 6add8441..b8357c76 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -1210,11 +1210,19 @@ static int gk20a_pm_initialise_domain(struct platform_device *pdev)
1210 struct gk20a_platform *platform = platform_get_drvdata(pdev); 1210 struct gk20a_platform *platform = platform_get_drvdata(pdev);
1211 struct dev_power_governor *pm_domain_gov = NULL; 1211 struct dev_power_governor *pm_domain_gov = NULL;
1212 struct generic_pm_domain *domain = dev_to_genpd(&pdev->dev); 1212 struct generic_pm_domain *domain = dev_to_genpd(&pdev->dev);
1213 struct device *dev = &pdev->dev;
1213 1214
1214#ifdef CONFIG_PM_RUNTIME 1215#ifdef CONFIG_PM_RUNTIME
1215 if (!platform->can_railgate) 1216 if (!platform->can_railgate)
1216 pm_domain_gov = &pm_domain_always_on_gov; 1217 pm_domain_gov = &pm_domain_always_on_gov;
1217#endif 1218#endif
1219 /*
1220 * FIXME: We can remove below assignment once we have clean shutdown
1221 * for gk20a.
1222 */
1223 if (dev->pm_domain)
1224 dev->pm_domain->detach = NULL;
1225
1218 domain->gov = pm_domain_gov; 1226 domain->gov = pm_domain_gov;
1219 1227
1220 if (platform->railgate_delay) 1228 if (platform->railgate_delay)