drm/edid: Parse topology block for all DispID structure v1.x
authorjsg <jsg@openbsd.org>
Sat, 15 Jun 2024 04:13:19 +0000 (04:13 +0000)
committerjsg <jsg@openbsd.org>
Sat, 15 Jun 2024 04:13:19 +0000 (04:13 +0000)
From Ville Syrjala
6040fcea46055159c5cafc95cd6f63e06028086b in linux-6.6.y/6.6.33
e0a200ab4b72afd581bd6f82fc1ef510a4fb5478 in mainline linux

sys/dev/pci/drm/drm_edid.c
sys/dev/pci/drm/include/drm/drm_displayid.h

index ba92bd0..d194970 100644 (file)
@@ -7365,7 +7365,7 @@ static void drm_parse_tiled_block(struct drm_connector *connector,
 static bool displayid_is_tiled_block(const struct displayid_iter *iter,
                                     const struct displayid_block *block)
 {
-       return (displayid_version(iter) == DISPLAY_ID_STRUCTURE_VER_12 &&
+       return (displayid_version(iter) < DISPLAY_ID_STRUCTURE_VER_20 &&
                block->tag == DATA_BLOCK_TILED_DISPLAY) ||
                (displayid_version(iter) == DISPLAY_ID_STRUCTURE_VER_20 &&
                 block->tag == DATA_BLOCK_2_TILED_DISPLAY_TOPOLOGY);
index 566497e..bc1f6b3 100644 (file)
@@ -30,7 +30,6 @@ struct drm_edid;
 #define VESA_IEEE_OUI                          0x3a0292
 
 /* DisplayID Structure versions */
-#define DISPLAY_ID_STRUCTURE_VER_12            0x12
 #define DISPLAY_ID_STRUCTURE_VER_20            0x20
 
 /* DisplayID Structure v1r2 Data Blocks */