summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index 029bfca2..78e33a49 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -770,6 +770,7 @@ static int gk20a_pm_prepare_poweroff(struct device *dev)
770 /* Disable GPCPLL */ 770 /* Disable GPCPLL */
771 ret |= gk20a_suspend_clk_support(g); 771 ret |= gk20a_suspend_clk_support(g);
772 772
773 gk20a_platform_channel_idle(pdev);
773 g->power_on = false; 774 g->power_on = false;
774 775
775 return ret; 776 return ret;
@@ -801,6 +802,10 @@ static int gk20a_pm_finalize_poweron(struct device *dev)
801 802
802 gk20a_dbg_fn(""); 803 gk20a_dbg_fn("");
803 804
805 err = gk20a_platform_channel_busy(pdev);
806 if (err)
807 return err;
808
804 if (g->power_on) 809 if (g->power_on)
805 return 0; 810 return 0;
806 811