aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJerome Glisse <jglisse@redhat.com>2012-07-17 17:17:16 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-08-09 11:27:50 -0400
commitea07d57bea33b7004d1773db115bf62bb7788c99 (patch)
tree5a8acf7d344637997deb55160747db04d1342a61
parent4826f249d0b09bb6d8969277b43df9ffc3bccfe5 (diff)
drm/radeon: fix non revealent error message
commit 8d1c702aa0b2c4b22b0742b72a1149d91690674b upstream. 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. Signed-off-by: Jerome Glisse <jglisse@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-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 3b77ad60ed5..efc2b214b34 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"
@@ -624,7 +625,6 @@ static bool radeon_dp_get_link_status(struct radeon_connector *radeon_connector,
624 ret = radeon_dp_aux_native_read(radeon_connector, DP_LANE0_1_STATUS, 625 ret = radeon_dp_aux_native_read(radeon_connector, DP_LANE0_1_STATUS,
625 link_status, DP_LINK_STATUS_SIZE, 100); 626 link_status, DP_LINK_STATUS_SIZE, 100);
626 if (ret <= 0) { 627 if (ret <= 0) {
627 DRM_ERROR("displayport link status failed\n");
628 return false; 628 return false;
629 } 629 }
630 630
@@ -797,8 +797,10 @@ static int radeon_dp_link_train_cr(struct radeon_dp_link_train_info *dp_info)
797 else 797 else
798 mdelay(dp_info->rd_interval * 4); 798 mdelay(dp_info->rd_interval * 4);
799 799
800 if (!radeon_dp_get_link_status(dp_info->radeon_connector, dp_info->link_status)) 800 if (!radeon_dp_get_link_status(dp_info->radeon_connector, dp_info->link_status)) {
801 DRM_ERROR("displayport link status failed\n");
801 break; 802 break;
803 }
802 804
803 if (dp_clock_recovery_ok(dp_info->link_status, dp_info->dp_lane_count)) { 805 if (dp_clock_recovery_ok(dp_info->link_status, dp_info->dp_lane_count)) {
804 clock_recovery = true; 806 clock_recovery = true;
@@ -860,8 +862,10 @@ static int radeon_dp_link_train_ce(struct radeon_dp_link_train_info *dp_info)
860 else 862 else
861 mdelay(dp_info->rd_interval * 4); 863 mdelay(dp_info->rd_interval * 4);
862 864
863 if (!radeon_dp_get_link_status(dp_info->radeon_connector, dp_info->link_status)) 865 if (!radeon_dp_get_link_status(dp_info->radeon_connector, dp_info->link_status)) {
866 DRM_ERROR("displayport link status failed\n");
864 break; 867 break;
868 }
865 869
866 if (dp_channel_eq_ok(dp_info->link_status, dp_info->dp_lane_count)) { 870 if (dp_channel_eq_ok(dp_info->link_status, dp_info->dp_lane_count)) {
867 channel_eq = true; 871 channel_eq = true;