drm/i915: Remove duplicate DDI enabling logic from MST path
authorAnder Conselvan de Oliveira <[email protected]>
Thu, 2 Mar 2017 12:58:57 +0000 (14:58 +0200)
committerAnder Conselvan de Oliveira <[email protected]>
Fri, 3 Mar 2017 10:32:37 +0000 (12:32 +0200)
commite081c8463ac947e75f20ee11c6516f089efddaf6
tree15ff57fba2082c63e494daf40d17530038258990
parent3dc38eea665f383c84cc8d858b9a7645c0b29c54
drm/i915: Remove duplicate DDI enabling logic from MST path

The logic to enable a DDI in intel_mst_pre_enable_dp() is essentially
the same as in intel_ddi_pre_enable_dp(). So reuse the latter function
by calling the post_disable hook on the intel_dig_port instead of
duplicating that code.

v2: Don't oops because of a NULL encoder->crtc. (Ville)
v3: Warn for MST + PORT_E too. (Ville)
Cc: Imre Deak <[email protected]>
Cc: Ville Syrjälä <[email protected]>
Signed-off-by: Ander Conselvan de Oliveira <[email protected]>
Reviewed-by: Ville Syrjälä <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/intel_ddi.c
drivers/gpu/drm/i915/intel_dp_mst.c