if (dev_drv->ops->get_win_state) {
win_status =
dev_drv->ops->get_win_state(dev_drv, i, j);
- if (win_status)
+ if (win_status) {
wait_for_vsync = true;
+ dev_info(dev_drv->dev,
+ "win[%d]area[%d]: "
+ "state: %d, "
+ "cur state: %d,"
+ "count: %d\n",
+ i, j,
+ dev_drv->win[i]->area[j].state,
+ win_status,
+ 101 - count);
+ }
}
} else {
pr_err("!!!win[%d]state:%d,error!!!\n",
timeout = wait_event_interruptible_timeout(dev_drv->vsync_info.wait,
ktime_compare(dev_drv->vsync_info.timestamp, timestamp) > 0,
msecs_to_jiffies(50));
-
+ if (timeout <= 0)
+ dev_info(dev_drv->dev, "timeout: %ld\n", timeout);
wait_for_vsync = rk_fb_reg_effect(dev_drv, regs, count);
} while (wait_for_vsync && count--);
#ifdef H_USE_FENCE
rk_fb_dbg(cmd, " xact=%d,yact=%d,xvir=%d,yvir=%d\n",
area_par->xact, area_par->yact,
area_par->xvir, area_par->yvir);
+ rk_fb_dbg(cmd, " data_space%d\n",
+ area_par->data_space);
}
}
dev_drv->id);
if (enable == 2 /*&& dev_drv->enable*/)
return 0;
- pr_info("switch:en=%d,lcdc_id=%d,screen type=%d,cur type=%d\n",
+ pr_info("switch:en=%d,lcdc_id=%d,screen type=%d,cur type=%d",
enable, lcdc_id, screen->type, dev_drv->cur_screen->type);
+ pr_info("data space: %d, color mode: %d\n",
+ screen->data_space, screen->color_mode);
mutex_lock(&dev_drv->switch_screen);
dev_drv->hot_plug_state = enable;