From 38e39b92f4c687cf3fac4265134f4a19231178d7 Mon Sep 17 00:00:00 2001 From: "Jia, Lin A" Date: Mon, 5 Feb 2024 18:37:44 +0000 Subject: [PATCH] drm/edid: Fix serdes black screen issue Force to get serdes edid to fix black screen issue due to don`t use DDC Test-done: Android boot and backlight/motor tested with panel EF1E-A1 Tracked-On: OAM-115780 Signed-off-by: Jia, Lin A --- drivers/gpu/drm/drm_edid.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index a915b872854e4..4391a0cdf36ee 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -2550,8 +2550,12 @@ struct edid *drm_get_edid(struct drm_connector *connector, if (connector->force == DRM_FORCE_OFF) return NULL; - if (connector->force == DRM_FORCE_UNSPECIFIED && !drm_probe_ddc(adapter)) - return NULL; + if (connector->force == DRM_FORCE_UNSPECIFIED && !drm_probe_ddc(adapter)) { + if ((connector->status == connector_status_connected) && + (strcmp(connector->name, "DP-3") != 0)) { + return NULL; + } + } edid = _drm_do_get_edid(connector, drm_do_probe_ddc_edid, adapter, NULL); drm_connector_update_edid_property(connector, edid);