Skip to content

Commit c5c2b4b

Browse files
ideaktursulin
authored andcommitted
drm/i915/lnl+/tc: Use the cached max lane count value
Use the cached max lane count value on LNL+, to account for scenarios where this value is queried after the HW cleared the corresponding pin assignment value in the TCSS_DDI_STATUS register after the sink got disconnected. For consistency, follow-up changes will use the cached max lane count value on other platforms as well and will also cache the pin assignment value in a similar way. Cc: stable@vger.kernel.org # v6.8+ Reported-by: Charlton Lin <charlton.lin@intel.com> Tested-by: Khaled Almahallawy <khaled.almahallawy@intel.com> Reviewed-by: Mika Kahola <mika.kahola@intel.com> Signed-off-by: Imre Deak <imre.deak@intel.com> Link: https://lore.kernel.org/r/20250811080152.906216-5-imre.deak@intel.com (cherry picked from commit afc4e84) Signed-off-by: Tvrtko Ursulin <tursulin@ursulin.net>
1 parent c87514a commit c5c2b4b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/gpu/drm/i915/display/intel_tc.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,12 +395,16 @@ static void read_pin_configuration(struct intel_tc_port *tc)
395395

396396
int intel_tc_port_max_lane_count(struct intel_digital_port *dig_port)
397397
{
398+
struct intel_display *display = to_intel_display(dig_port);
398399
struct intel_tc_port *tc = to_tc_port(dig_port);
399400

400401
if (!intel_encoder_is_tc(&dig_port->base))
401402
return 4;
402403

403-
return get_max_lane_count(tc);
404+
if (DISPLAY_VER(display) < 20)
405+
return get_max_lane_count(tc);
406+
407+
return tc->max_lane_count;
404408
}
405409

406410
void intel_tc_port_set_fia_lane_count(struct intel_digital_port *dig_port,

0 commit comments

Comments
 (0)