mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
drm: bridge: dw-hdmi: DDC retry delay use usleep_range()
Fixes: da6e7ed538 ("drm: bridge: dw-hdmi: Optimized hdmi ddc retry process")
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I4c27531ea8399f5353eef10b59a60e7331b113e2
This commit is contained in:
@@ -649,7 +649,7 @@ static int dw_hdmi_i2c_read(struct dw_hdmi *hdmi,
|
||||
dev_dbg(hdmi->dev, "ddc read err\n");
|
||||
hdmi_writeb(hdmi, 0, HDMI_I2CM_SOFTRSTZ);
|
||||
retry--;
|
||||
mdelay(10);
|
||||
usleep_range(10000, 11000);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -708,7 +708,7 @@ static int dw_hdmi_i2c_write(struct dw_hdmi *hdmi,
|
||||
dev_dbg(hdmi->dev, "ddc write err\n");
|
||||
hdmi_writeb(hdmi, 0, HDMI_I2CM_SOFTRSTZ);
|
||||
retry--;
|
||||
mdelay(10);
|
||||
usleep_range(10000, 11000);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user