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>

authored by Dave Airlie and committed by Jean Delvare 0cdba07b 4ccc28f7

+1 -1
+1 -1
drivers/i2c/algos/i2c-algo-bit.c
··· 104 104 * chips may hold it low ("clock stretching") while they 105 105 * are processing data internally. 106 106 */ 107 - if (time_after_eq(jiffies, start + adap->timeout)) 107 + if (time_after(jiffies, start + adap->timeout)) 108 108 return -ETIMEDOUT; 109 109 cond_resched(); 110 110 }