While going through code of mtl_ddi_prepare_link_retrain which calls mtl_port_buf_ctl_program I saw some potential cleanup and optimization that could take place i.e the i915 to intel_display usage and using intel_de_rmw instead of the intel_de_read, add mask and then intel_de_write sequence. This patch series implements them. Signed-off-by: Suraj Kandpal <suraj.kandpal@xxxxxxxxx> Suraj Kandpal (2): drm/i915/dp: Use intel_display instead of drm_i915_private drm/i915/ddi: Optimize mtl_port_buf_ctl_program drivers/gpu/drm/i915/display/intel_ddi.c | 25 ++++++++++++------------ 1 file changed, 12 insertions(+), 13 deletions(-) -- 2.34.1