- Previously the old encoder would be called during modeset and without a connector bad things happened.
Signed-off-by: Maarten Maathuis <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
if (new_encoder != connector->encoder) {
DRM_DEBUG_KMS("encoder changed, full mode switch\n");
mode_changed = true;
+ /* If the encoder is reused for another connector, then
+ * the appropriate crtc will be set later.
+ */
+ connector->encoder->crtc = NULL;
connector->encoder = new_encoder;
}
}