Revert "drm/rockchip: fixup display reference count"

fix display abnormal when enable uboot logo display

This reverts commit 6db46c9e7e.

Change-Id: I85b60c1b90bef939427bcbb795f7dcca490cec46
Signed-off-by: xuhuicong <xhc@rock-chips.com>
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
This commit is contained in:
xuhuicong 2017-03-29 09:20:53 +08:00 committed by Huang, Tao
parent 5ec72176cc
commit eaef6c723f
2 changed files with 0 additions and 18 deletions

View File

@ -604,19 +604,6 @@ static void show_loader_logo(struct drm_device *drm_dev)
list_for_each_entry_safe(set, tmp, &mode_set_list, head) {
struct drm_crtc *crtc = set->crtc;
struct drm_connector *conn = set->connector;
if (!set->mode_changed) {
/*
* restore connector and crtc's state, keep all the
* reference fine.
*/
WARN_ON(drm_atomic_set_crtc_for_connector(conn->state,
NULL));
WARN_ON(drm_atomic_set_mode_for_crtc(crtc->state,
NULL));
crtc->state->active = false;
}
list_del(&set->head);
kfree(set);

View File

@ -1494,11 +1494,6 @@ static void vop_crtc_enable(struct drm_crtc *crtc)
u16 vact_end = vact_st + vdisplay;
uint32_t val;
if (vop->loader_protect) {
vop->loader_protect = false;
return;
}
vop_initial(crtc);
val = BIT(DCLK_INVERT);