On Fri, 21 Oct 2011 09:10:12 +0200, Jean Delvare <jdelv...@suse.de> 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 <kei...@keithp.com>

-- 
keith.pack...@intel.com

Attachment: pgpY1RP4t0c3h.pgp
Description: PGP signature

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to