Skip to contentSkip to conversation

drm: rockchip: rk3066_hdmi: set edid fifo address

PATCH Applied Johan Jonker 2 participants 2 messages Dec 11, 2019 – Jan 6, 2020

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm: rockchip: rk3066_hdmi: set edid fifo address

From: Nickey Yang <[email protected]>

Fix edid reading error when edid's block > 2.

---
 drivers/gpu/drm/rockchip/rk3066_hdmi.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/rockchip/rk3066_hdmi.c +3 -0
index cdb401f42..945126948 100644
@@ -640,6 +640,9 @@ static int rk3066_hdmi_i2c_write(struct rk3066_hdmi *hdmi, struct i2c_msg *msgs)
 	if (msgs->addr == DDC_ADDR)
 		hdmi->i2c->ddc_addr = msgs->buf[0];
 
+	/* Set edid fifo first address. */
+	hdmi_writeb(hdmi, HDMI_EDID_FIFO_ADDR, 0x00);
+
 	/* Set edid word address 0x00/0x80. */
 	hdmi_writeb(hdmi, HDMI_EDID_WORD_ADDR, hdmi->i2c->ddc_addr);
 
Signature · 1 line
2.11.0