drm/i915/dp: return number of bytes written for short aux/i2c writes
authorJani Nikula <jani.nikula@intel.com>
Tue, 17 Mar 2015 15:18:54 +0000 (17:18 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 20 Mar 2015 10:48:11 +0000 (11:48 +0100)
commita1ddefd8f3963cd9edfda86a0affff8e53d4a762
tree784a0a0c6aafac2aed7a32fc893ba1aa17e15abb
parent94ca719ee47f287b11942c899e6b81045311b786
drm/i915/dp: return number of bytes written for short aux/i2c writes

Allow for a larger receive data size, and check if the receiver returned
the number of bytes written. Without this, we've basically skipped all
the unwritten bytes for short writes.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c