Skip to content

Commit 10653ce

Browse files
ideakjfvogel
authored andcommitted
drm/i915/dsi: Use TRANS_DDI_FUNC_CTL's own port width macro
[ Upstream commit 879f703 ] The format of the port width field in the DDI_BUF_CTL and the TRANS_DDI_FUNC_CTL registers are different starting with MTL, where the x3 lane mode for HDMI FRL has a different encoding in the two registers. To account for this use the TRANS_DDI_FUNC_CTL's own port width macro. Cc: <stable@vger.kernel.org> # v6.5+ Fixes: b66a8ab ("drm/i915/display/mtl: Fill port width in DDI_BUF_/TRANS_DDI_FUNC_/PORT_BUF_CTL for HDMI") Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Imre Deak <imre.deak@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250214142001.552916-2-imre.deak@intel.com (cherry picked from commit 76120b3) Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org> (cherry picked from commit 729e7d4b1c5484928bd930ba94bb010e5b88a555) Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
1 parent 85948f3 commit 10653ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,8 +806,8 @@ gen11_dsi_configure_transcoder(struct intel_encoder *encoder,
806806
/* select data lane width */
807807
tmp = intel_de_read(display,
808808
TRANS_DDI_FUNC_CTL(display, dsi_trans));
809-
tmp &= ~DDI_PORT_WIDTH_MASK;
810-
tmp |= DDI_PORT_WIDTH(intel_dsi->lane_count);
809+
tmp &= ~TRANS_DDI_PORT_WIDTH_MASK;
810+
tmp |= TRANS_DDI_PORT_WIDTH(intel_dsi->lane_count);
811811

812812
/* select input pipe */
813813
tmp &= ~TRANS_DDI_EDP_INPUT_MASK;

0 commit comments

Comments
 (0)