drm/i2c: tda998x: faster polling for edid
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 3 Mar 2014 14:09:36 +0000 (14:09 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 26 Jun 2014 10:01:51 +0000 (11:01 +0100)
One of Jean-Francois patches changed the EDID polling to once every
10ms for 10 interations, whereas the original code did 1ms for 100
interations.  This appears to cause boot-time detection to take
noticably longer.  Revert this change.

Acked-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/gpu/drm/i2c/tda998x_drv.c

index b98c969aeffa677311650736211eddb8d68d9184..3ff7d0713bfb68b646007e4fb677639e15ef5a79 100644 (file)
@@ -1048,8 +1048,8 @@ read_edid_block(struct drm_encoder *encoder, uint8_t *buf, int blk)
                        return i;
                }
        } else {
-               for (i = 10; i > 0; i--) {
-                       msleep(10);
+               for (i = 100; i > 0; i--) {
+                       msleep(1);
                        ret = reg_read(priv, REG_INT_FLAGS_2);
                        if (ret < 0)
                                return ret;