[PATCH 15/19] drm/i915/tc: Handle non-TC encoders when getting the pin assignment

Kahola, Mika mika.kahola at intel.com
Fri Aug 8 07:45:19 UTC 2025


> -----Original Message-----
> From: Intel-xe <intel-xe-bounces at lists.freedesktop.org> On Behalf Of Imre Deak
> Sent: Tuesday, 5 August 2025 10.37
> To: intel-gfx at lists.freedesktop.org; intel-xe at lists.freedesktop.org
> Subject: [PATCH 15/19] 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: Mika Kahola <mika.kahola at intel.com>

> Signed-off-by: Imre Deak <imre.deak at intel.com>
> ---
>  drivers/gpu/drm/i915/display/intel_tc.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/gpu/drm/i915/display/intel_tc.c b/drivers/gpu/drm/i915/display/intel_tc.c
> index 77c5a37450a26..571d311dc09df 100644
> --- a/drivers/gpu/drm/i915/display/intel_tc.c
> +++ b/drivers/gpu/drm/i915/display/intel_tc.c
> @@ -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);
>  }
> 
> --
> 2.49.1



More information about the Intel-xe mailing list