Skip to contentSkip to conversation

video: fbdev: rivafb: unlock chip before probiding EDID

PATCH Tomi Valkeinen 1 participant 1 message Dec 7, 2015 Framebuffer layer

lore
Share & tools
lore

Tomi Valkeinen

author Applied
#0 lore raw
Quoted 14 lines · Dmitry Eremin-Solenikov

At least NV3 requires for chip to be unlocked before it is possible to access I2C registers. Without it, it is not possible to read EDID.

---
 drivers/video/fbdev/riva/fbdev.c | 1 +
 1 file changed, 1 insertion(+)
drivers/video/fbdev/riva/fbdev.c +0 -0
index f1ad274..2ef26ad 100644

drivers/video/fbdev/riva/fbdev.c static int riva_get_EDID_i2c(struct fb_info *info) · line 1771

Quoted 7 lines
drivers/video/fbdev/riva/fbdev.c +1 -0
@@ -1765,6 +1765,7 @@ static int riva_get_EDID_i2c(struct fb_info *info)
 	int i;
 
 	NVTRACE_ENTER();
+	par->riva.LockUnlock(&par->riva, 0);
 	riva_create_i2c_busses(par);
 	for (i = 0; i < 3; i++) {
 		if (!par->chan[i].par)

Thanks, applied for 4.5.

Tomi