drm/i915/ddi: Unify the platform specific functions disabling a port
authorImre Deak <imre.deak@intel.com>
Fri, 14 Feb 2025 14:19:59 +0000 (16:19 +0200)
committerImre Deak <imre.deak@intel.com>
Fri, 14 Feb 2025 19:39:08 +0000 (21:39 +0200)
commit99037db545b5cca411182b312520d57c2f7a298b
tree80052208c3a8b3a1942b4b52ff7912b0148df47c
parent6ebf4419fc19a98690be552eb3d5a4279aa82e6c
drm/i915/ddi: Unify the platform specific functions disabling a port

The functions disabling a port for MTL+ and earlier platforms only
differ by an extra step on MTL+ (to disable the D2D link) and the point
at which the port's idle state is waited for. Combine the two functions
accounting for the above differences, removing the duplication.

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250214142001.552916-10-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_ddi.c