You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
drm/rockchip: vop2: add reset vp->win_mask
vp->mask must initialize correctly, otherwise after suspend and resume, the software state[vp->mask] maybe different with hardware state and lead to close win error or timeout. Signed-off-by: Sandy Huang <hjc@rock-chips.com> Change-Id: Icc605878b6ac74b24dde44f7933bc761ccdcd526
This commit is contained in:
@@ -4154,6 +4154,10 @@ static void vop3_layer_map_initial(struct vop2 *vop2, uint32_t current_vp_id)
|
||||
{
|
||||
uint16_t vp_id;
|
||||
struct drm_plane *plane = NULL;
|
||||
int i = 0;
|
||||
|
||||
for (i = 0; i < vop2->data->nr_vps; i++)
|
||||
vop2->vps[i].win_mask = 0;
|
||||
|
||||
drm_for_each_plane(plane, vop2->drm_dev) {
|
||||
struct vop2_win *win = to_vop2_win(plane);
|
||||
|
||||
Reference in New Issue
Block a user