Commit 70435fce authored by Imre Deak's avatar Imre Deak
Browse files

drm/i915/tc: Handle non-TC encoders when getting the pin assignment



For consistency, handle the case where
intel_tc_port_get_pin_assignment() is called for a non-TypeC encoder,
returning the default NONE pin assignment value, similarly to how this
is done in intel_tc_port_max_lane_count().

Reviewed-by: default avatarMika Kahola <mika.kahola@intel.com>
Link: https://lore.kernel.org/r/20250805073700.642107-16-imre.deak@intel.com


Signed-off-by: default avatarImre Deak <imre.deak@intel.com>
parent c96ba588
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -400,6 +400,9 @@ intel_tc_port_get_pin_assignment(struct intel_digital_port *dig_port)
{
	struct intel_tc_port *tc = to_tc_port(dig_port);

	if (!intel_encoder_is_tc(&dig_port->base))
		return INTEL_TC_PIN_ASSIGNMENT_NONE;

	return get_pin_assignment(tc);
}