kernel/0200-fix-resolve-HDMI-hot-plug-compatibility-issues.patch

41 lines
1.4 KiB
Diff

From cbc4be2a418ab7b835bfdf9cf53fc3faaaec7a95 Mon Sep 17 00:00:00 2001
From: denglei <denglei@eswincomputing.com>
Date: Fri, 25 Oct 2024 10:36:46 +0800
Subject: [PATCH 200/219] fix:resolve HDMI hot plug compatibility issues.
Changelogs:
resolve HDMI hot plug issues with HKC display.
Signed-off-by: denglei <denglei@eswincomputing.com>
---
drivers/gpu/drm/eswin/dw-hdmi.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/eswin/dw-hdmi.c b/drivers/gpu/drm/eswin/dw-hdmi.c
index ba5aae273162..669447d03681 100644
--- a/drivers/gpu/drm/eswin/dw-hdmi.c
+++ b/drivers/gpu/drm/eswin/dw-hdmi.c
@@ -590,7 +590,7 @@ static int dw_hdmi_i2c_xfer(struct i2c_adapter *adap,
*/
return -EOPNOTSUPP;
- dev_dbg(hdmi->dev, "xfer: num: %d, addr: %#x\n", num, addr);
+ dev_vdbg(hdmi->dev, "xfer: num: %d, addr: %#x\n", num, addr);
for (i = 0; i < num; i++) {
if (msgs[i].len == 0) {
@@ -618,8 +618,9 @@ static int dw_hdmi_i2c_xfer(struct i2c_adapter *adap,
i2c->is_segment = false;
for (i = 0; i < num; i++) {
- dev_dbg(hdmi->dev, "xfer: num: %d/%d, len: %d, flags: %#x\n",
+ dev_vdbg(hdmi->dev, "xfer: num: %d/%d, len: %d, flags: %#x\n",
i + 1, num, msgs[i].len, msgs[i].flags);
+ udelay(100);
if (msgs[i].addr == DDC_SEGMENT_ADDR && msgs[i].len == 1) {
i2c->is_segment = true;
hdmi_writeb(hdmi, DDC_SEGMENT_ADDR, HDMI_I2CM_SEGADDR);
--
2.47.0