diff --git a/drivers/gpu/drm/drm_dp_helper.c b/drivers/gpu/drm/drm_dp_helper.c index 105fd66..fd7b06c 100644 --- a/drivers/gpu/drm/drm_dp_helper.c +++ b/drivers/gpu/drm/drm_dp_helper.c @@ -507,6 +507,8 @@ static int drm_dp_i2c_drain_msg(struct drm_dp_aux *aux, struct drm_dp_aux_msg *o msg.buffer += err; } + DRM_DEBUG_KMS("Recommending transfer size %d\n", ret); + return ret; } @@ -557,10 +559,13 @@ static int drm_dp_i2c_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, msg.buffer = msgs[i].buf + j; msg.size = min(transfer_size, msgs[i].len - j); + DRM_DEBUG_KMS("Transferring %u bytes, transfer_size %u\n", msg.size, transfer_size); + err = drm_dp_i2c_drain_msg(aux, &msg); if (err < 0) break; transfer_size = err; + DRM_DEBUG_KMS("Transferred %u bytes, transfer_size now %u\n", msg.size, transfer_size); } if (err < 0) break;