Commit 75f8e0e4 authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Greg Kroah-Hartman

drm: shut up invalid edid messages

commit f934ec8c 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: default avatarMaarten Lankhorst <maarten.lankhorst@canonical.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 740922ee
...@@ -357,10 +357,14 @@ drm_do_get_edid(struct drm_connector *connector, struct i2c_adapter *adapter) ...@@ -357,10 +357,14 @@ drm_do_get_edid(struct drm_connector *connector, struct i2c_adapter *adapter)
break; break;
} }
} }
if (i == 4)
if (i == 4 && print_bad_edid) {
dev_warn(connector->dev->dev, dev_warn(connector->dev->dev,
"%s: Ignoring invalid EDID block %d.\n", "%s: Ignoring invalid EDID block %d.\n",
drm_get_connector_name(connector), j); drm_get_connector_name(connector), j);
connector->bad_edid_counter++;
}
} }
if (valid_extensions != block[0x7e]) { if (valid_extensions != block[0x7e]) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment