Skip to content

Commit

Permalink
drm/tilcdc: tfp410: Set crtc panel info at init phase
Browse files Browse the repository at this point in the history
commit 7c979b5 upstream.

Set crtc panel info at init phase. Setting it at prepare callback does
it multiple times for no good reason and it is also too late when atomic
modeset is used.

Signed-off-by: Jyri Sarha <[email protected]>
  • Loading branch information
Jyri Sarha committed Aug 17, 2016
1 parent a4e7a1e commit 8692835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/tilcdc/tilcdc_tfp410.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ static bool tfp410_encoder_mode_fixup(struct drm_encoder *encoder,
static void tfp410_encoder_prepare(struct drm_encoder *encoder)
{
tfp410_encoder_dpms(encoder, DRM_MODE_DPMS_OFF);
tilcdc_crtc_set_panel_info(encoder->crtc, &dvi_info);
}

static void tfp410_encoder_commit(struct drm_encoder *encoder)
Expand Down Expand Up @@ -285,6 +284,7 @@ static int tfp410_modeset_init(struct tilcdc_module *mod, struct drm_device *dev
priv->encoders[priv->num_encoders++] = encoder;
priv->connectors[priv->num_connectors++] = connector;

tilcdc_crtc_set_panel_info(priv->crtc, &dvi_info);
return 0;
}

Expand Down

0 comments on commit 8692835

Please sign in to comment.