Skip to content

Commit b575007

Browse files
committed
drm/i915/dpio: Use intel_de_rmw() for BXT DPIO latency optim setup
Replace the hand rolled intel_de_rmw() with the real thing. Signed-off-by: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Jani Nikula <[email protected]>
1 parent 9542840 commit b575007

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

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

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -613,19 +613,13 @@ void bxt_ddi_phy_set_lane_optim_mask(struct intel_encoder *encoder,
613613
bxt_port_to_phy_channel(dev_priv, port, &phy, &ch);
614614

615615
for (lane = 0; lane < 4; lane++) {
616-
u32 val = intel_de_read(dev_priv,
617-
BXT_PORT_TX_DW14_LN(phy, ch, lane));
618-
619616
/*
620617
* Note that on CHV this flag is called UPAR, but has
621618
* the same function.
622619
*/
623-
val &= ~LATENCY_OPTIM;
624-
if (lane_lat_optim_mask & BIT(lane))
625-
val |= LATENCY_OPTIM;
626-
627-
intel_de_write(dev_priv, BXT_PORT_TX_DW14_LN(phy, ch, lane),
628-
val);
620+
intel_de_rmw(dev_priv, BXT_PORT_TX_DW14_LN(phy, ch, lane),
621+
LATENCY_OPTIM,
622+
lane_lat_optim_mask & BIT(lane) ? LATENCY_OPTIM : 0);
629623
}
630624
}
631625

0 commit comments

Comments
 (0)