drm: i2c: tda998x: Retry fetching the EDID if it fails first time.
authorLiviu Dudau <Liviu.Dudau@arm.com>
Mon, 21 Jul 2014 11:31:11 +0000 (12:31 +0100)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Mon, 22 Sep 2014 15:14:51 +0000 (16:14 +0100)
commitb725ac31bf2ed1a4b42791c5653b52cd9556b700
tree9c788d760a6251e7261e68015ee3d70970a80273
parent221fbee57c470067ce86164c85ce782779e40285
drm: i2c: tda998x: Retry fetching the EDID if it fails first time.

Fetching the EDID from a connected monitor is an automated thing
with NXP TDA19988. But on some boards the fetching fails for the
first time silently without any indication that an error has occured.
More than that, subsequent fetches of the EDID succeed until the
monitor(s) are pluged out.

Add a function to validate the read EDID and retry if the block
retrieved is not valid.

Signed-off-by: Andrew Jackson <Andrew.Jackson@arm.com>
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
drivers/gpu/drm/i2c/tda998x_drv.c