drm/edid: Clear the old hdmi info before parsing display info

The current EDID might not support advanced HDMI 2.0 features.
Leaving old hdmi info in the drm_display_info will make display
work not okay, when switching display from HDMI 2.0 device to
HDMI 1.4 device.

Change-Id: Ifaf11a115580a93ec00160d54f0d453842d7b484
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
This commit is contained in:
Zheng Yang
2017-06-28 10:58:36 +08:00
committed by Algea Cao
parent 392c7373ab
commit dd9c925069

View File

@@ -4556,6 +4556,8 @@ u32 drm_add_display_info(struct drm_connector *connector, const struct edid *edi
DRM_DEBUG_KMS("non_desktop set to %d\n", info->non_desktop);
memset(&info->hdmi, 0, sizeof(info->hdmi));
if (edid->revision < 3)
return quirks;