From 89bbda3f3f5c002bf5979b1b297cd017d6e4ad14 Mon Sep 17 00:00:00 2001 From: Jaechul Lee Date: Thu, 2 Feb 2017 19:38:08 +0900 Subject: [PATCH] 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 --- drivers/video/fbdev/exynos/decon_7570/decon_core.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 2.7.4