linux/drivers/gpu
Dmitry Torokhov 07308f3a46 drm/i915: cope with large i2c transfers
commit 9535c4757b upstream.

The hardware, according to the specs, is limited to 256 byte transfers,
and current driver has no protections in case users attempt to do larger
transfers. The code will just stomp over status register and mayhem
ensues.

Let's split larger transfers into digestable chunks. Doing this allows
Atmel MXT driver on Pixel 1 function properly (it hasn't since commit
9d8dc3e529 "Input: atmel_mxt_ts -
implement T44 message handling" which tries to consume multiple
touchscreen/touchpad reports in a single transaction).

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2015-05-06 21:59:19 +02:00
..
drm drm/i915: cope with large i2c transfers 2015-05-06 21:59:19 +02:00
host1x gpu: host1x: handle the correct # of syncpt regs 2014-06-07 10:28:09 -07:00
vga vgaswitcheroo: add vga_switcheroo_fini_domain_pm_ops 2014-10-05 14:52:22 -07:00
Makefile gpu: host1x: Add host1x driver 2013-04-22 12:32:40 +02:00