All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm: rockchip: rk3066_hdmi: set edid fifo address
@ 2019-12-11 20:34 ` Johan Jonker
  0 siblings, 0 replies; 7+ messages in thread
From: Johan Jonker @ 2019-12-11 20:34 UTC (permalink / raw)
  To: heiko
  Cc: hjc, airlied, daniel, dri-devel, linux-arm-kernel, linux-rockchip,
	linux-kernel

From: Nickey Yang <nickey.yang@rock-chips.com>

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

Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Signed-off-by: Johan Jonker <jbx6244@gmail.com>
---
 drivers/gpu/drm/rockchip/rk3066_hdmi.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/rockchip/rk3066_hdmi.c b/drivers/gpu/drm/rockchip/rk3066_hdmi.c
index cdb401f42..945126948 100644
--- a/drivers/gpu/drm/rockchip/rk3066_hdmi.c
+++ b/drivers/gpu/drm/rockchip/rk3066_hdmi.c
@@ -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);
 
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-01-06 11:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-11 20:34 [PATCH] drm: rockchip: rk3066_hdmi: set edid fifo address Johan Jonker
2019-12-11 20:34 ` Johan Jonker
2019-12-11 20:34 ` Johan Jonker
     [not found] ` <20191211203417.19448-1-jbx6244-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2020-01-06 11:26   ` Heiko Stuebner
2020-01-06 11:26     ` Heiko Stuebner
2020-01-06 11:26     ` Heiko Stuebner
2020-01-06 11:26     ` Heiko Stuebner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.