aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJerome Glisse <jglisse@redhat.com>2012-08-09 11:25:51 -0400
committerDave Airlie <airlied@redhat.com>2012-09-16 21:16:40 -0400
commit0b2443ed4e07d7973e4554a2cc166bc35447b59e (patch)
treea996dbd03a8480f6473a7ea2fdea3936760de853 /include
parent09e7dcf081b1100d1cdff57fa9eb25c3a834c9d6 (diff)
drm/edid: limit printk when facing bad edid
Limit printing bad edid information at one time per connector. Connector that are connected to a bad monitor/kvm will likely stay connected to the same bad monitor/kvm and it makes no sense to keep printing the bad edid message. Signed-off-by: Jerome Glisse <jglisse@redhat.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/drm/drm_crtc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index 617d87ae2b1a..316ce64e5590 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -590,6 +590,7 @@ struct drm_connector {
590 int video_latency[2]; /* [0]: progressive, [1]: interlaced */ 590 int video_latency[2]; /* [0]: progressive, [1]: interlaced */
591 int audio_latency[2]; 591 int audio_latency[2];
592 int null_edid_counter; /* needed to workaround some HW bugs where we get all 0s */ 592 int null_edid_counter; /* needed to workaround some HW bugs where we get all 0s */
593 unsigned bad_edid_counter;
593}; 594};
594 595
595/** 596/**
@@ -1032,7 +1033,7 @@ extern int drm_add_modes_noedid(struct drm_connector *connector,
1032 int hdisplay, int vdisplay); 1033 int hdisplay, int vdisplay);
1033 1034
1034extern int drm_edid_header_is_valid(const u8 *raw_edid); 1035extern int drm_edid_header_is_valid(const u8 *raw_edid);
1035extern bool drm_edid_block_valid(u8 *raw_edid, int block); 1036extern bool drm_edid_block_valid(u8 *raw_edid, int block, bool print_bad_edid);
1036extern bool drm_edid_is_valid(struct edid *edid); 1037extern bool drm_edid_is_valid(struct edid *edid);
1037struct drm_display_mode *drm_mode_find_dmt(struct drm_device *dev, 1038struct drm_display_mode *drm_mode_find_dmt(struct drm_device *dev,
1038 int hsize, int vsize, int fresh, 1039 int hsize, int vsize, int fresh,