[PATCH 1/2] drm/i915/intel_i2c: handle zero-length reads

2012-04-13 Thread Daniel Kurtz
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 d

[PATCH 1/2] drm/i915/intel_i2c: handle zero-length reads

2012-04-13 Thread Chris Wilson
Also, Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=48269 -Chris -- Chris Wilson, Intel Open Source Technology Centre

[PATCH 1/2] drm/i915/intel_i2c: handle zero-length reads

2012-04-13 Thread Chris Wilson
On Fri, 13 Apr 2012 19:47:53 +0800, Daniel Kurtz wrote: > 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 way

[PATCH 1/2] drm/i915/intel_i2c: handle zero-length reads

2012-04-13 Thread Daniel Kurtz
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 d

Re: [PATCH 1/2] drm/i915/intel_i2c: handle zero-length reads

2012-04-13 Thread Chris Wilson
Also, Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=48269 -Chris -- Chris Wilson, Intel Open Source Technology Centre ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH 1/2] drm/i915/intel_i2c: handle zero-length reads

2012-04-13 Thread Chris Wilson
On Fri, 13 Apr 2012 19:47:53 +0800, Daniel Kurtz wrote: > 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