mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
video: rockchip: fb: don't set vop win state when switch screen
because hwc will open fb0 to fb5, so the logic state is enable, this will lead to iommu page fault when switch screen. Change-Id: I8bc34887a62338049d1d526e37a2595122265046 Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
This commit is contained in:
committed by
Gerrit Code Review
parent
92cfd751b4
commit
b1062bcc26
@@ -3691,13 +3691,14 @@ int rk_fb_switch_screen(struct rk_screen *screen, int enable, int lcdc_id)
|
||||
} else if (!dev_drv->win[win_id]->state) {
|
||||
dev_drv->ops->open(dev_drv, win_id, 1);
|
||||
dev_drv->suspend_flag = 0;
|
||||
mutex_lock(&dev_drv->win_config);
|
||||
info->var.xoffset = 0;
|
||||
info->var.yoffset = 0;
|
||||
info->fbops->fb_set_par(info);
|
||||
info->fbops->fb_pan_display(&info->var,
|
||||
info);
|
||||
mutex_unlock(&dev_drv->win_config);
|
||||
/* mutex_lock(&dev_drv->win_config);
|
||||
* info->var.xoffset = 0;
|
||||
* info->var.yoffset = 0;
|
||||
* info->fbops->fb_set_par(info);
|
||||
* info->fbops->fb_pan_display(&info->var,
|
||||
* info);
|
||||
* mutex_unlock(&dev_drv->win_config);
|
||||
*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user