From: Jaechul Lee Date: Thu, 2 Feb 2017 10:38:08 +0000 (+0900) Subject: video: exynos: Add DECON_STATE_INIT in the suspend function X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d46a73715cb97873c3b08c576298b33eb3ba0be;p=profile%2Fwearable%2Fplatform%2Fkernel%2Flinux-3.18-exynos7270.git video: exynos: Add DECON_STATE_INIT in the suspend function 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 --- diff --git a/drivers/video/fbdev/exynos/decon_7570/decon_core.c b/drivers/video/fbdev/exynos/decon_7570/decon_core.c index 48ac97a..c1854ae 100644 --- a/drivers/video/fbdev/exynos/decon_7570/decon_core.c +++ b/drivers/video/fbdev/exynos/decon_7570/decon_core.c @@ -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;