drm/i915/dsi: fix VBT send packet port selection for dual link DSI
authorjsg <jsg@openbsd.org>
Mon, 9 Jan 2023 04:11:31 +0000 (04:11 +0000)
committerjsg <jsg@openbsd.org>
Mon, 9 Jan 2023 04:11:31 +0000 (04:11 +0000)
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

index 3a20d5d..8a894b0 100644 (file)
@@ -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;
        }