From: Ville Syrjälä Date: Fri, 27 Jun 2014 23:04:01 +0000 (+0300) Subject: drm/i915: Call encoder->post_disable() in intel_sanitize_encoder() X-Git-Tag: v4.14-rc1~7068^2~20^2~72 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a62d149758d714be4bf0d70b9bd5328e7995c552;p=platform%2Fkernel%2Flinux-rpi.git drm/i915: Call encoder->post_disable() in intel_sanitize_encoder() VLV and CHV disable the DP port only in the .post_disable() hook, so we need to make intel_sanitize_encoder() call that when it's trying to disable encoders without an active pipes. My bsw actaully hits this when an external display is connected. The BIOS still likes to turn on the eDP port, but leaves the pipe disabled. Signed-off-by: Ville Syrjälä Reviewed-by: Rafael Barbalho Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index f31ad8d..d2b752d 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -12775,6 +12775,8 @@ static void intel_sanitize_encoder(struct intel_encoder *encoder) encoder->base.base.id, encoder->base.name); encoder->disable(encoder); + if (encoder->post_disable) + encoder->post_disable(encoder); } encoder->base.crtc = NULL; encoder->connectors_active = false;