]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
drm/amd/display: Only require EDID read for HDMI and DVI
authorHarry Wentland <harry.wentland@amd.com>
Thu, 2 Aug 2018 19:32:01 +0000 (15:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 3 Aug 2018 15:14:10 +0000 (10:14 -0500)
[Why]
VGA sometimes has trouble retrieving the EDID on very long cables, KVM
switches, or old displays.

[How]
Only require EDID read for HDMI and DVI and exempt other types (DP,
VGA). We currently don't support VGA but if anyone adds support in the
future this might get overlooked.

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Suggested-by: Michel Dänzer <michel@daenzer.net>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c

index 31cebb645fca69c6e093d67561da06b62f502542..89d7c1e99168c1040f6e2c68aceb544f35acfb1f 100644 (file)
@@ -753,7 +753,8 @@ bool dc_link_detect(struct dc_link *link, enum dc_detect_reason reason)
                         * even if we have no EDID in order to go to
                         * fail-safe mode
                         */
-                       if (!dc_is_dp_signal(link->connector_signal))
+                       if (dc_is_hdmi_signal(link->connector_signal) ||
+                           dc_is_dvi_signal(link->connector_signal))
                                return false;
                default:
                        break;