drm/i915/tc: Factor out a function querying active links on a TC port
authorImre Deak <imre.deak@intel.com>
Tue, 21 Mar 2023 22:01:00 +0000 (00:01 +0200)
committerImre Deak <imre.deak@intel.com>
Wed, 22 Mar 2023 18:31:22 +0000 (20:31 +0200)
commit2a4d292f056b35f54cd7788e124937fe598369c4
tree85673f36216c5441b9e10877c2c42a444492f699
parent7c1da0683e2adb969005ea195cb6bed22f844a69
drm/i915/tc: Factor out a function querying active links on a TC port

For clarity factor out the function to determine if there are active
links on a TC port. This prepares for the next patch also checking the
port's PLL type.

While at it pass crtc_state to intel_tc_port_sanitize_mode(), and check
hw.active in that, instead of the deprecated crtc->active flag.

v2: Check crtc_state->hw.active instead of crtc->active. (Ville)

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230321220101.983366-2-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_ddi.c
drivers/gpu/drm/i915/display/intel_tc.c
drivers/gpu/drm/i915/display/intel_tc.h