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>
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;
break;
case DECON_STATE_LPD:
case DECON_STATE_OFF:
+ case DECON_STATE_INIT:
break;
default:
ret = -EBUSY;