Skip to contentSkip to conversation

drm/radeon: fix sad_count check for dce3

PATCH New Alex Deucher 1 participant 1 message Dec 9, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 drivers/gpu/drm/radeon/dce3_1_afmt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/radeon/dce3_1_afmt.c +1 -1
index 2fe8cfc..bafdf92 100644
@@ -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;
 	}
Signature · 6 lines
1.8.3.1

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel