Daniel Kurtz 79985eee84 drm/i915/intel_i2c: handle zero-length reads
A common method of probing an i2c bus is trying to do a zero-length read.
Handle this case by checking the length first waiting for data to be read.

This is actually important, since attempting a zero-length read is one
of the ways that i2cdetect and i2c_new_probed_device detect whether
there is device present on the bus with a given address.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=48269
Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-04-13 15:02:52 +02:00
..
2012-03-08 10:50:35 -08:00
2012-04-06 17:54:53 -07:00
2012-03-19 09:37:11 +00:00
2012-04-05 22:13:39 -07:00
2012-03-27 16:03:32 -07:00
2012-03-28 15:58:21 -07:00
2012-03-28 13:56:35 -07:00
2012-03-29 18:02:10 -07:00
2012-03-28 14:08:46 -07:00
2012-04-06 17:54:53 -07:00
2012-03-17 01:41:43 -07:00
2012-04-04 10:09:30 -07:00
2012-03-28 15:58:21 -07:00
2012-03-30 00:09:17 -07:00
2012-04-07 09:52:46 -07:00
2012-04-05 22:13:39 -07:00
2012-04-05 22:13:39 -07:00
2012-03-29 18:02:10 -07:00
2012-04-06 17:54:53 -07:00