Skip to content

Commit 562eff3

Browse files
ideakSasha Levin
authored andcommitted
drm/i915/lnl+/tc: Use the cached max lane count value
commit c5c2b4b upstream. 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: [email protected] # v6.8+ Reported-by: Charlton Lin <[email protected]> Tested-by: Khaled Almahallawy <[email protected]> Reviewed-by: Mika Kahola <[email protected]> Signed-off-by: Imre Deak <[email protected]> Link: https://lore.kernel.org/r/[email protected] (cherry picked from commit afc4e84388079f4d5ba05271632b7a4d8d85165c) Signed-off-by: Tvrtko Ursulin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent a766628 commit 562eff3

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
@@ -394,12 +394,16 @@ static void read_pin_configuration(struct intel_tc_port *tc)
394394

395395
int intel_tc_port_max_lane_count(struct intel_digital_port *dig_port)
396396
{
397+
struct intel_display *display = to_intel_display(dig_port);
397398
struct intel_tc_port *tc = to_tc_port(dig_port);
398399

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

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

405409
void intel_tc_port_set_fia_lane_count(struct intel_digital_port *dig_port,

0 commit comments

Comments
 (0)