drm/dp: Use I2C_WRITE_STATUS_UPDATE to drain partial I2C_WRITE requests
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 27 Aug 2015 14:23:30 +0000 (17:23 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 8 Sep 2015 18:22:57 +0000 (20:22 +0200)
commit68ec2a2a24815c0ee359b1327b60a276cd2280d8
tree78df43d87c98e1b371cc8e4fadc931b592099dec
parentf993406182b3ffad7c53ffc180b65e2b7e3d8986
drm/dp: Use I2C_WRITE_STATUS_UPDATE to drain partial I2C_WRITE requests

When an i2c WRITE gets an i2c defer or short i2c ack reply, we are
supposed to switch the request from I2C_WRITE to I2C_WRITE_STATUS_UPDATE
when we continue to poll for the completion of the request.

v2: Don't assume DP_AUX_I2C_WRITE is 0 even though it is, to make the
    code more obvious to the casual reader (Jani)

Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
[danvet: Resolve conflict due to changed context.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_dp_helper.c