From: Maarten Lankhorst Date: Tue, 29 Jan 2013 13:27:39 +0000 (+0100) Subject: drm: shut up invalid edid messages X-Git-Tag: v3.8.1~82 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=75f8e0e4e796eb9885057cee68c63e40622e0a53;p=karo-tx-linux.git drm: shut up invalid edid messages commit f934ec8c34b9dcefb5a4f35b0bda33bca289cbe6 upstream. 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 Signed-off-by: Dave Airlie Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 584d5fdd1f30..c0eeeaf8c121 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -357,10 +357,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]) {