Skip to content

Commit c338923

Browse files
hogandertursulin
authored andcommitted
drm/i915/display: Avoid unnecessarily calling intel_cx0_get_owned_lane_mask
Currently we are always calling intel_cx0_get_owned_lane_mask when intel_lnl_mac_transmit_lfps is called. Avoid this in cases where it's not needed. Signed-off-by: Jouni Högander <[email protected]> Reviewed-by: Gustavo Sousa <[email protected]> Link: https://lore.kernel.org/r/[email protected] (cherry picked from commit d487ed7) Signed-off-by: Tvrtko Ursulin <[email protected]>
1 parent a045246 commit c338923

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3239,13 +3239,14 @@ void intel_lnl_mac_transmit_lfps(struct intel_encoder *encoder,
32393239
const struct intel_crtc_state *crtc_state)
32403240
{
32413241
struct intel_display *display = to_intel_display(encoder);
3242-
u8 owned_lane_mask = intel_cx0_get_owned_lane_mask(encoder);
32433242
int i;
3243+
u8 owned_lane_mask;
32443244

32453245
if (DISPLAY_VER(display) < 20 ||
32463246
!intel_alpm_is_alpm_aux_less(enc_to_intel_dp(encoder), crtc_state))
32473247
return;
32483248

3249+
owned_lane_mask = intel_cx0_get_owned_lane_mask(encoder);
32493250
for (i = 0; i < 4; i++) {
32503251
int tx = i % 2 + 1;
32513252
u8 lane_mask = i < 2 ? INTEL_CX0_LANE0 : INTEL_CX0_LANE1;

0 commit comments

Comments
 (0)