mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-12 05:24:12 +08:00
drm/rockchip: vop: make vop register setting take effect
The setting of vop registers need a reg_done writing to take effect. In vop_enable the vop return to work by by restoring registers, but the registers do not take effect immediately, it should a vop_cfg_done after it. The same thing is needed by windows_disabled in vop_crtc_disable. Signed-off-by: Chris Zhong <zyw@rock-chips.com>
This commit is contained in:
parent
99743ae4c5
commit
17a794d768
@ -531,6 +531,8 @@ static int vop_enable(struct drm_crtc *crtc)
|
|||||||
}
|
}
|
||||||
|
|
||||||
memcpy(vop->regs, vop->regsbak, vop->len);
|
memcpy(vop->regs, vop->regsbak, vop->len);
|
||||||
|
vop_cfg_done(vop);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* At here, vop clock & iommu is enable, R/W vop regs would be safe.
|
* At here, vop clock & iommu is enable, R/W vop regs would be safe.
|
||||||
*/
|
*/
|
||||||
@ -582,6 +584,8 @@ static void vop_crtc_disable(struct drm_crtc *crtc)
|
|||||||
spin_unlock(&vop->reg_lock);
|
spin_unlock(&vop->reg_lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
vop_cfg_done(vop);
|
||||||
|
|
||||||
drm_crtc_vblank_off(crtc);
|
drm_crtc_vblank_off(crtc);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user