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:
Sandy Huang
2021-06-18 15:59:59 +08:00
committed by Tao Huang
parent bfbc1155ac
commit 04725d0283

View File

@@ -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);