From 7c21f890faebe55e4e5caaa15e240e682b8aa205 Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 9 Jan 2023 04:11:31 +0000 Subject: [PATCH] drm/i915/dsi: fix VBT send packet port selection for dual link DSI From Mikko Kovanen 556a7e74af59048bf73777b25395cf90be9b377f in linux-6.1.y/6.1.4 f9cdf4130671d767071607d0a7568c9bd36a68d0 in mainline linux --- sys/dev/pci/drm/i915/display/intel_dsi_vbt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/drm/i915/display/intel_dsi_vbt.c b/sys/dev/pci/drm/i915/display/intel_dsi_vbt.c index 3a20d5da54b..8a894b02781 100644 --- a/sys/dev/pci/drm/i915/display/intel_dsi_vbt.c +++ b/sys/dev/pci/drm/i915/display/intel_dsi_vbt.c @@ -141,9 +141,9 @@ static enum port intel_dsi_seq_port_to_port(struct intel_dsi *intel_dsi, return ffs(intel_dsi->ports) - 1; if (seq_port) { - if (intel_dsi->ports & PORT_B) + if (intel_dsi->ports & BIT(PORT_B)) return PORT_B; - else if (intel_dsi->ports & PORT_C) + else if (intel_dsi->ports & BIT(PORT_C)) return PORT_C; } -- 2.20.1