mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
drm/rockchip: drv: enable power before direct close crtc
make sure vop power is enabled before use priv function crtc_close() to close current crtc plane. Signed-off-by: Sandy Huang <hjc@rock-chips.com> Change-Id: I928e5f0f38692fbb8a134e6938ec28f8c1f41285
This commit is contained in:
@@ -1023,8 +1023,15 @@ static void show_loader_logo(struct drm_device *drm_dev)
|
||||
struct rockchip_drm_private *priv =
|
||||
drm_dev->dev_private;
|
||||
|
||||
if (unset->hdisplay && unset->vdisplay)
|
||||
if (unset->hdisplay && unset->vdisplay) {
|
||||
if (priv->crtc_funcs[pipe] &&
|
||||
priv->crtc_funcs[pipe]->loader_protect)
|
||||
priv->crtc_funcs[pipe]->loader_protect(crtc, true);
|
||||
priv->crtc_funcs[pipe]->crtc_close(crtc);
|
||||
if (priv->crtc_funcs[pipe] &&
|
||||
priv->crtc_funcs[pipe]->loader_protect)
|
||||
priv->crtc_funcs[pipe]->loader_protect(crtc, false);
|
||||
}
|
||||
}
|
||||
|
||||
list_del(&unset->head);
|
||||
|
||||
Reference in New Issue
Block a user