aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorJerome Glisse <jglisse@redhat.com>2012-07-17 17:17:16 -0400
committerDave Airlie <airlied@redhat.com>2012-07-25 00:13:05 -0400
commit8d1c702aa0b2c4b22b0742b72a1149d91690674b (patch)
tree71979d0ae7042750933dff9caad269c6fa1bae39 /drivers/gpu/drm
parent1e179d4e283bd197035960ef751b5ccac06cbf91 (diff)
drm/radeon: fix non revealent error message
We want to print link status query failed only if it's an unexepected fail. If we query to see if we need link training it might be because there is nothing connected and thus link status query have the right to fail in that case. To avoid printing failure when it's expected, move the failure message to proper place. Cc: stable@vger.kernel.org Signed-off-by: Jerome Glisse <jglisse@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/radeon/atombios_dp.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/gpu/drm/radeon/atombios_dp.c b/drivers/gpu/drm/radeon/atombios_dp.c
index 0355536f61e4..7712cf5ab33b 100644
--- a/drivers/gpu/drm/radeon/atombios_dp.c
+++ b/drivers/gpu/drm/radeon/atombios_dp.c
@@ -22,6 +22,7 @@
22 * 22 *
23 * Authors: Dave Airlie 23 * Authors: Dave Airlie
24 * Alex Deucher 24 * Alex Deucher
25 * Jerome Glisse
25 */ 26 */
26#include "drmP.h" 27#include "drmP.h"
27#include "radeon_drm.h" 28#include "radeon_drm.h"
@@ -654,7 +655,6 @@ static bool radeon_dp_get_link_status(struct radeon_connector *radeon_connector,
654 ret = radeon_dp_aux_native_read(radeon_connector, DP_LANE0_1_STATUS, 655 ret = radeon_dp_aux_native_read(radeon_connector, DP_LANE0_1_STATUS,
655 link_status, DP_LINK_STATUS_SIZE, 100); 656 link_status, DP_LINK_STATUS_SIZE, 100);
656 if (ret <= 0) { 657 if (ret <= 0) {
657 DRM_ERROR("displayport link status failed\n");
658 return false; 658 return false;
659 } 659 }
660 660
@@ -833,8 +833,10 @@ static int radeon_dp_link_train_cr(struct radeon_dp_link_train_info *dp_info)
833 else 833 else
834 mdelay(dp_info->rd_interval * 4); 834 mdelay(dp_info->rd_interval * 4);
835 835
836 if (!radeon_dp_get_link_status(dp_info->radeon_connector, dp_info->link_status)) 836 if (!radeon_dp_get_link_status(dp_info->radeon_connector, dp_info->link_status)) {
837 DRM_ERROR("displayport link status failed\n");
837 break; 838 break;
839 }
838 840
839 if (dp_clock_recovery_ok(dp_info->link_status, dp_info->dp_lane_count)) { 841 if (dp_clock_recovery_ok(dp_info->link_status, dp_info->dp_lane_count)) {
840 clock_recovery = true; 842 clock_recovery = true;
@@ -896,8 +898,10 @@ static int radeon_dp_link_train_ce(struct radeon_dp_link_train_info *dp_info)
896 else 898 else
897 mdelay(dp_info->rd_interval * 4); 899 mdelay(dp_info->rd_interval * 4);
898 900
899 if (!radeon_dp_get_link_status(dp_info->radeon_connector, dp_info->link_status)) 901 if (!radeon_dp_get_link_status(dp_info->radeon_connector, dp_info->link_status)) {
902 DRM_ERROR("displayport link status failed\n");
900 break; 903 break;
904 }
901 905
902 if (dp_channel_eq_ok(dp_info->link_status, dp_info->dp_lane_count)) { 906 if (dp_channel_eq_ok(dp_info->link_status, dp_info->dp_lane_count)) {
903 channel_eq = true; 907 channel_eq = true;