diff options
author | Maarten Lankhorst <maarten.lankhorst@canonical.com> | 2013-01-29 14:27:39 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-02-15 01:20:34 +0100 |
commit | f934ec8c34b9dcefb5a4f35b0bda33bca289cbe6 (patch) | |
tree | e46e6549c4b2e5a8d345dfcfa7f0353c7c1b59fa /drivers/gpu/drm/drm_edid.c | |
parent | drm: fix compile failure by including <linux/swiotlb.h> (diff) | |
download | linux-f934ec8c34b9dcefb5a4f35b0bda33bca289cbe6.tar.xz linux-f934ec8c34b9dcefb5a4f35b0bda33bca289cbe6.zip |
drm: shut up invalid edid messages
My cheapo monitor has an invalid block 1, resulting in a lot of dmesg spam every few seconds.
I get it the first time that the entire block is all 0xff..
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Cc: stable@vger.kernel.org [v3.7]
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_edid.c')
-rw-r--r-- | drivers/gpu/drm/drm_edid.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 51324256a657..e1aca7b53987 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -354,10 +354,14 @@ drm_do_get_edid(struct drm_connector *connector, struct i2c_adapter *adapter) break; } } - if (i == 4) + + if (i == 4 && print_bad_edid) { dev_warn(connector->dev->dev, "%s: Ignoring invalid EDID block %d.\n", drm_get_connector_name(connector), j); + + connector->bad_edid_counter++; + } } if (valid_extensions != block[0x7e]) { |