aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2015-03-19 07:38:57 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-03-23 11:22:29 -0400
commitfb8c5e49887e21817fa2b63d296c378b847bb500 (patch)
treee4def53d33fe38c087f4f79c632fc9f4a4e970d2
parentae10c2248593fb84c6951d67c98c9c934997e56a (diff)
drm/dp: Print the number of bytes processed for aux nacks
When doing a native or i2c aux write the sink will indicate the number of bytes written even if it the nacks the transfer. When we receive a nack we just return an error upwards, but it might still be interesting to see how many bytes made it before the nack. So include that information in the debug messages. v2: Also print the message size (Jani) Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--drivers/gpu/drm/drm_dp_helper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_dp_helper.c b/drivers/gpu/drm/drm_dp_helper.c
index d5368ea56a0f..71dcbc64ae98 100644
--- a/drivers/gpu/drm/drm_dp_helper.c
+++ b/drivers/gpu/drm/drm_dp_helper.c
@@ -462,7 +462,7 @@ static int drm_dp_i2c_do_msg(struct drm_dp_aux *aux, struct drm_dp_aux_msg *msg)
462 break; 462 break;
463 463
464 case DP_AUX_NATIVE_REPLY_NACK: 464 case DP_AUX_NATIVE_REPLY_NACK:
465 DRM_DEBUG_KMS("native nack\n"); 465 DRM_DEBUG_KMS("native nack (result=%d, size=%zu)\n", ret, msg->size);
466 return -EREMOTEIO; 466 return -EREMOTEIO;
467 467
468 case DP_AUX_NATIVE_REPLY_DEFER: 468 case DP_AUX_NATIVE_REPLY_DEFER:
@@ -493,7 +493,7 @@ static int drm_dp_i2c_do_msg(struct drm_dp_aux *aux, struct drm_dp_aux_msg *msg)
493 return ret; 493 return ret;
494 494
495 case DP_AUX_I2C_REPLY_NACK: 495 case DP_AUX_I2C_REPLY_NACK:
496 DRM_DEBUG_KMS("I2C nack\n"); 496 DRM_DEBUG_KMS("I2C nack (result=%d, size=%zu\n", ret, msg->size);
497 aux->i2c_nack_count++; 497 aux->i2c_nack_count++;
498 return -EREMOTEIO; 498 return -EREMOTEIO;
499 499