https://github.com/torvalds/linux
Revision 0cdba07bb23cdd3e0d64357ec3d983e6b75e541f authored by Dave Airlie on 05 May 2009, 06:39:24 UTC, committed by Jean Delvare on 05 May 2009, 06:39:24 UTC
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>
1 parent 4ccc28f
History
Tip revision: 0cdba07bb23cdd3e0d64357ec3d983e6b75e541f authored by Dave Airlie on 05 May 2009, 06:39:24 UTC
i2c-algo-bit: Fix timeout test
Tip revision: 0cdba07
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
usr
virt
.gitignore -rw-r--r-- 885 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.6 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 144.4 KB
Makefile -rw-r--r-- 53.8 KB
README -rw-r--r-- 16.7 KB
REPORTING-BUGS -rw-r--r-- 3.1 KB

README

back to top