DRM_DEBUG_DRIVER("Enabling RGB output\n");
- if (!IS_ERR(tcon->panel))
+ if (!IS_ERR(tcon->panel)) {
+ drm_panel_prepare(tcon->panel);
drm_panel_enable(tcon->panel);
+ }
if (!IS_ERR(encoder->bridge))
drm_bridge_enable(encoder->bridge);
if (!IS_ERR(encoder->bridge))
drm_bridge_disable(encoder->bridge);
- if (!IS_ERR(tcon->panel))
+ if (!IS_ERR(tcon->panel)) {
drm_panel_disable(tcon->panel);
+ drm_panel_unprepare(tcon->panel);
+ }
}
static void sun4i_rgb_encoder_mode_set(struct drm_encoder *encoder,