Skip to content

Commit f9cdf41

Browse files
mkovanenrodrigovivi
authored andcommitted
drm/i915/dsi: fix VBT send packet port selection for dual link DSI
intel_dsi->ports contains bitmask of enabled ports and correspondingly logic for selecting port for VBT packet sending must use port specific bitmask when deciding appropriate port. Fixes: 08c59dd ("drm/i915/dsi: fix VBT send packet port selection for ICL+") Cc: [email protected] Signed-off-by: Mikko Kovanen <[email protected]> Reviewed-by: Jani Nikula <[email protected]> Signed-off-by: Jani Nikula <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/DBBPR09MB466592B16885D99ABBF2393A91119@DBBPR09MB4665.eurprd09.prod.outlook.com (cherry picked from commit 8d58bb7) Signed-off-by: Rodrigo Vivi <[email protected]>
1 parent 1382901 commit f9cdf41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ static enum port intel_dsi_seq_port_to_port(struct intel_dsi *intel_dsi,
137137
return ffs(intel_dsi->ports) - 1;
138138

139139
if (seq_port) {
140-
if (intel_dsi->ports & PORT_B)
140+
if (intel_dsi->ports & BIT(PORT_B))
141141
return PORT_B;
142-
else if (intel_dsi->ports & PORT_C)
142+
else if (intel_dsi->ports & BIT(PORT_C))
143143
return PORT_C;
144144
}
145145

0 commit comments

Comments
 (0)