diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2014-12-09 16:04:01 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-01-05 18:08:56 +0100 |
commit | 5665c3ebe5ee8a2c516925461f7214ba59c2e6d7 (patch) | |
tree | 44a29939fb35f5c95d7708f6ffbb55ff9b9b412e /drivers | |
parent | drm/radeon: KV has three PPLLs (v2) (diff) | |
download | linux-5665c3ebe5ee8a2c516925461f7214ba59c2e6d7.tar.xz linux-5665c3ebe5ee8a2c516925461f7214ba59c2e6d7.zip |
drm/radeon: fix sad_count check for dce3
Make it consistent with the sad code for other asics to deal
with monitors that don't report sads.
bug:
https://bugzilla.kernel.org/show_bug.cgi?id=89461
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/radeon/dce3_1_afmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/dce3_1_afmt.c b/drivers/gpu/drm/radeon/dce3_1_afmt.c index 2fe8cfc966d9..bafdf92a5732 100644 --- a/drivers/gpu/drm/radeon/dce3_1_afmt.c +++ b/drivers/gpu/drm/radeon/dce3_1_afmt.c @@ -103,7 +103,7 @@ static void dce3_2_afmt_write_sad_regs(struct drm_encoder *encoder) } sad_count = drm_edid_to_sad(radeon_connector->edid, &sads); - if (sad_count < 0) { + if (sad_count <= 0) { DRM_ERROR("Couldn't read SADs: %d\n", sad_count); return; } |