]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/intel_i2c: use double-buffered writes
authorDaniel Kurtz <djkurtz@chromium.org>
Fri, 30 Mar 2012 11:46:37 +0000 (19:46 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 12 Apr 2012 19:14:06 +0000 (21:14 +0200)
commite286bb1ad3a49f1ca192301aa681545c4a173e1b
treef76f557e76b5aa0bdfaa5c81b3d8e1176786dfb6
parent129145cb0e99fa3bb4da974785b7cca2dc2a0c3d
drm/i915/intel_i2c: use double-buffered writes

The GMBUS controller GMBUS3 register is double-buffered.  Take advantage
of this  by writing two 4-byte words before the first wait for HW_RDY.
This helps keep the GMBUS controller from becoming idle during long writes.

In fact, during experiments using the GMBUS interrupts, the HW_RDY
interrupt would only trigger for transactions >4 bytes after 2 writes
to GMBUS3.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_i2c.c