From 038581b537e0165f3999852ea505a1e1b24598b2 Mon Sep 17 00:00:00 2001 From: Liu Ying Date: Thu, 17 Aug 2017 13:55:53 +0800 Subject: [PATCH] MLK-16207-2 drm/bridge: it6263: 2nd time to workaround cable detection failure There is cable detection failure issue on i.MX8qxp MEK platform at boot time when we use single LVDS to HDMI display. The workaround is to read the cable detection status for even more times. Based on experiments, it looks reading for 90 times works. Signed-off-by: Liu Ying (cherry picked from commit 5ac4dfb7b6b2a75f1167cf773e4cef00ed49124a) --- drivers/gpu/drm/bridge/it6263.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/it6263.c b/drivers/gpu/drm/bridge/it6263.c index e656b418700e..a651c104cb27 100644 --- a/drivers/gpu/drm/bridge/it6263.c +++ b/drivers/gpu/drm/bridge/it6263.c @@ -377,7 +377,7 @@ it6263_connector_detect(struct drm_connector *connector, bool force) * cable detection failure issue at boot time on some * platforms. */ - for (i = 0; i < 40; i++) + for (i = 0; i < 90; i++) regmap_read(it6263->hdmi_regmap, HDMI_REG_SYS_STATUS, &status); return (status & HPDETECT) ? connector_status_connected : -- 2.17.1