mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
drm/nouveau: Unset the EDID connector property when the EDID block goes away.
Signed-off-by: Francisco Jerez <currojerez@riseup.net> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
0ed3165e55
commit
b8780e2ad2
1 changed files with 6 additions and 2 deletions
|
@ -239,8 +239,12 @@ nouveau_connector_detect(struct drm_connector *connector)
|
|||
return connector_status_connected;
|
||||
}
|
||||
|
||||
kfree(nv_connector->edid);
|
||||
nv_connector->edid = NULL;
|
||||
/* Cleanup the previous EDID block. */
|
||||
if (nv_connector->edid) {
|
||||
drm_mode_connector_update_edid_property(connector, NULL);
|
||||
kfree(nv_connector->edid);
|
||||
nv_connector->edid = NULL;
|
||||
}
|
||||
|
||||
i2c = nouveau_connector_ddc_detect(connector, &nv_encoder);
|
||||
if (i2c) {
|
||||
|
|
Loading…
Reference in a new issue