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: v3.17-rc1~82^2~20^2~72 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a62d149758d714be4bf0d70b9bd5328e7995c552;p=karo-tx-linux.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 f31ad8d0f6ea..d2b752dd0aaf 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;