On Fri, 21 Oct 2011 09:10:12 +0200, Jean Delvare <[email protected]> wrote:
> - /* vesa says 2.2 ms is enough, 1 jiffy doesn't seem to always > - * make this, 2 jiffies is a lot more reliable */ > - i2c->algo.bit.timeout = 2; > + i2c->algo.bit.timeout = usecs_to_jiffies(2200); /* from VESA */ From my reading of the usecs_to_jiffies code, it always returns a time at least as long as requested, so this will ensure that you're waiting at least 2.2ms, unlike 2 jiffies which is some random amount of time depending on the HZ setting in the kernel. Reviewed-by: Keith Packard <[email protected]> -- [email protected]
pgpY1RP4t0c3h.pgp
Description: PGP signature
_______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
