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, 21 Jul 2014 11:31:11 +0000 (12:31 +0100)
commit7d0d4cedd12513703239172eb9a7a3465cb8a6ec
tree2a38d958d501d5ef40604b3898659b3f42cf55fd
parentee48569a271f5dc614796744b85a4e21162894ba
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