Commit a3c6d686 authored by Josef Holzmayr's avatar Josef Holzmayr Committed by Daniel Vetter

DRM: Don't re-poll connector for disconnect

DRM probe should not repoll a connector if it is already
connected and the DRM_CONNECTOR_POLL_DISCONNECT flag is not set.
Signed-off-by: default avatarJosef Holzmayr <holzmayr@rsi-elektrotechnik.de>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 396aa445
...@@ -322,8 +322,6 @@ static void output_poll_execute(struct work_struct *work) ...@@ -322,8 +322,6 @@ static void output_poll_execute(struct work_struct *work)
if (!connector->polled || connector->polled == DRM_CONNECTOR_POLL_HPD) if (!connector->polled || connector->polled == DRM_CONNECTOR_POLL_HPD)
continue; continue;
repoll = true;
old_status = connector->status; old_status = connector->status;
/* if we are connected and don't want to poll for disconnect /* if we are connected and don't want to poll for disconnect
skip it */ skip it */
...@@ -331,6 +329,8 @@ static void output_poll_execute(struct work_struct *work) ...@@ -331,6 +329,8 @@ static void output_poll_execute(struct work_struct *work)
!(connector->polled & DRM_CONNECTOR_POLL_DISCONNECT)) !(connector->polled & DRM_CONNECTOR_POLL_DISCONNECT))
continue; continue;
repoll = true;
connector->status = connector->funcs->detect(connector, false); connector->status = connector->funcs->detect(connector, false);
if (old_status != connector->status) { if (old_status != connector->status) {
const char *old, *new; const char *old, *new;
......
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