Commit 2c9332de authored by Jani Nikula's avatar Jani Nikula

drm/edid: debug log EDID override set/reset

It's useful debugging information to know if and when an override EDID
was set or reset.
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/ae352f542b4d69398c0965e33fb2e6e34156cbfb.1666614699.git.jani.nikula@intel.com
parent 2db98059
......@@ -2194,6 +2194,9 @@ int drm_edid_override_set(struct drm_connector *connector, const void *edid,
connector->override_edid = false;
drm_dbg_kms(connector->dev, "[CONNECTOR:%d:%s] EDID override set\n",
connector->base.id, connector->name);
ret = drm_connector_update_edid_property(connector, edid);
if (!ret)
connector->override_edid = true;
......@@ -2206,6 +2209,9 @@ int drm_edid_override_reset(struct drm_connector *connector)
{
connector->override_edid = false;
drm_dbg_kms(connector->dev, "[CONNECTOR:%d:%s] EDID override reset\n",
connector->base.id, connector->name);
return drm_connector_update_edid_property(connector, NULL);
}
......
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