video: exynos: Add DECON_STATE_INIT in the suspend function
authorJaechul Lee <jcsing.lee@samsung.com>
Thu, 2 Feb 2017 10:38:08 +0000 (19:38 +0900)
committerJaechul Lee <jcsing.lee@samsung.com>
Tue, 14 Feb 2017 04:26:31 +0000 (13:26 +0900)
DECON_STATE_INIT is not defined in the suspend function. So, it return while
booting tizen. Besides, added logs to check the device state.

Errors
dpm_run_callback(): pm_genpd_suspend+0x0/0x78 returns -16
PM: Device 14830000.decon_fb failed to suspend: error -16

Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
drivers/video/fbdev/exynos/decon_7570/decon_core.c

index 48ac97a..c1854ae 100644 (file)
@@ -2294,8 +2294,9 @@ static void decon_update_regs_handler(struct kthread_work *work)
        struct decon_reg_data *data, *next;
        struct list_head saved_list;
 
-       if (decon->state == DECON_STATE_LPD)
-               decon_warn("%s: LPD state: %d\n", __func__, decon_get_lpd_block_cnt(decon));
+       if (decon->state == DECON_STATE_LPD || decon->state == DECON_STATE_INIT)
+               decon_warn("%s: %d state: %d\n",
+                          __func__, decon->state, decon_get_lpd_block_cnt(decon));
 
        mutex_lock(&decon->update_regs_list_lock);
        saved_list = decon->update_regs_list;
@@ -2867,6 +2868,7 @@ static int decon_suspend(struct device *dev)
                        break;
                case DECON_STATE_LPD:
                case DECON_STATE_OFF:
+               case DECON_STATE_INIT:
                        break;
                default:
                        ret = -EBUSY;