]> git.baikalelectronics.ru Git - kernel.git/commit
i2c-algo-bit: Fix timeout test
authorDave Airlie <airlied@redhat.com>
Tue, 5 May 2009 06:39:24 +0000 (08:39 +0200)
committerJean Delvare <khali@linux-fr.org>
Tue, 5 May 2009 06:39:24 +0000 (08:39 +0200)
commita0ddca4507d7ca3527fce66b54d2ec0e4169698f
tree2be7fb0ed8b0e1a7a478d79e33fc742daa27fb35
parentc3e9aac42bf7e09c698f4de8b86d54377a736c33
i2c-algo-bit: Fix timeout test

When fetching DDC using i2c algo bit, we were often seeing timeouts
before getting valid EDID on a retry. The VESA spec states 2ms is the
DDC timeout, so when this translates into 1 jiffie and we are close
to the end of the time period, it could return with a timeout less than
2ms.

Change this code to use time_after instead of time_after_eq.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/algos/i2c-algo-bit.c